[langauge] fix some spelling and clarify "dependencies not met"
[vuplus_xbmc] / Makefile.in
1 include bootstrap.mk
2
3 null :=
4 space := ${null} ${null}
5 ${space} := ${space}
6
7 AUTOGENERATED_MAKEFILES=@OUTPUT_FILES@
8
9 EC_DIRS= \
10         tools/EventClients
11
12 XBMCTEX_DIRS= \
13         tools/TexturePacker
14
15 DVDPCODECS_DIRS= \
16         lib \
17         lib/libdvd
18
19 DVDPLAYER_ARCHIVES=xbmc/cores/dvdplayer/DVDPlayer.a \
20                    xbmc/cores/dvdplayer/DVDCodecs/DVDCodecs.a \
21                    xbmc/cores/dvdplayer/DVDCodecs/Audio/Audio.a \
22                    xbmc/cores/dvdplayer/DVDCodecs/Overlay/Overlay.a \
23                    xbmc/cores/dvdplayer/DVDCodecs/Video/Video.a \
24                    xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxers.a \
25                    xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreams.a \
26                    xbmc/cores/dvdplayer/DVDSubtitles/DVDSubtitles.a
27
28 DIRECTORY_ARCHIVES=$(DVDPLAYER_ARCHIVES) \
29                    lib/SlingboxLib/SlingboxLib.a \
30                    lib/libRTV/librtv.a \
31                    lib/libXDAAP/libxdaap.a \
32                    lib/libhts/libhts.a \
33                    lib/libsquish/libsquish.a \
34                    lib/xbmc-dll-symbols/dll-symbols.a \
35                    xbmc/addons/addons.a \
36                    xbmc/cdrip/cdrip.a \
37                    xbmc/cores/AudioEngine/audioengine.a \
38                    xbmc/cores/DllLoader/dllloader.a \
39                    xbmc/cores/DllLoader/exports/exports.a \
40                    xbmc/cores/DllLoader/exports/util/exports_utils.a \
41                    xbmc/cores/ExternalPlayer/ExternalPlayer.a \
42                    xbmc/cores/VideoRenderers/VideoRenderer.a \
43                    xbmc/cores/VideoRenderers/VideoShaders/VideoShaders.a \
44                    xbmc/cores/cores.a \
45                    xbmc/cores/paplayer/paplayer.a \
46                    xbmc/cores/playercorefactory/playercorefactory.a \
47                    xbmc/dbwrappers/dbwrappers.a \
48                    xbmc/dialogs/dialogs.a \
49                    xbmc/epg/epg.a \
50                    xbmc/filesystem/MusicDatabaseDirectory/musicdatabasedirectory.a \
51                    xbmc/filesystem/VideoDatabaseDirectory/videodatabasedirectory.a \
52                    xbmc/filesystem/filesystem.a \
53                    xbmc/guilib/guilib.a \
54                    xbmc/input/input.a \
55                    xbmc/interfaces/generic/interfaces-generic.a \
56                    xbmc/interfaces/info/info.a \
57                    xbmc/interfaces/interfaces.a \
58                    xbmc/interfaces/json-rpc/json-rpc.a \
59                    xbmc/linux/linux.a \
60                    xbmc/music/dialogs/musicdialogs.a \
61                    xbmc/music/infoscanner/musicscanner.a \
62                    xbmc/music/karaoke/karaoke.a \
63                    xbmc/music/music.a \
64                    xbmc/music/tags/musictags.a \
65                    xbmc/music/windows/musicwindows.a \
66                    xbmc/network/websocket/websocket.a \
67                    xbmc/network/network.a \
68                    xbmc/peripherals/bus/peripheral-bus.a \
69                    xbmc/peripherals/devices/peripheral-devices.a \
70                    xbmc/peripherals/dialogs/peripheral-dialogs.a \
71                    xbmc/peripherals/peripherals.a \
72                    xbmc/pictures/pictures.a \
73                    xbmc/playlists/playlists.a \
74                    xbmc/powermanagement/powermanagement.a \
75                    xbmc/profiles/profiles.a \
76                    xbmc/profiles/dialogs/profiles_dialogs.a \
77                    xbmc/profiles/windows/profiles_windows.a \
78                    xbmc/programs/programs.a \
79                    xbmc/pvr/addons/pvraddons.a \
80                    xbmc/pvr/channels/pvrchannels.a \
81                    xbmc/pvr/dialogs/pvrdialogs.a \
82                    xbmc/pvr/pvr.a \
83                    xbmc/pvr/recordings/pvrrecordings.a \
84                    xbmc/pvr/timers/pvrtimers.a \
85                    xbmc/pvr/windows/pvrwindows.a \
86                    xbmc/rendering/rendering.a \
87                    xbmc/settings/settings.a \
88                    xbmc/settings/dialogs/settings_dialogs.a \
89                    xbmc/settings/windows/settings_windows.a \
90                    xbmc/storage/storage.a \
91                    xbmc/utils/utils.a \
92                    xbmc/video/dialogs/videodialogs.a \
93                    xbmc/video/video.a \
94                    xbmc/video/windows/videowindows.a \
95                    xbmc/view/view.a \
96                    xbmc/windowing/windowing.a \
97                    xbmc/windows/windows.a \
98                    xbmc/xbmc.a \
99
100 NWAOBJSXBMC=    xbmc/threads/threads.a \
101                 xbmc/commons/commons.a
102
103
104 ifeq (@USE_WEB_SERVER@,1)
105 DIRECTORY_ARCHIVES += xbmc/network/httprequesthandler/httprequesthandlers.a
106 endif
107
108 DIRECTORY_ARCHIVES += xbmc/interfaces/legacy/legacy.a
109 DIRECTORY_ARCHIVES += xbmc/interfaces/python/python_binding.a
110
111 ifeq (@USE_OPENGL@,1)
112 DIRECTORY_ARCHIVES += xbmc/rendering/gl/rendering_gl.a
113 endif
114
115 ifeq (@USE_OPENGLES@,1)
116 DIRECTORY_ARCHIVES += xbmc/rendering/gles/rendering_gles.a
117 DIRECTORY_ARCHIVES += xbmc/windowing/egl/windowing_egl.a
118 DIRECTORY_ARCHIVES += xbmc/visualizations/EGLHelpers/eglhelpers.a
119 endif
120
121 ifeq (@USE_UPNP@,1)
122 DIRECTORY_ARCHIVES += lib/libUPnP/libupnp.a \
123                       xbmc/network/upnp/upnp.a
124 endif
125
126 ifeq (@USE_MDNSEMBEDDED@,1)
127 DIRECTORY_ARCHIVES += xbmc/network/mdns/mdns.a
128 endif
129
130 INSTALL_FILTER = .*visualization\.dxspectrum.*
131 INSTALL_FILTER += .*visualization\.milkdrop.*
132
133 ifeq ($(findstring osx,@ARCH@),osx)
134 DIRECTORY_ARCHIVES += xbmc/osx/osx.a
135 DIRECTORY_ARCHIVES += xbmc/network/osx/network.a
136 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
137 DIRECTORY_ARCHIVES += xbmc/powermanagement/osx/powermanagement.a
138 DIRECTORY_ARCHIVES += xbmc/storage/osx/storage.a
139 DIRECTORY_ARCHIVES += xbmc/windowing/osx/windowing_osx.a
140 INSTALL_FILTER += .*repository\.pvr-android\.xbmc\.org.*
141 INSTALL_FILTER += .*repository\.pvr-ios\.xbmc\.org.*
142 INSTALL_FILTER += .*repository\.pvr-win32\.xbmc\.org.*
143 else
144 INSTALL_FILTER += .*repository\.pvr-ios\.xbmc\.org.*
145 INSTALL_FILTER += .*repository\.pvr-win32\.xbmc\.org.*
146 INSTALL_FILTER += .*repository\.pvr-osx.*\.xbmc\.org.*
147 ifeq (@USE_ANDROID@,1)
148 DIRECTORY_ARCHIVES += xbmc/input/linux/input_linux.a
149 DIRECTORY_ARCHIVES += xbmc/input/touch/input_touch.a
150 DIRECTORY_ARCHIVES += xbmc/input/touch/generic/input_touch_generic.a
151 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
152 DIRECTORY_ARCHIVES += xbmc/powermanagement/android/powermanagement_android.a
153 DIRECTORY_ARCHIVES += xbmc/storage/android/storage_android.a
154 DIRECTORY_ARCHIVES += xbmc/windowing/X11/windowing_X11.a
155 else
156 DIRECTORY_ARCHIVES += xbmc/input/linux/input_linux.a
157 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
158 DIRECTORY_ARCHIVES += xbmc/powermanagement/linux/powermanagement_linux.a
159 DIRECTORY_ARCHIVES += xbmc/storage/linux/storage_linux.a
160 DIRECTORY_ARCHIVES += xbmc/windowing/X11/windowing_X11.a
161 INSTALL_FILTER += .*repository\.pvr-android\.xbmc\.org.*
162 endif
163 endif
164
165 ifeq ($(findstring freebsd,@ARCH@),freebsd)
166 DIRECTORY_ARCHIVES += xbmc/freebsd/freebsd.a
167 endif
168
169 ifeq (@HAVE_XBMC_NONFREE@,1)
170 DIRECTORY_ARCHIVES += lib/UnrarXLib/UnrarXLib.a
171 endif
172
173 BIN_DIRS = $(dir $(DIRECTORY_ARCHIVES)) $(dir $(NWAOBJSXBMC))
174
175 ifeq (@USE_ANDROID@,1)
176 DIRECTORY_ARCHIVES += xbmc/android/loader/AndroidDyload.a
177 DIRECTORY_ARCHIVES += xbmc/windowing/android/windowing_android.a
178 DIRECTORY_ARCHIVES += xbmc/android/activity/activity.a
179 DIRECTORY_ARCHIVES += xbmc/android/bionic_supplement/bionic_supplement.a
180 DIRECTORY_ARCHIVES += xbmc/android/jni/jni.a
181 endif
182
183 ifeq (@USE_AMLPLAYER@,1)
184 DIRECTORY_ARCHIVES += xbmc/cores/amlplayer/amlplayer.a
185 endif
186
187 ifeq (@USE_OMXPLAYER@,1)
188 DIRECTORY_ARCHIVES += xbmc/cores/omxplayer/omxplayer.a
189 endif
190
191 ifeq (@USE_LIBAV_HACKS@,1)
192 DIRECTORY_ARCHIVES += lib/xbmc-libav-hacks/dll-libavhacks.a
193 endif
194
195 PAPCODECS_DIRS= \
196         lib/xbadpcm \
197         lib/nosefart \
198         lib/timidity \
199         lib/libsidplay2 \
200         lib/stsound/StSoundLibrary \
201         lib/snesapu/SNES/SNESAPU \
202         lib/vgmstream
203
204 ifeq (@USE_ASAP_CODEC@,1)
205 PAPCODECS_DIRS+= \
206         lib/asap
207 endif
208
209 LIB_DIRS=\
210         lib/cximage-6.0 \
211         lib/libexif \
212         lib/libhdhomerun \
213         lib/cpluff \
214         lib/xbmc-dll-symbols
215
216 ifeq (@USE_MYSQL@,1)
217 LIB_DIRS += lib/cmyth
218 CMYTH=cmyth
219 endif
220
221 SS_DIRS=
222 ifneq (@DISABLE_RSXS@,1)
223   SS_DIRS+= xbmc/screensavers/rsxs-0.9/xbmc
224 else
225   INSTALL_FILTER+= .*screensaver\.rsxs.*
226 endif
227
228 ifneq (@DISABLE_SPECTRUM@,1)
229   VIS_DIRS+= xbmc/visualizations/OpenGLSpectrum
230 else
231   INSTALL_FILTER+= .*visualization\.glspectrum.*
232 endif
233
234 ifneq (@DISABLE_WAVEFORM@,1)
235   VIS_DIRS+= xbmc/visualizations/WaveForm
236 else
237   INSTALL_FILTER+= .*visualization\.waveform.*
238 endif
239
240 ifneq (@DISABLE_FISHBMC@,1)
241   VIS_DIRS+= xbmc/visualizations/fishBMC
242 else
243   INSTALL_FILTER+= .*visualization\.fishbmc.*
244 endif
245
246 ifneq (@DISABLE_PROJECTM@,1)
247   VIS_DIRS+= xbmc/visualizations/XBMCProjectM
248 else
249   INSTALL_FILTER+= .*visualization\.projectm.*
250 endif
251
252 ifneq (@DISABLE_GOOM@,1)
253   VIS_DIRS+=xbmc/visualizations/Goom
254 else
255   INSTALL_FILTER+= .*visualization\.goom.*
256 endif
257
258 LIBADDON_DIRS=\
259         lib/addons/library.xbmc.addon \
260         lib/addons/library.xbmc.codec \
261         lib/addons/library.xbmc.pvr \
262         lib/addons/library.xbmc.gui \
263
264 CONFLUENCE_MEDIA=addons/skin.confluence/media
265 SKIN_DIRS=$(CONFLUENCE_MEDIA)
266
267 ifeq (@USE_SKIN_TOUCHED@,1)
268 TOUCHED_MEDIA=addons/skin.touched/media
269 SKIN_DIRS+=$(TOUCHED_MEDIA)
270 endif
271
272 DIRS= $(BIN_DIRS) $(EC_DIRS) $(XBMCTEX_DIRS) $(DVDPCODECS_DIRS) $(PAPCODECS_DIRS) \
273         $(LIB_DIRS) $(SS_DIRS) $(VIS_DIRS) $(LIBADDON_DIRS) $(SKIN_DIRS) xbmc/main
274
275 LIBS=@LIBS@
276 CFLAGS=@CFLAGS@
277 CXXFLAGS=@CXXFLAGS@
278 LDFLAGS=@LDFLAGS@
279 INCLUDES=$(sort @INCLUDES@)
280
281 CLEAN_FILES=xbmc.bin xbmc-xrandr libxbmc.so
282
283 DISTCLEAN_FILES=config.h config.log config.status tools/Linux/xbmc.sh \
284         tools/Linux/xbmc-standalone.sh autom4te.cache config.h.in~ \
285         system/libcpluff-@ARCH@.so
286
287 ifeq (@USE_LIBXBMC@,1)
288 FINAL_TARGETS+=libxbmc.so
289 ifeq (@USE_ANDROID@,1)
290 FINAL_TARGETS+=skins
291 endif
292 else
293 FINAL_TARGETS=xbmc.bin skins xbmc-xrandr
294 endif
295 FINAL_TARGETS+=Makefile externals
296
297 GTEST_DIR = lib/gtest
298 GTEST_INCLUDES = -I$(GTEST_DIR)/include
299 GTEST_LIBS = $(GTEST_DIR)/lib/.libs/libgtest.a
300
301 CHECK_DIRS = xbmc/filesystem/test \
302              xbmc/utils/test \
303              xbmc/threads/test \
304              xbmc/interfaces/python/test \
305              xbmc/test
306 CHECK_LIBS = xbmc/filesystem/test/filesystemTest.a \
307              xbmc/utils/test/utilsTest.a \
308              xbmc/threads/test/threadTest.a \
309              xbmc/interfaces/python/test/pythonSwigTest.a \
310              xbmc/windowing/tests/wayland/test_wayland.a \
311              xbmc/test/xbmc-test.a
312
313 ifeq (@USE_WAYLAND_TEST_EXTENSION@,1)
314 WAYLAND_TEST_MODULE = xbmc/windowing/tests/wayland/xbmc-wayland-test-extension.so
315 $(WAYLAND_TEST_MODULE): force
316         $(MAKE) -C $(@D) $(@F)
317 CHECK_EXTENSIONS = $(WAYLAND_TEST_MODULE)
318 CHECK_LIBADD=@WAYLAND_TEST_LIBS@
319 endif
320
321 CHECK_PROGRAMS = xbmc-test
322
323 CLEAN_FILES += $(CHECK_PROGRAMS) $(CHECK_EXTENSIONS)
324
325 all : $(FINAL_TARGETS)
326         @echo '-----------------------'
327         @echo 'XBMC built successfully'
328         @echo '-----------------------'
329
330 include Makefile.include
331
332 .PHONY : dllloader exports visualizations screensavers eventclients papcodecs \
333         dvdpcodecs imagelib codecs externals force skins libaddon check \
334         testframework testsuite
335
336 # hack targets to keep build system up to date
337 Makefile : config.status $(addsuffix .in, $(AUTOGENERATED_MAKEFILES))
338         @echo "Regenerating Makefiles..."
339         @./config.status &> /dev/null
340         @echo "done"
341
342 config.status: configure
343
344 # skin textures
345 ifeq (@USE_TEXTUREPACKER@,1)
346 skins: tools/TexturePacker/TexturePacker force
347          $(MAKE) -C $(CONFLUENCE_MEDIA)
348 ifeq (@USE_SKIN_TOUCHED@,1)
349          $(MAKE) -C $(TOUCHED_MEDIA)
350 endif
351 else
352 skins:
353 endif
354
355 # Setup some dependencies for subdir makes
356 xbmc/cores/paplayer/paplayer.a: papcodecs
357 $(DVDPLAYER_ARCHIVES)         : dvdpcodecs
358
359 $(NWAOBJSXBMC): force
360         @$(MAKE) $(if $(V),,-s) -C $(@D)
361
362 $(DIRECTORY_ARCHIVES): force
363         @$(MAKE) $(if $(V),,-s) -C $(@D)
364
365 lib/cpluff/libcpluff/.libs/libcpluff.a: force
366         $(MAKE) -C lib/cpluff/libcpluff
367 system/libcpluff-@ARCH@.so: lib/cpluff/libcpluff/.libs/libcpluff.a exports
368 ifeq ($(findstring osx,@ARCH@), osx)
369   ifeq (@ARCH@, arm-osx)
370         $(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -read_only_relocs suppress -o $@ $<
371   else
372         $(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -lexpat $(BUNDLE1_O) -o $@ $<
373   endif
374 else
375         $(CXX) $(LDFLAGS) -shared -o $@ -Wl,--whole-archive $< \
376                 -Wl,--no-whole-archive  \
377                 `cat xbmc/cores/DllLoader/exports/wrapper.def` xbmc/cores/DllLoader/exports/wrapper.o -lexpat
378 endif
379
380 exports: xbmc/cores/DllLoader/exports/exports.a xbmc/cores/DllLoader/exports/util/exports_utils.a
381         $(MAKE) -C xbmc/cores/DllLoader/exports wrapper.def
382 dllloader: exports xbmc/cores/DllLoader/dllloader.a
383
384 ifeq (@USE_OPENGLES@,1)
385 EGLHELPERS=xbmc/visualizations/EGLHelpers/eglhelpers.a
386 endif
387
388 $(VIS_DIRS): force exports $(EGLHELPERS)
389         $(MAKE) -C $@
390
391 $(SS_DIRS): force exports
392         $(MAKE) -C $@
393
394 visualizations: $(VIS_DIRS)
395
396 screensavers: $(SS_DIRS)
397
398 libaddon: exports
399         $(MAKE) -C lib/addons/library.xbmc.addon
400         $(MAKE) -C lib/addons/library.xbmc.codec
401         $(MAKE) -C lib/addons/library.xbmc.gui
402         $(MAKE) -C lib/addons/library.xbmc.pvr
403 dvdpcodecs: dllloader
404         $(MAKE) -C lib
405         $(MAKE) -C lib/libdvd
406 eventclients:
407 ifeq ($(findstring osx,@ARCH@), osx)
408 ifneq ($(findstring arm,@ARCH@), arm)
409         $(MAKE) -C tools/EventClients/Clients/OSXRemote
410 endif
411 else
412         $(MAKE) -C tools/EventClients
413 endif
414 libexif: dllloader
415         $(MAKE) -C lib/libexif
416 cmyth: dllloader
417         $(MAKE) -C lib/cmyth
418 libhdhomerun: dllloader
419         $(MAKE) -C lib/libhdhomerun
420 papcodecs: dllloader dvdpcodecs
421         test -d system/players/paplayer || mkdir system/players/paplayer
422         $(MAKE) -C lib/xbadpcm
423         $(MAKE) -C lib/vgmstream
424         $(MAKE) -C lib/timidity
425         $(MAKE) -C lib/nosefart
426 ifneq ($(findstring arm-osx,@ARCH@), arm-osx)
427         $(MAKE) -C lib/libsidplay2
428 endif
429 ifeq (@USE_ASAP_CODEC@,1)
430   ifneq ($(findstring osx,@ARCH@), osx)
431         $(MAKE) -C lib/asap asap-xbmc
432   endif
433 endif
434         $(MAKE) -C lib/stsound/StSoundLibrary
435 ifeq ($(or $(findstring powerpc,@ARCH@),$(findstring x86_64-linux,@ARCH@),$(findstring arm, @ARCH@),$(findstring freebsd,@ARCH@)),)
436         $(MAKE) -C lib/snesapu/SNES/SNESAPU
437 endif
438 imagelib: dllloader
439         $(MAKE) -C lib/cximage-6.0
440
441 pvraddons: exports
442 ifeq (@USE_PVR_ADDONS@,1)
443         $(MAKE) -C pvr-addons
444 endif
445
446 codecs: papcodecs dvdpcodecs
447
448 libs: libhdhomerun imagelib libexif system/libcpluff-@ARCH@.so $(CMYTH)
449
450 externals: codecs libs visualizations screensavers libaddon pvraddons
451
452 xcode_depends: \
453         codecs libs visualizations screensavers eventclients skins libaddon \
454         lib/libsquish/libsquish.a \
455         lib/libRTV/librtv.a \
456         lib/libXDAAP/libxdaap.a \
457         lib/SlingboxLib/SlingboxLib.a
458
459 OBJSXBMC =$(DIRECTORY_ARCHIVES)
460
461 DYNOBJSXBMC= \
462         xbmc/linux/linux.a \
463         xbmc/network/network.a \
464         xbmc/video/windows/videowindows.a \
465         xbmc/utils/utils.a \
466         xbmc/cores/DllLoader/exports/util/exports_utils.a \
467         xbmc/cores/DllLoader/exports/exports.a \
468         xbmc/settings/settings.a \
469         xbmc/video/video.a \
470         xbmc/pvr/addons/pvraddons.a \
471         xbmc/pvr/windows/pvrwindows.a \
472         xbmc/guilib/guilib.a # must be dynamic to avoid linker errors
473
474 ifeq ($(findstring freebsd,@ARCH@),freebsd)
475 DYNOBJSXBMC+= xbmc/freebsd/freebsd.a
476 endif
477
478 OBJSXBMC:=$(filter-out $(DYNOBJSXBMC), $(OBJSXBMC))
479
480 MAINOBJS=xbmc/xbmc.o
481 ifeq (@USE_ANDROID@,1)
482 MAINOBJS+=xbmc/android/activity/android_main.o
483 endif
484 ifneq (@USE_LIBXBMC@,1)
485 MAINOBJS+=xbmc/main/main.o
486 endif
487
488 # sync these entries manually with tools/depends/target/xbmc-addon-bindings/Makefile
489 BINDINGS =xbmc/addons/include/xbmc_addon_cpp_dll.h
490 BINDINGS+=xbmc/addons/include/xbmc_addon_dll.h
491 BINDINGS+=xbmc/addons/include/xbmc_addon_types.h
492 BINDINGS+=xbmc/addons/include/xbmc_codec_types.h
493 BINDINGS+=xbmc/addons/include/xbmc_epg_types.h
494 BINDINGS+=xbmc/addons/include/xbmc_pvr_dll.h
495 BINDINGS+=xbmc/addons/include/xbmc_pvr_types.h
496 BINDINGS+=xbmc/addons/include/xbmc_scr_dll.h
497 BINDINGS+=xbmc/addons/include/xbmc_scr_types.h
498 BINDINGS+=xbmc/addons/include/xbmc_vis_dll.h
499 BINDINGS+=xbmc/addons/include/xbmc_vis_types.h
500 BINDINGS+=xbmc/addons/include/xbmc_stream_utils.hpp
501 BINDINGS+=addons/library.xbmc.addon/libXBMC_addon.h
502 BINDINGS+=addons/library.xbmc.gui/libXBMC_gui.h
503 BINDINGS+=addons/library.xbmc.pvr/libXBMC_pvr.h
504 BINDINGS+=addons/library.xbmc.codec/libXBMC_codec.h
505 BINDINGS+=xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxPacket.h
506
507 libxbmc.so: $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(MAINOBJS)
508 ifeq ($(findstring osx,@ARCH@), osx)
509         $(SILENT_LD) $(CXX) $(LDFLAGS) -bundle -o $@ -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(LIBS)
510 else
511         $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ $(MAINOBJS) -Wl,--start-group $(DYNOBJSXBMC) $(OBJSXBMC) -Wl,--end-group -Wl,--no-undefined $(NWAOBJSXBMC) $(LIBS)
512 endif
513
514 xbmc/main/main.a:
515         $(MAKE) -C xbmc/main
516
517 xbmc.bin: $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(MAINOBJS) xbmc/main/main.a
518
519 ifeq ($(findstring osx,@ARCH@), osx)
520         $(SILENT_LD) $(CXX) $(LDFLAGS) -o xbmc.bin -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(LIBS) -rdynamic
521 else
522         $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -o xbmc.bin $(MAINOBJS) -Wl,--start-group $(DYNOBJSXBMC) $(OBJSXBMC) -Wl,--end-group $(NWAOBJSXBMC) $(LIBS) -rdynamic
523 endif
524
525 xbmc-xrandr: xbmc-xrandr.c
526 ifneq (1,@USE_XRANDR@)
527         # xbmc-xrandr.c gets picked up by the default make rules
528         @echo "excluding xbmc-xrandr"
529 else
530         $(SILENT_LD) $(CC) $(CFLAGS) $(LDFLAGS) -o xbmc-xrandr xbmc-xrandr.c -lXrandr -lX11 -lm
531 endif
532
533 tools/TexturePacker/TexturePacker: xbmc/guilib/XBTF.h
534         $(MAKE) -C tools/TexturePacker/
535
536
537 install-bin: xbmc.bin # developement convenience target
538         sudo install -d $(DESTDIR)$(libdir)
539         sudo install xbmc.bin $(DESTDIR)$(libdir)/xbmc
540
541 ifeq ($(findstring osx,@ARCH@), osx)
542         # TODO: add osx install
543 else
544 install: install-binaries install-arch install-datas
545
546 apk: install
547         make -C tools/android/packaging
548
549 install-binaries: install-scripts
550         @echo "Copying XBMC binary to $(DESTDIR)$(libdir)/xbmc/"
551         @install -d $(DESTDIR)$(libdir)/xbmc
552 ifeq (1,@USE_XRANDR@)
553         @install xbmc-xrandr $(DESTDIR)$(libdir)/xbmc/xbmc-xrandr
554 endif
555 ifeq (@USE_LIBXBMC@,1)
556         @install libxbmc.so $(DESTDIR)$(libdir)/xbmc/libxbmc.so
557 else
558         @install xbmc.bin $(DESTDIR)$(libdir)/xbmc/xbmc.bin
559         @echo "You can run XBMC with the command 'xbmc'"
560 endif
561 endif
562
563 install-arch:
564         @# Arch dependent files
565 ifeq (@USE_PVR_ADDONS@,1)
566         $(MAKE) -C pvr-addons install
567 endif
568 ifeq ($(findstring freebsd,@ARCH@), freebsd)
569         @find -E system addons -type f -not -iregex ".*svn.*" \
570                 -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \
571                 -exec sh -c "install -d \"$(DESTDIR)$(libdir)/xbmc/\`dirname '{}'\`\"" \; \
572                 -and \
573                 -exec install "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; \
574                 -exec printf " -- %-75.75s\r" "{}" \;
575 else
576 ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
577         @find -E system addons -type f -not -iregex ".*svn.*" \
578                 -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \
579                 -exec sh -c "install -d \"$(DESTDIR)$(libdir)/xbmc/\`dirname '{}'\`\"" \; \
580                 -and \
581                 -exec install "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; \
582                 -exec printf " -- %-75.75s\r" "{}" \;
583 else
584         @find system addons -regextype posix-extended -type f -not -iregex ".*svn.*" -iregex ".*\.so|.*\.vis|.*\.xbs|.*\.pvr" -exec install -D "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; -printf " -- %-75.75f\r"
585 endif
586 endif
587
588 install-scripts:
589         @install -d $(DESTDIR)$(bindir)
590         @install tools/Linux/xbmc.sh $(DESTDIR)$(bindir)/xbmc
591         @install tools/Linux/xbmc-standalone.sh $(DESTDIR)$(bindir)/xbmc-standalone
592         @install -d $(DESTDIR)$(datarootdir)/xbmc
593         @install -m 0644 tools/Linux/FEH.py $(DESTDIR)$(datarootdir)/xbmc/FEH.py
594         @install -d $(DESTDIR)$(datarootdir)/xsessions
595         @install -m 0644 tools/Linux/xbmc-xsession.desktop $(DESTDIR)$(datarootdir)/xsessions/XBMC.desktop
596
597 install-datas: install-scripts
598         @echo "Copying support and legal files..."
599         @install -d $(DESTDIR)$(docdir)
600         @for FILE in `ls LICENSE.GPL *.txt`; do \
601                 install -m 0644 "$$FILE" "$(DESTDIR)$(docdir)/$$FILE"; done
602         @install -m 0644 "docs/README.linux" "$(DESTDIR)$(docdir)/README.linux"
603         @echo "Done!"
604         @echo "Copying system files to $(DESTDIR)$(datarootdir)/xbmc"
605         @install -d $(DESTDIR)$(datarootdir)/xbmc
606         @# Arch independent files
607 ifeq ($(findstring bsd,@ARCH@), bsd)
608         @find -E addons language media sounds userdata system -type f \
609                 -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll|$(subst ${space},|,$(INSTALL_FILTER))" \
610                 -exec sh -c "install -d \"$(DESTDIR)$(datarootdir)/xbmc/\`dirname '{}'\`\"" \; \
611                 -and \
612                 -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; \
613                 -exec printf " -- %-75.75s\r" "{}" \;
614 else
615 ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
616         @find -E addons language media sounds userdata system -type f \
617                 -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll|$(subst ${space},|,$(INSTALL_FILTER))" \
618                 -exec sh -c "install -d \"$(DESTDIR)$(datarootdir)/xbmc/\`dirname '{}'\`\"" \; \
619                 -and \
620                 -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; \
621                 -exec printf " -- %-75.75s\r" "{}" \;
622 else
623         @find addons language media sounds userdata system -regextype posix-extended -type f -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll|.*\.pvr|$(subst ${space},|,$(INSTALL_FILTER))" -exec install -D -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; -printf " -- %-75.75f\r"
624 endif
625 endif
626         @# Icons and links
627         @install -d $(DESTDIR)$(datarootdir)/applications
628         @install tools/Linux/xbmc.desktop $(DESTDIR)$(datarootdir)/applications/xbmc.desktop
629         @install -d $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps
630         @install -m 0644 tools/Linux/xbmc-48x48.png $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/xbmc.png
631         @install -d $(DESTDIR)$(datadir)/icons/hicolor/256x256/apps
632         @install -m 0644 media/icon.png $(DESTDIR)$(datadir)/icons/hicolor/256x256/apps/xbmc.png
633         @test -z "$(DESTDIR)" && gtk-update-icon-cache -f -q -t $(datadir)/icons/hicolor || :
634
635         @echo "Copying bindings to $(DESTDIR)$(includedir)/xbmc"
636         @install -d $(DESTDIR)$(includedir)/xbmc
637         @for f in $(BINDINGS); do \
638           install -m 0644 $$f $(DESTDIR)$(includedir)/xbmc ; \
639         done
640         @for f in project/cmake/*.cmake; do \
641           install -m 0644 $$f $(DESTDIR)$(libdir)/xbmc; \
642         done
643
644 uninstall:
645         @echo "Removing XBMC..."
646         @rm -rf $(DESTDIR)$(libdir)/xbmc
647         @rm -rf $(DESTDIR)$(datarootdir)/xbmc $(DESTDIR)$(bindir)/xbmc
648         @rm -rf $(DESTDIR)$(bindir)/xbmc-standalone
649         @rm -rf $(DESTDIR)$(datarootdir)/xsessions/XBMC.desktop
650         @rm -rf $(libdir)/libXBMC_*
651         @rm -rf $(prefix)/include/xbmc
652         @echo "Done!"
653
654 clean-xbmc.bin:
655         rm -f xbmc.bin
656         for d in $(BIN_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
657 clean-eventclients:
658         for d in $(EC_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
659 clean-xbmctex:
660         for d in $(XBMCTEX_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
661 clean-dvdpcodecs:
662         for d in $(DVDPCODECS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
663 clean-papcodecs:
664         for d in $(PAPCODECS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
665 clean-libs:
666         for d in $(LIB_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
667 clean-screensavers:
668         for d in $(SS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
669 clean-visualisations:
670         for d in $(VIS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
671 clean-libaddons:
672         for d in $(LIBADDON_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
673 clean-pvraddons:
674 ifeq (@USE_PVR_ADDONS@,1)
675         if test -f pvr-addons/Makefile; then $(MAKE) -C pvr-addons clean; fi;
676 endif
677
678 clean-codecs: clean-dvdpcodecs clean-papcodecs
679
680 clean-externals: clean-codecs clean-eventclients clean-xbmctex clean-libs \
681         clean-screensavers clean-visualisations clean-libaddons clean-pvraddons
682
683 ifeq (1,@GTEST_CONFIGURED@)
684 check: testsuite
685         for check_program in $(CHECK_PROGRAMS); do $(CURDIR)/$$check_program; done
686
687 testsuite: $(CHECK_EXTENSIONS) $(CHECK_PROGRAMS)
688
689 testframework: $(GTEST_LIBS)
690
691 $(GTEST_LIBS): $(GTEST_DIR)/Makefile
692
693 $(GTEST_DIR)/Makefile: force
694         $(MAKE) -C $(GTEST_DIR)
695
696 $(CHECK_LIBS): force
697         @$(MAKE) $(if $(V),,-s) -C $(@D)
698
699 xbmc-test: $(CHECK_LIBS) $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(GTEST_LIBS)
700 ifeq ($(findstring osx,@ARCH@), osx)
701         $(SILENT_LD) $(CXX) $(LDFLAGS) $(GTEST_INCLUDES) -o $@ -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(GTEST_LIBS) $(CHECK_LIBS) $(LIBS) $(CHECK_LIBADD) -rdynamic
702 else
703         $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) $(GTEST_INCLUDES) -o $@ -Wl,--whole-archive $(DYNOBJSXBMC) $(OBJSXBMC) $(GTEST_LIBS) $(CHECK_LIBS) -Wl,--no-whole-archive $(NWAOBJSXBMC) $(LIBS) $(CHECK_LIBADD) -rdynamic
704 endif
705 else
706 # Give a message that the framework is not configured, but don't fail.
707 check testsuite testframework:
708         @echo "Google Test Framework not configured, skipping testsuite check."
709 endif