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 ANDROID_PARAMETERS += arm_float_abi=default | 6 ANDROID_PARAMETERS += arm_float_abi=default |
7 | 7 |
8 TEST_EXECUTABLE = build/out/Debug/tests | 8 TEST_EXECUTABLE = build/out/Debug/tests |
9 | 9 |
10 .PHONY: all test clean v8_android android docs | 10 .PHONY: all test clean v8_android android docs |
11 | 11 |
12 all: | 12 all: |
13 » third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output=
build -Dtarget_arch=$(ARCH) libadblockplus.gyp | 13 » third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output=
build -Dtarget_arch=$(ARCH) -Dhost_arch=$(shell python ./third_party/v8/build/de
tect_v8_host_arch.py) libadblockplus.gyp |
14 $(MAKE) -C build | 14 $(MAKE) -C build |
15 | 15 |
16 test: all | 16 test: all |
17 ifdef FILTER | 17 ifdef FILTER |
18 $(TEST_EXECUTABLE) --gtest_filter=$(FILTER) | 18 $(TEST_EXECUTABLE) --gtest_filter=$(FILTER) |
19 else | 19 else |
20 $(TEST_EXECUTABLE) | 20 $(TEST_EXECUTABLE) |
21 endif | 21 endif |
22 | 22 |
23 docs: | 23 docs: |
(...skipping 13 matching lines...) Expand all Loading... |
37 GYP_DEFINES="${ANDROID_PARAMETERS}" \ | 37 GYP_DEFINES="${ANDROID_PARAMETERS}" \ |
38 third_party/gyp/gyp --depth=. -f make-android -I common.gypi --generator
-output=build -Gandroid_ndk_version=r9 libadblockplus.gyp | 38 third_party/gyp/gyp --depth=. -f make-android -I common.gypi --generator
-output=build -Gandroid_ndk_version=r9 libadblockplus.gyp |
39 $(ANDROID_NDK_ROOT)/ndk-build -C build installed_modules \ | 39 $(ANDROID_NDK_ROOT)/ndk-build -C build installed_modules \ |
40 BUILDTYPE=Release \ | 40 BUILDTYPE=Release \ |
41 APP_PLATFORM=android-9 \ | 41 APP_PLATFORM=android-9 \ |
42 APP_STL=gnustl_static \ | 42 APP_STL=gnustl_static \ |
43 APP_BUILD_SCRIPT=Makefile \ | 43 APP_BUILD_SCRIPT=Makefile \ |
44 NDK_PROJECT_PATH=. \ | 44 NDK_PROJECT_PATH=. \ |
45 NDK_OUT=. \ | 45 NDK_OUT=. \ |
46 NDK_APP_DST_DIR=android_arm.release | 46 NDK_APP_DST_DIR=android_arm.release |
OLD | NEW |