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
|
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
export DEB_HOST_MULTIARCH
export DEB_CFLAGS_MAINT_APPEND = -fPIC
export DEB_CXXFLAGS_MAINT_APPEND = -fPIC
export DEB_LDFLAGS_MAINT_APPEND = -fPIC
DEB_CPPFLAGS_MAINT_APPEND += \
-DNDEBUG \
-I/usr/include/android \
-UDEBUG
# Clang defines a macro `mips = 1` which disrupts the namespace declaration `art::mips`
DEB_CPPFLAGS_MAINT_APPEND += -Umips
export DEB_CPPFLAGS_MAINT_APPEND
COMPONENTS_ANY = debian/out/dmtracedump
COMPONENTS_AOSP = debian/out/dexdump debian/out/dexlist
# MIPS is left out because ART only supports MIPSr6 while Debian is by default MIPSr2
ifeq ($(filter amd64 i386 armel armhf arm64,$(DEB_HOST_ARCH)),)
COMPONENTS += $(COMPONENTS_ANY)
else
COMPONENTS += $(COMPONENTS_ANY) $(COMPONENTS_AOSP)
endif
debian/out/%: debian/%.mk
dh_auto_build --buildsystem=makefile -- --file=$<
debian/out/lib%.so: debian/lib%.mk
dh_auto_build --buildsystem=makefile -- --file=$<
debian/out/dexdump: debian/dexdump.mk debian/out/libart.so
dh_auto_build --buildsystem=makefile -- --file=$<
debian/out/libart.so: debian/libart.mk debian/out/libsigchain.so
dh_auto_build --buildsystem=makefile -- --file=$<
%:
dh $@
override_dh_auto_build: $(COMPONENTS)
override_dh_auto_clean:
dh_auto_clean
make clean --file=debian/libart.mk
|