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

Delta Between Two Patch Sets: libadblockplus-android/jni/Android.mk

Issue 29646595: Issue 6214 - Configure libadblockplus binaries directory (Closed)
Left Patch Set: Created Dec. 21, 2017, 3:21 p.m.
Right Patch Set: renamed vars Created Jan. 10, 2018, 1:48 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « README.md ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 LOCAL_PATH := $(call my-dir) 1 LOCAL_PATH := $(call my-dir)
2 2
3 # SHARED_V8_LIB_DIRECTORY is expected to be full absolute path if set by user 3 # SHARED_V8_LIB_DIR is expected to be full absolute path if set by user
diegocarloslima 2018/01/03 11:49:29 I wouldn't insist, but maybe it might be better to
4 ifeq ($(SHARED_V8_LIB_DIRECTORY),) 4 ifeq ($(SHARED_V8_LIB_DIR),)
5 # default 5 # default
6 SHARED_V8_LIB_DIRECTORY := ./libadblockplus-binaries 6 SHARED_V8_LIB_DIR := ./libadblockplus-binaries
7 SHARED_V8_INCLUDE_DIRECTORY := jni/libadblockplus-binaries/include/ 7 SHARED_V8_INCLUDE_DIR := jni/libadblockplus-binaries/include/
8 else 8 else
9 # set by user 9 # set by user
10 $(info [Configuration] Using shared v8 libraries directory $(SHARED_V8_LIB_DIR ECTORY)) 10 $(info [Configuration] Using shared v8 libraries directory $(SHARED_V8_LIB_DIR ))
11 SHARED_V8_INCLUDE_DIRECTORY := $(SHARED_V8_LIB_DIRECTORY)/include/ 11 SHARED_V8_INCLUDE_DIR := $(SHARED_V8_LIB_DIR)/include/
12 endif 12 endif
13 13
14 # Report configuration 14 # Report configuration
15 ifeq ($(SHARED_V8_LIB_FILENAMES),) 15 ifeq ($(SHARED_V8_LIB_FILENAMES),)
16 # static 16 # static
17 $(info [Configuration] Linking statically with built-in v8) 17 $(info [Configuration] Linking statically with built-in v8)
18 else 18 else
19 # dynamic 19 # dynamic
20 20
21 define info_define 21 define info_define
22 $(info [Configuration] Linking dynamically with shared v8 library $(SHARED_V 8_LIB_DIRECTORY)/android_$(TARGET_ARCH_ABI)/$1) 22 $(info [Configuration] Linking dynamically with shared v8 library $(SHARED_V 8_LIB_DIR)/android_$(TARGET_ARCH_ABI)/$1)
23 endef 23 endef
24 $(foreach item,$(SHARED_V8_LIB_FILENAMES),$(eval $(call info_define,$(item)))) 24 $(foreach item,$(SHARED_V8_LIB_FILENAMES),$(eval $(call info_define,$(item))))
25 endif 25 endif
26 26
27 # libadblockplus.a 27 # libadblockplus.a
28 include $(CLEAR_VARS) 28 include $(CLEAR_VARS)
29 29
30 LOCAL_MODULE := libadblockplus 30 LOCAL_MODULE := libadblockplus
31 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIRECTORY)/android_$(TARGET_ARCH_ABI)/libadbl ockplus.a 31 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIR)/android_$(TARGET_ARCH_ABI)/libadblockplu s.a
32 32
33 include $(PREBUILT_STATIC_LIBRARY) 33 include $(PREBUILT_STATIC_LIBRARY)
34 34
35 # libv8-platform.a 35 # libv8-platform.a
36 include $(CLEAR_VARS) 36 include $(CLEAR_VARS)
37 37
38 LOCAL_MODULE := v8-libplatform 38 LOCAL_MODULE := v8-libplatform
39 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIRECTORY)/android_$(TARGET_ARCH_ABI)/libv8_l ibplatform.a 39 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIR)/android_$(TARGET_ARCH_ABI)/libv8_libplat form.a
40 40
41 include $(PREBUILT_STATIC_LIBRARY) 41 include $(PREBUILT_STATIC_LIBRARY)
42 42
43 ifeq ($(SHARED_V8_LIB_FILENAMES),) 43 ifeq ($(SHARED_V8_LIB_FILENAMES),)
44 # static 44 # static
45 45
46 # libv8-libsampler.a 46 # libv8-libsampler.a
47 include $(CLEAR_VARS) 47 include $(CLEAR_VARS)
48 48
49 LOCAL_MODULE := v8-libsampler 49 LOCAL_MODULE := v8-libsampler
50 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIRECTORY)/android_$(TARGET_ARCH_ABI)/libv8_l ibsampler.a 50 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIR)/android_$(TARGET_ARCH_ABI)/libv8_libsamp ler.a
51 51
52 include $(PREBUILT_STATIC_LIBRARY) 52 include $(PREBUILT_STATIC_LIBRARY)
53 53
54 # libv8-base.a 54 # libv8-base.a
55 include $(CLEAR_VARS) 55 include $(CLEAR_VARS)
56 56
57 LOCAL_MODULE := v8-base 57 LOCAL_MODULE := v8-base
58 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIRECTORY)/android_$(TARGET_ARCH_ABI)/libv8_b ase.a 58 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIR)/android_$(TARGET_ARCH_ABI)/libv8_base.a
59 59
60 include $(PREBUILT_STATIC_LIBRARY) 60 include $(PREBUILT_STATIC_LIBRARY)
61 61
62 # libv8_libbase.a 62 # libv8_libbase.a
63 include $(CLEAR_VARS) 63 include $(CLEAR_VARS)
64 64
65 LOCAL_MODULE := v8-libbase 65 LOCAL_MODULE := v8-libbase
66 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIRECTORY)/android_$(TARGET_ARCH_ABI)/libv8_l ibbase.a 66 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIR)/android_$(TARGET_ARCH_ABI)/libv8_libbase .a
67 67
68 include $(PREBUILT_STATIC_LIBRARY) 68 include $(PREBUILT_STATIC_LIBRARY)
69 69
70 # libv8_snapshot.a 70 # libv8_snapshot.a
71 include $(CLEAR_VARS) 71 include $(CLEAR_VARS)
72 72
73 LOCAL_MODULE := v8-snapshot 73 LOCAL_MODULE := v8-snapshot
74 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIRECTORY)/android_$(TARGET_ARCH_ABI)/libv8_s napshot.a 74 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIR)/android_$(TARGET_ARCH_ABI)/libv8_snapsho t.a
75 75
76 include $(PREBUILT_STATIC_LIBRARY) 76 include $(PREBUILT_STATIC_LIBRARY)
77 77
78 else 78 else
79 # dynamic 79 # dynamic
80 80
81 # prebuilt shared libraries v8 81 # prebuilt shared libraries v8
82 82
83 define libv8_define 83 define libv8_define
84 include $(CLEAR_VARS) 84 include $(CLEAR_VARS)
85 85
86 LOCAL_MODULE := $1 86 LOCAL_MODULE := $1
87 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIRECTORY)/android_$(TARGET_ARCH_ABI)/$1 87 LOCAL_SRC_FILES := $(SHARED_V8_LIB_DIR)/android_$(TARGET_ARCH_ABI)/$1
88 88
89 include $(PREBUILT_SHARED_LIBRARY) 89 include $(PREBUILT_SHARED_LIBRARY)
90 endef 90 endef
91 $(foreach item,$(SHARED_V8_LIB_FILENAMES),$(eval $(call libv8_define,$(item)))) 91 $(foreach item,$(SHARED_V8_LIB_FILENAMES),$(eval $(call libv8_define,$(item))))
92 92
93 endif 93 endif
94 94
95 include $(CLEAR_VARS) 95 include $(CLEAR_VARS)
96 96
97 LOCAL_MODULE := libadblockplus-jni 97 LOCAL_MODULE := libadblockplus-jni
98 LOCAL_SRC_FILES := JniLibrary.cpp 98 LOCAL_SRC_FILES := JniLibrary.cpp
99 LOCAL_SRC_FILES += JniPlatform.cpp 99 LOCAL_SRC_FILES += JniPlatform.cpp
100 LOCAL_SRC_FILES += JniJsEngine.cpp JniFilterEngine.cpp JniJsValue.cpp 100 LOCAL_SRC_FILES += JniJsEngine.cpp JniFilterEngine.cpp JniJsValue.cpp
101 LOCAL_SRC_FILES += JniFilter.cpp JniSubscription.cpp JniEventCallback.cpp 101 LOCAL_SRC_FILES += JniFilter.cpp JniSubscription.cpp JniEventCallback.cpp
102 LOCAL_SRC_FILES += JniLogSystem.cpp JniWebRequest.cpp 102 LOCAL_SRC_FILES += JniLogSystem.cpp JniWebRequest.cpp
103 LOCAL_SRC_FILES += JniUpdateAvailableCallback.cpp JniUpdateCheckDoneCallback.cpp 103 LOCAL_SRC_FILES += JniUpdateAvailableCallback.cpp JniUpdateCheckDoneCallback.cpp
104 LOCAL_SRC_FILES += JniFilterChangeCallback.cpp JniCallbacks.cpp Utils.cpp 104 LOCAL_SRC_FILES += JniFilterChangeCallback.cpp JniCallbacks.cpp Utils.cpp
105 LOCAL_SRC_FILES += JniNotification.cpp JniShowNotificationCallback.cpp 105 LOCAL_SRC_FILES += JniNotification.cpp JniShowNotificationCallback.cpp
106 LOCAL_SRC_FILES += JniIsAllowedConnectionTypeCallback.cpp 106 LOCAL_SRC_FILES += JniIsAllowedConnectionTypeCallback.cpp
107 107
108 LOCAL_CPP_FEATURES := exceptions 108 LOCAL_CPP_FEATURES := exceptions
109 LOCAL_CPPFLAGS += -std=c++11 109 LOCAL_CPPFLAGS += -std=c++11
110 110
111 LOCAL_C_INCLUDES := $(SHARED_V8_INCLUDE_DIRECTORY) 111 LOCAL_C_INCLUDES := $(SHARED_V8_INCLUDE_DIR)
112 112
113 LOCAL_STATIC_LIBRARIES := libadblockplus v8-libplatform 113 LOCAL_STATIC_LIBRARIES := libadblockplus v8-libplatform
114 114
115 ifeq ($(SHARED_V8_LIB_FILENAMES),) 115 ifeq ($(SHARED_V8_LIB_FILENAMES),)
116 # static 116 # static
117 LOCAL_STATIC_LIBRARIES += v8-base v8-snapshot v8-libsampler v8-libbase 117 LOCAL_STATIC_LIBRARIES += v8-base v8-snapshot v8-libsampler v8-libbase
118 else 118 else
119 # dynamic 119 # dynamic
120 LOCAL_STATIC_LIBRARIES += $(SHARED_V8_LIB_FILENAMES) 120 LOCAL_STATIC_LIBRARIES += $(SHARED_V8_LIB_FILENAMES)
121 endif 121 endif
122 122
123 include $(BUILD_SHARED_LIBRARY) 123 include $(BUILD_SHARED_LIBRARY)
LEFTRIGHT
« README.md ('k') | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld