blob: 5324b91eed1b141b395c6751b9d8892be0074d44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
include ../Makefile.include
ifneq ($(shell test -f $(NATIVEPREFIX)/share/config.site && echo 1),1)
$(error Error: $(NATIVEPREFIX)/share/config.site is missing. Please reconfigure depends to generate it)
endif
NATIVE= m4 gettext autoconf automake \
libtool pkg-config yasm cmake \
gas-preprocessor python27 zlib \
pcre swig \
libpng libjpeg-turbo liblzo2 giflib \
distribute distutilscross JsonSchemaBuilder TexturePacker \
flatbuffers
ifeq ($(OS),ios)
NATIVE += dpkg xz tar gen_entitlements ldid
endif
ifeq ($(OS),osx)
NATIVE += xz tar
endif
ifeq ($(OS),linux)
ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),raspberry-pi gbm))
NATIVE += libffi meson ninja python3 setuptools
endif
endif
ifeq ($(TARGET_PLATFORM),wayland)
NATIVE += expat wayland-scanner waylandpp-scanner
EXPAT = expat
endif
.PHONY: $(NATIVE) native
all: native
@echo "Dependencies built successfully."
# Dependency layout for parallel builds
autoconf: m4
automake: autoconf
dpkg: automake gettext libtool pkg-config tar
flatbuffers: cmake
libtool: automake
libpng: zlib
meson: python3 setuptools
ninja: python3
swig: pcre
distribute: python27
distutilscross: python27 distribute
tar: xz automake
python27: zlib
python3: $(EXPAT) libffi pkg-config zlib
setuptools: python3
wayland-scanner: expat
waylandpp-scanner: cmake
#liblzo2 has stale packaged automake files that cause borked host/build detection
liblzo2: automake
JsonSchemaBuilder: automake
TexturePacker: automake pkg-config libpng liblzo2 giflib libjpeg-turbo
native: $(NATIVE)
$(NATIVE):
$(MAKE) -C $@
clean:
for d in $(NATIVE); do $(MAKE) -C $$d clean; done
# Debug target, this will DELETE all data in staging!
test-dependencies:
( for d in $(NATIVE); do \
rm -rf $(NATIVEPREFIX); \
mkdir -p $(NATIVEPREFIX)/include $(NATIVEPREFIX)/share $(NATIVEPREFIX)/bin; \
cp -f config.site $(NATIVEPREFIX)/share/; \
$(MAKE) distclean; \
$(MAKE) $$d; done ) && echo "$@ built successfully"
distclean::
for d in $(NATIVE); do $(MAKE) -C $$d distclean; done
|