Debian Codegraph @

debian/aapt2.mk

raw symbols SCIP
1 include /usr/share/dpkg/architecture.mk
2
3 NAME = aapt2
4
5 # tools/aapt2/Android.bp
6 SOURCES = Main.cpp
7 SOURCES := $(foreach source, $(SOURCES), tools/aapt2/$(source))
8 OBJECTS = $(SOURCES:.cpp=.o)
9
10 CXXFLAGS += -fno-rtti
11 CPPFLAGS += \
12 -Idebian/out/proto/frameworks/base/tools/aapt2 \
13 -Ilibs/androidfw/include \
14 -Itools/aapt2 \
15 -Wno-unused-parameter \
16 -Wno-missing-field-initializers \
17
18 LDFLAGS += \
19 -Ldebian/out \
20 -L/usr/lib/$(DEB_HOST_MULTIARCH)/android \
21 -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android \
22 -laapt2 \
23 -landroidfw \
24 -lbase \
25 -pie
26
27 # -latomic should be the last library specified
28 # https://github.com/android/ndk/issues/589
29 ifneq ($(filter armel mipsel,$(DEB_HOST_ARCH)),)
30 LDFLAGS += -latomic
31 endif
32
33 build: $(OBJECTS)
34 $(CXX) $^ -o debian/out/$(NAME) $(LDFLAGS)
35
36 $(OBJECTS): %.o: %.cpp
37 $(CXX) -c -o $@ $< $(CXXFLAGS) $(CPPFLAGS)