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 $@))" |
+ |