Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 LOCAL_PATH := $(call my-dir) | 1 LOCAL_PATH := $(call my-dir) |
2 | 2 |
3 # Report configuration | 3 # Report configuration |
4 ifeq ($(SHARED_V8_LIB_FILENAME),) | 4 ifeq ($(SHARED_V8_LIB_FILENAMES),) |
5 # static | 5 # static |
6 $(info [Configuration] Linking statically with built-in v8) | 6 $(info [Configuration] Linking statically with built-in v8) |
7 else | 7 else |
8 # dynamic | 8 # dynamic |
9 | 9 |
10 SHARED_V8_LIB_FILENAME_LIST = $(subst :, ,$(SHARED_V8_LIB_FILENAME)) | |
11 define info_define | 10 define info_define |
12 $(info [Configuration] Linking dynamically with shared v8 library ./libadblo ckplus-binaries/android_$(TARGET_ARCH_ABI)/$1) | 11 $(info [Configuration] Linking dynamically with shared v8 library ./libadblo ckplus-binaries/android_$(TARGET_ARCH_ABI)/$1) |
13 endef | 12 endef |
14 $(foreach item,$(SHARED_V8_LIB_FILENAME_LIST),$(eval $(call info_define,$(item)) )) | 13 $(foreach item,$(SHARED_V8_LIB_FILENAMES),$(eval $(call info_define,$(item)))) |
15 endif | 14 endif |
16 | 15 |
17 # libadblockplus.a | 16 # libadblockplus.a |
18 include $(CLEAR_VARS) | 17 include $(CLEAR_VARS) |
19 | 18 |
20 LOCAL_MODULE := libadblockplus | 19 LOCAL_MODULE := libadblockplus |
21 LOCAL_SRC_FILES := ./libadblockplus-binaries/android_$(TARGET_ARCH_ABI)/libadblo ckplus.a | 20 LOCAL_SRC_FILES := ./libadblockplus-binaries/android_$(TARGET_ARCH_ABI)/libadblo ckplus.a |
22 | 21 |
23 include $(PREBUILT_STATIC_LIBRARY) | 22 include $(PREBUILT_STATIC_LIBRARY) |
24 | 23 |
25 # libv8-platform.a | 24 # libv8-platform.a |
26 include $(CLEAR_VARS) | 25 include $(CLEAR_VARS) |
27 | 26 |
28 LOCAL_MODULE := v8-libplatform | 27 LOCAL_MODULE := v8-libplatform |
29 LOCAL_SRC_FILES := ./libadblockplus-binaries/android_$(TARGET_ARCH_ABI)/libv8_li bplatform.a | 28 LOCAL_SRC_FILES := ./libadblockplus-binaries/android_$(TARGET_ARCH_ABI)/libv8_li bplatform.a |
30 | 29 |
31 include $(PREBUILT_STATIC_LIBRARY) | 30 include $(PREBUILT_STATIC_LIBRARY) |
32 | 31 |
33 ifeq ($(SHARED_V8_LIB_FILENAME),) | 32 ifeq ($(SHARED_V8_LIB_FILENAMES),) |
34 # static | 33 # static |
35 | 34 |
36 # libv8-libsampler.a | 35 # libv8-libsampler.a |
37 include $(CLEAR_VARS) | 36 include $(CLEAR_VARS) |
38 | 37 |
39 LOCAL_MODULE := v8-libsampler | 38 LOCAL_MODULE := v8-libsampler |
40 LOCAL_SRC_FILES := ./libadblockplus-binaries/android_$(TARGET_ARCH_ABI)/libv8_li bsampler.a | 39 LOCAL_SRC_FILES := ./libadblockplus-binaries/android_$(TARGET_ARCH_ABI)/libv8_li bsampler.a |
41 | 40 |
42 include $(PREBUILT_STATIC_LIBRARY) | 41 include $(PREBUILT_STATIC_LIBRARY) |
43 | 42 |
(...skipping 19 matching lines...) Expand all Loading... | |
63 LOCAL_MODULE := v8-snapshot | 62 LOCAL_MODULE := v8-snapshot |
64 LOCAL_SRC_FILES := ./libadblockplus-binaries/android_$(TARGET_ARCH_ABI)/libv8_sn apshot.a | 63 LOCAL_SRC_FILES := ./libadblockplus-binaries/android_$(TARGET_ARCH_ABI)/libv8_sn apshot.a |
65 | 64 |
66 include $(PREBUILT_STATIC_LIBRARY) | 65 include $(PREBUILT_STATIC_LIBRARY) |
67 | 66 |
68 else | 67 else |
69 # dynamic | 68 # dynamic |
70 | 69 |
71 # prebuilt shared libraries v8 | 70 # prebuilt shared libraries v8 |
72 | 71 |
73 SHARED_V8_LIB_FILENAME_LIST = $(subst :, ,$(SHARED_V8_LIB_FILENAME)) | |
74 define libv8_define | 72 define libv8_define |
75 include $(CLEAR_VARS) | 73 include $(CLEAR_VARS) |
76 | 74 |
77 LOCAL_MODULE := $1 | 75 LOCAL_MODULE := $1 |
78 LOCAL_SRC_FILES := ./libadblockplus-binaries/android_$(TARGET_ARCH_ABI)/$1 | 76 LOCAL_SRC_FILES := ./libadblockplus-binaries/android_$(TARGET_ARCH_ABI)/$1 |
79 | 77 |
80 include $(PREBUILT_SHARED_LIBRARY) | 78 include $(PREBUILT_SHARED_LIBRARY) |
81 endef | 79 endef |
82 $(foreach item,$(SHARED_V8_LIB_FILENAME_LIST),$(eval $(call libv8_define,$(item) ))) | 80 $(foreach item,$(SHARED_V8_LIB_FILENAMES),$(eval $(call libv8_define,$(item)))) |
sergei
2017/09/28 08:08:41
I find it very good that we are looping here throu
sergei
2017/09/28 09:15:27
What about replacing LIB_FILENAME by something lik
anton
2017/09/28 11:01:38
For Android syntax we pass full (absolute or relat
sergei
2017/09/28 11:35:00
This is still opened.
| |
83 | 81 |
84 endif | 82 endif |
85 | 83 |
86 include $(CLEAR_VARS) | 84 include $(CLEAR_VARS) |
87 | 85 |
88 LOCAL_MODULE := libadblockplus-jni | 86 LOCAL_MODULE := libadblockplus-jni |
89 LOCAL_SRC_FILES := JniLibrary.cpp | 87 LOCAL_SRC_FILES := JniLibrary.cpp |
90 LOCAL_SRC_FILES += JniPlatform.cpp | 88 LOCAL_SRC_FILES += JniPlatform.cpp |
91 LOCAL_SRC_FILES += JniJsEngine.cpp JniFilterEngine.cpp JniJsValue.cpp | 89 LOCAL_SRC_FILES += JniJsEngine.cpp JniFilterEngine.cpp JniJsValue.cpp |
92 LOCAL_SRC_FILES += JniFilter.cpp JniSubscription.cpp JniEventCallback.cpp | 90 LOCAL_SRC_FILES += JniFilter.cpp JniSubscription.cpp JniEventCallback.cpp |
93 LOCAL_SRC_FILES += JniLogSystem.cpp JniWebRequest.cpp | 91 LOCAL_SRC_FILES += JniLogSystem.cpp JniWebRequest.cpp |
94 LOCAL_SRC_FILES += JniUpdateAvailableCallback.cpp JniUpdateCheckDoneCallback.cpp | 92 LOCAL_SRC_FILES += JniUpdateAvailableCallback.cpp JniUpdateCheckDoneCallback.cpp |
95 LOCAL_SRC_FILES += JniFilterChangeCallback.cpp JniCallbacks.cpp Utils.cpp | 93 LOCAL_SRC_FILES += JniFilterChangeCallback.cpp JniCallbacks.cpp Utils.cpp |
96 LOCAL_SRC_FILES += JniNotification.cpp JniShowNotificationCallback.cpp | 94 LOCAL_SRC_FILES += JniNotification.cpp JniShowNotificationCallback.cpp |
97 LOCAL_SRC_FILES += JniIsAllowedConnectionTypeCallback.cpp | 95 LOCAL_SRC_FILES += JniIsAllowedConnectionTypeCallback.cpp |
98 | 96 |
99 LOCAL_CPP_FEATURES := exceptions | 97 LOCAL_CPP_FEATURES := exceptions |
100 LOCAL_CPPFLAGS += -std=c++11 | 98 LOCAL_CPPFLAGS += -std=c++11 |
101 | 99 |
102 LOCAL_C_INCLUDES := jni/libadblockplus-binaries/include/ | 100 LOCAL_C_INCLUDES := jni/libadblockplus-binaries/include/ |
103 | 101 |
104 LOCAL_STATIC_LIBRARIES := libadblockplus v8-libplatform | 102 LOCAL_STATIC_LIBRARIES := libadblockplus v8-libplatform |
sergei
2017/09/28 09:15:27
I'm not sure that "v8-libplatform" should be alway
anton
2017/09/28 11:01:38
I tend to agree with it.
sergei
2017/10/02 09:12:02
So, what is the decision regarding v8-libplatform?
anton
2017/10/02 09:22:04
i'd say for now we should leave it as in review (r
sergei
2017/10/02 10:08:01
Acknowledged.
| |
105 | 103 |
106 ifeq ($(SHARED_V8_LIB_FILENAME),) | 104 ifeq ($(SHARED_V8_LIB_FILENAMES),) |
107 # static | 105 # static |
108 LOCAL_STATIC_LIBRARIES += v8-base v8-snapshot v8-libsampler v8-libbase | 106 LOCAL_STATIC_LIBRARIES += v8-base v8-snapshot v8-libsampler v8-libbase |
109 else | 107 else |
110 # dynamic | 108 # dynamic |
111 SHARED_V8_LIB_FILENAME_LIST = $(subst :, ,$(SHARED_V8_LIB_FILENAME)) | 109 LOCAL_STATIC_LIBRARIES += $(SHARED_V8_LIB_FILENAMES) |
112 LOCAL_STATIC_LIBRARIES += $(SHARED_V8_LIB_FILENAME_LIST) | |
113 endif | 110 endif |
114 | 111 |
115 include $(BUILD_SHARED_LIBRARY) | 112 include $(BUILD_SHARED_LIBRARY) |
LEFT | RIGHT |