[Subtitles] Partial fix for text/border color gap
[xbmc.git] / tools / depends / native / Makefile
blob1f7526474bd93dd6971e6bbe89cf0d7bb8d69323
1 include ../Makefile.include
3 ifneq ($(shell test -f $(NATIVEPREFIX)/share/config.site && echo 1),1)
4 $(error Error: $(NATIVEPREFIX)/share/config.site is missing. Please reconfigure depends to generate it)
5 endif
7 # Keep in alphabetical order
8 NATIVE= \
9 autoconf \
10 autoconf-archive \
11 automake \
12 cmake \
13 gas-preprocessor \
14 gettext \
15 giflib \
16 heimdal \
17 JsonSchemaBuilder \
18 libjpeg-turbo \
19 liblzo2 \
20 libpng \
21 libtool \
22 m4 \
23 meson \
24 nasm \
25 ninja \
26 openssl \
27 pcre \
28 perlmodule-parseyapp \
29 pkg-config \
30 python3 \
31 setuptools \
32 swig \
33 TexturePacker \
34 zlib
36 ifneq ($(NATIVE_OS),osx)
37 NATIVE += libffi
38 LIBFFI = libffi
39 endif
41 ifeq ($(OS),darwin_embedded)
42 NATIVE += dpkg xz tar ldid
43 endif
45 ifeq ($(OS),linux)
46 NATIVE += expat wayland-scanner pugixml waylandpp-scanner
47 EXPAT = expat
49 ifeq ($(RENDER_SYSTEM),gles)
50 NATIVE += MarkupSafe Mako
51 endif
52 endif
54 .PHONY: $(NATIVE) native
56 all: native
57 @echo "Dependencies built successfully."
59 # Dependency layout for parallel builds
60 autoconf-archive: autoconf
61 autoconf: m4
62 automake: autoconf
63 dpkg: automake gettext libtool pkg-config tar
64 heimdal: libtool
65 JsonSchemaBuilder: automake
66 libjpeg-turbo: cmake nasm
67 libpng: zlib automake
68 libtool: automake
69 Mako: MarkupSafe
70 meson: python3 setuptools
71 ninja: meson
72 openssl: zlib
73 pugixml: cmake
74 python3: $(EXPAT) $(LIBFFI) pkg-config zlib openssl autoconf-archive
75 setuptools: python3
76 swig: pcre
77 tar: xz automake
78 TexturePacker: automake pkg-config libpng liblzo2 giflib libjpeg-turbo
79 wayland-scanner: expat pkg-config
80 waylandpp-scanner: cmake pugixml
82 # python installs are not thread safe when using easy_install method.
83 # MarkupSafe doesn't really depend on ninja but we need to make the
84 # build sequential
85 MarkupSafe: ninja
87 #liblzo2 has stale packaged automake files that cause borked host/build detection
88 liblzo2: automake
90 native: $(NATIVE)
91 $(NATIVE):
92 $(MAKE) -C $@
93 clean:
94 for d in $(NATIVE); do $(MAKE) -C $$d clean; done
96 # Debug target, this will DELETE all data in staging!
97 test-dependencies:
98 ( for d in $(NATIVE); do \
99 rm -rf $(NATIVEPREFIX); \
100 mkdir -p $(NATIVEPREFIX)/include $(NATIVEPREFIX)/share $(NATIVEPREFIX)/bin; \
101 cp -f config.site $(NATIVEPREFIX)/share/; \
102 $(MAKE) distclean; \
103 $(MAKE) $$d; done ) && echo "$@ built successfully"
105 distclean::
106 for d in $(NATIVE); do $(MAKE) -C $$d distclean; done