File: tools_aapt_makefile.patch

package info (click to toggle)
android-platform-frameworks-base 21-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,836 kB
  • ctags: 9,265
  • sloc: cpp: 51,953; java: 19,224; ansic: 612; python: 571; yacc: 300; sh: 246; lex: 212; xml: 146; makefile: 70
file content (32 lines) | stat: -rw-r--r-- 733 bytes parent folder | download
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
--- /dev/null
+++ b/tools/aapt/Makefile
@@ -0,0 +1,29 @@
+#!/usr/bin/make
+
+CXX = g++
+
+HOST_OS=linux
+include Android.mk
+
+OBJECTS = $(LOCAL_SRC_FILES:.cpp=.o)
+
+ALL_CXXFLAGS = -O2 -fPIC $(LOCAL_CFLAGS) \
+	-I../../include -I/usr/include/android \
+	-include /usr/include/android/arch/linux-x86/AndroidConfig.h
+ALL_LDFLAGS = -fPIC -Wl,-rpath=/usr/lib/android
+ALL_LIBS = $(LOCAL_LDLIBS) -lexpat -lpng \
+	-L/usr/lib/android  -lcutils -lhost -llog -lutils \
+	-L../../libs/androidfw  -landroidfw
+
+CXXFLAGS := $(ALL_CXXFLAGS) $(CXXFLAGS)
+LDFLAGS := $(ALL_LDFLAGS) $(LDFLAGS)
+LIBS := $(ALL_LIBS) $(LIBS)
+
+all: aapt
+
+aapt: $(OBJECTS)
+	$(CXX) $(LDFLAGS) -o aapt $(OBJECTS) $(LIBS)
+
+clean:
+	rm -f $(OBJECTS)
+	rm -f aapt