Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: Makefile

Issue 10228016: Android build target for libadblockplus (Closed)
Patch Set: Created April 30, 2013, 7:40 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Makefile.android » ('j') | Makefile.android » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Makefile
===================================================================
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,11 @@
ARCH := x64
-.PHONY: test
+MODES = release debug
+ANDROID_ARCHES = android_ia32 android_arm android_mipsel
+ANDROID_BUILDS = $(foreach mode,$(MODES), \
+ $(addsuffix .$(mode),$(ANDROID_ARCHES)))
+
+.PHONY: all test clean android $(ANDROID_ARCHES) $(ANDROID_BUILDS)
all:
third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output=build -Dtarget_arch=$(ARCH) libadblockplus.gyp
@@ -11,3 +16,13 @@
clean:
$(RM) -r build
+
+android: android_arm.release
Andrey Novikov 2013/04/30 20:16:05 Here should be enumeration of all arches but I do
+
+$(ANDROID_ARCHES): $(addprefix $@.,$(MODES))
+
+$(ANDROID_BUILDS): Makefile.android
+ @$(MAKE) -f Makefile.android $@ \
+ ARCH="$(basename $@)" \
+ MODE="$(subst .,,$(suffix $@))"
+
« no previous file with comments | « no previous file | Makefile.android » ('j') | Makefile.android » ('J')

Powered by Google App Engine
This is Rietveld