Left: | ||
Right: |
OLD | NEW |
---|---|
1 ARCH := x64 | 1 ARCH := x64 |
2 | 2 |
3 ANDROID_PARAMETERS = target_arch=arm OS=android | 3 ANDROID_PARAMETERS = target_arch=arm OS=android |
4 ANDROID_PARAMETERS += android_target_arch=arm | 4 ANDROID_PARAMETERS += android_target_arch=arm |
5 ANDROID_PARAMETERS += arm_neon=0 armv7=0 arm_fpu=off vfp3=off | 5 ANDROID_PARAMETERS += arm_neon=0 armv7=0 arm_fpu=off vfp3=off |
6 | 6 |
7 .PHONY: all test clean v8_android android | 7 .PHONY: all test clean v8_android android |
8 | 8 |
9 all: | 9 all: |
10 third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output= build -Dtarget_arch=$(ARCH) libadblockplus.gyp | 10 third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output= build -Dtarget_arch=$(ARCH) libadblockplus.gyp |
11 $(MAKE) -C build | 11 $(MAKE) -C build |
12 | 12 |
13 test: all | 13 test: all |
14 build/out/Debug/tests | 14 build/out/Debug/tests |
15 | 15 |
16 clean: | 16 clean: |
17 $(RM) -r build | 17 $(RM) -r build |
18 | 18 |
19 v8_android: | 19 v8_android: |
20 mkdir -p third_party/v8/build/gyp | 20 mkdir -p third_party/v8/build/gyp |
21 cp -f third_party/v8_gyp_launcher third_party/v8/build/gyp/gyp | 21 cp -f third_party/v8_gyp_launcher third_party/v8/build/gyp/gyp |
22 DEFINES="${ANDROID_PARAMETERS}" \ | 22 DEFINES="${ANDROID_PARAMETERS}" \ |
23 OUTDIR=../../build \ | 23 OUTDIR=../../build \ |
24 » $(MAKE) -C third_party/v8 android_arm.release | 24 » $(MAKE) -C third_party/v8 android_arm.debug |
Andrey Novikov
2013/06/18 11:48:28
Disregard these file changes, it's for debugging p
Wladimir Palant
2013/06/18 15:02:15
I hope you won't check them in then :)
| |
25 | 25 |
26 android: v8_android | 26 android: v8_android |
27 GYP_DEFINES="${ANDROID_PARAMETERS}" \ | 27 GYP_DEFINES="${ANDROID_PARAMETERS}" \ |
28 third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output= build -Gandroid_ndk_version=r8e libadblockplus.gyp | 28 third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output= build -Gandroid_ndk_version=r8e libadblockplus.gyp |
29 ndk-build -C build installed_modules \ | 29 ndk-build -C build installed_modules \ |
30 » BUILDTYPE=Release \ | 30 » BUILDTYPE=Debug \ |
31 APP_PLATFORM=android-9 \ | 31 APP_PLATFORM=android-9 \ |
32 APP_STL=gnustl_static \ | 32 APP_STL=gnustl_static \ |
33 APP_BUILD_SCRIPT=Makefile \ | 33 APP_BUILD_SCRIPT=Makefile \ |
34 NDK_PROJECT_PATH=. \ | 34 NDK_PROJECT_PATH=. \ |
35 NDK_OUT=. \ | 35 NDK_OUT=. \ |
36 NDK_APP_DST_DIR=android_arm.release | 36 NDK_APP_DST_DIR=android_arm.release |
OLD | NEW |