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

Unified Diff: Makefile

Issue 10488022: Added Android build target (Closed)
Patch Set: Review comments addressed Created May 24, 2013, 8:40 a.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 | common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Makefile
===================================================================
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,36 @@
ARCH := x64
-.PHONY: test
+ANDROID_PARAMETERS = target_arch=arm OS=android
+ANDROID_PARAMETERS += android_target_arch=arm
+ANDROID_PARAMETERS += arm_neon=0 armv7=0 arm_fpu=off vfp3=off
+
+.PHONY: all test clean v8_android android
all:
third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output=build -Dtarget_arch=$(ARCH) libadblockplus.gyp
$(MAKE) -C build
test: all
build/out/Debug/tests
clean:
$(RM) -r build
+
+v8_android:
+ mkdir -p third_party/v8/build/gyp
+ cp -f third_party/v8_gyp_launcher third_party/v8/build/gyp/gyp
+ DEFINES="${ANDROID_PARAMETERS}" \
+ OUTDIR=../../build \
+ $(MAKE) -C third_party/v8 android_arm.release
+
+android: v8_android
+ GYP_DEFINES="${ANDROID_PARAMETERS}" \
+ third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output=build -Gandroid_ndk_version=r8e libadblockplus.gyp
+ ndk-build -C build installed_modules \
+ BUILDTYPE=Release \
+ APP_PLATFORM=android-9 \
+ APP_STL=gnustl_static \
+ APP_BUILD_SCRIPT=Makefile \
+ NDK_PROJECT_PATH=. \
+ NDK_OUT=. \
+ NDK_APP_DST_DIR=android_arm.release
« no previous file with comments | « no previous file | common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld