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

Side by Side Diff: libadblockplus.gyp

Issue 29451722: Issue 4907 - Update v8 to 5.7.278 in libadblockplus (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created May 30, 2017, 3:02 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 { 1 {
2 'conditions': [[ 2 'conditions': [[
3 # We don't want to use curl on Windows and Android, skip the check there 3 # We don't want to use curl on Windows and Android, skip the check there
4 'OS=="win" or OS=="android"', 4 'OS=="win" or OS=="android"',
5 { 5 {
6 'variables': { 6 'variables': {
7 'have_curl': 0 7 'have_curl': 0
8 } 8 }
9 }, 9 },
10 { 10 {
11 'variables': { 11 'variables': {
12 'have_curl': '<!(python check_curl.py)' 12 'have_curl': '<!(python check_curl.py)'
13 } 13 }
14 } 14 }
15 ],
16 [
17 'OS=="win"', {
18 'targets': [{
19 'target_name': 'build-v8',
20 'type': 'none',
21 'actions': [{
22 'action_name': 'build-v8',
23 'inputs': ['build-v8.cmd'],
24 'outputs': [
25 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_libplatform. lib',
Eric 2017/05/30 17:31:40 Is there a reason for the explicit build instructi
sergei 2017/05/31 12:47:12 Now it does not work because gyp messes the config
26 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_0.lib',
27 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_1.lib',
28 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_2.lib',
29 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_3.lib',
30 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_libbase.lib' ,
31 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_libsampler.l ib',
32 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_snapshot.lib ',
33 ],
34 'action': [
35 'cmd',
36 '/C',
37 'build-v8.cmd',
38 '<(target_arch)',
39 '<(CONFIGURATION_NAME)'
40 ]
41 }],
42 }]
43 }
15 ]], 44 ]],
16 'includes': ['third_party/v8/build/features.gypi', 45 'includes': ['shell/shell.gyp'],
17 'third_party/v8/build/toolchain.gypi',
18 'shell/shell.gyp'],
19 'targets': [{ 46 'targets': [{
20 'target_name': 'ensure_dependencies',
21 'type': 'none',
22 'actions': [{
23 'action_name': 'ensure_dependencies',
24 'inputs': ['ensure_dependencies.py'],
25 'outputs': ['ensure_dependencies_phony_output'],
26 'action': ['python', 'ensure_dependencies.py'],
27 }],
28 },
29 {
30 'target_name': 'libadblockplus', 47 'target_name': 'libadblockplus',
31 'type': '<(library)', 48 'type': '<(library)',
32 'dependencies': ['ensure_dependencies'], 49 'xcode_settings':{},
33 'include_dirs': [ 50 'include_dirs': [
34 'include', 51 'include',
35 'third_party/v8/include', 52 'third_party/v8/include',
53 'third_party/v8',
36 ], 54 ],
37 'sources': [ 55 'sources': [
38 'include/AdblockPlus/ITimer.h', 56 'include/AdblockPlus/ITimer.h',
39 'include/AdblockPlus/IWebRequest.h', 57 'include/AdblockPlus/IWebRequest.h',
40 'include/AdblockPlus/DefaultWebRequest.h', 58 'include/AdblockPlus/DefaultWebRequest.h',
41 'src/AppInfoJsObject.cpp', 59 'src/AppInfoJsObject.cpp',
42 'src/ConsoleJsObject.cpp', 60 'src/ConsoleJsObject.cpp',
43 'src/DefaultLogSystem.cpp', 61 'src/DefaultLogSystem.cpp',
44 'src/DefaultFileSystem.cpp', 62 'src/DefaultFileSystem.cpp',
45 'src/DefaultTimer.cpp', 63 'src/DefaultTimer.cpp',
46 'src/DefaultTimer.h', 64 'src/DefaultTimer.h',
47 'src/DefaultWebRequest.cpp', 65 'src/DefaultWebRequest.cpp',
48 'src/FileSystemJsObject.cpp', 66 'src/FileSystemJsObject.cpp',
49 'src/FilterEngine.cpp', 67 'src/FilterEngine.cpp',
50 'src/GlobalJsObject.cpp', 68 'src/GlobalJsObject.cpp',
51 'src/JsContext.cpp', 69 'src/JsContext.cpp',
52 'src/JsEngine.cpp', 70 'src/JsEngine.cpp',
53 'src/JsError.cpp', 71 'src/JsError.cpp',
54 'src/JsValue.cpp', 72 'src/JsValue.cpp',
55 'src/Notification.cpp', 73 'src/Notification.cpp',
56 'src/ReferrerMapping.cpp', 74 'src/ReferrerMapping.cpp',
57 'src/Thread.cpp', 75 'src/Thread.cpp',
58 'src/Utils.cpp', 76 'src/Utils.cpp',
59 'src/WebRequestJsObject.cpp', 77 'src/WebRequestJsObject.cpp',
60 '<(INTERMEDIATE_DIR)/adblockplus.js.cpp' 78 '<(INTERMEDIATE_DIR)/adblockplus.js.cpp'
61 ], 79 ],
62 'direct_dependent_settings': { 80 'direct_dependent_settings': {
63 'include_dirs': ['include'] 81 'include_dirs': ['include'],
82 'msvs_settings': {
83 'VCLinkerTool': {
84 'AdditionalLibraryDirectories': ['v8/build/<(CONFIGURATION_NAME)'],
85 }
86 },
64 }, 87 },
65 'conditions': [ 88 'conditions': [
66 ['OS=="android"', { 89 ['OS=="linux" or OS=="mac"', {
67 'link_settings': { 90 'link_settings': {
68 'libraries': [ 91 'libraries': [
69 'android_<(ANDROID_ARCH).release/obj.target/tools/gyp/libv8_base.<(A NDROID_ARCH).a', 92 'v8/out/<(CONFIGURATION_NAME)/libv8_libplatform.a',
70 'android_<(ANDROID_ARCH).release/obj.target/tools/gyp/libv8_snapshot .a', 93 'v8/out/<(CONFIGURATION_NAME)/libv8_base.a',
94 'v8/out/<(CONFIGURATION_NAME)/libv8_snapshot.a',
95 'v8/out/<(CONFIGURATION_NAME)/libv8_libbase.a',
96 'v8/out/<(CONFIGURATION_NAME)/libv8_libsampler.a',
97 ]
98 }
99 }],
100 ['OS=="win"', {
101 'dependencies': ['build-v8'],
102 'link_settings': {
103 'libraries': [
104 '-lv8_libplatform',
105 '-lv8_base_0',
106 '-lv8_base_1',
107 '-lv8_base_2',
108 '-lv8_base_3',
109 '-lv8_libbase',
110 '-lv8_libsampler',
111 '-lv8_snapshot',
112 '-lwinmm'
71 ], 113 ],
72 }, 114 },
115 }],
116 ['OS=="android"', {
117 'user_libraries': [
118 'android_<(target_arch).release/libv8_libplatform.a',
119 'android_<(target_arch).release/libv8_base.a',
120 'android_<(target_arch).release/libv8_snapshot.a',
121 'android_<(target_arch).release/libv8_libbase.a',
122 'android_<(target_arch).release/libv8_libsampler.a',
123 ],
73 'standalone_static_library': 1, # disable thin archives 124 'standalone_static_library': 1, # disable thin archives
74 }, {
75 'dependencies': ['third_party/v8/tools/gyp/v8.gyp:v8'],
76 'export_dependent_settings': ['third_party/v8/tools/gyp/v8.gyp:v8'],
77 }], 125 }],
78 ['have_curl==1', 126 ['have_curl==1',
79 { 127 {
80 'sources': [ 128 'sources': [
81 'src/DefaultWebRequestCurl.cpp', 129 'src/DefaultWebRequestCurl.cpp',
82 ], 130 ],
83 'link_settings': { 131 'link_settings': {
84 'libraries': ['-lcurl'] 132 'libraries': ['-lcurl']
85 }, 133 },
86 'all_dependent_settings': { 134 'all_dependent_settings': {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 '<@(_outputs)', 207 '<@(_outputs)',
160 '--before', '<@(load_before_files)', 208 '--before', '<@(load_before_files)',
161 '--convert', '<@(library_files)', 209 '--convert', '<@(library_files)',
162 '--after', '<@(load_after_files)', 210 '--after', '<@(load_after_files)',
163 ] 211 ]
164 }] 212 }]
165 }, 213 },
166 { 214 {
167 'target_name': 'tests', 215 'target_name': 'tests',
168 'type': 'executable', 216 'type': 'executable',
217 'xcode_settings': {},
169 'dependencies': [ 218 'dependencies': [
170 'third_party/googletest.gyp:googletest_main', 219 'third_party/googletest.gyp:googletest_main',
171 'libadblockplus' 220 'libadblockplus'
172 ], 221 ],
173 'sources': [ 222 'sources': [
174 'test/BaseJsTest.h', 223 'test/BaseJsTest.h',
175 'test/BaseJsTest.cpp', 224 'test/BaseJsTest.cpp',
176 'test/AppInfoJsObject.cpp', 225 'test/AppInfoJsObject.cpp',
177 'test/ConsoleJsObject.cpp', 226 'test/ConsoleJsObject.cpp',
178 'test/DefaultFileSystem.cpp', 227 'test/DefaultFileSystem.cpp',
(...skipping 10 matching lines...) Expand all
189 'test/WebRequest.cpp' 238 'test/WebRequest.cpp'
190 ], 239 ],
191 'msvs_settings': { 240 'msvs_settings': {
192 'VCLinkerTool': { 241 'VCLinkerTool': {
193 'SubSystem': '1', # Console 242 'SubSystem': '1', # Console
194 'EntryPointSymbol': 'mainCRTStartup', 243 'EntryPointSymbol': 'mainCRTStartup',
195 }, 244 },
196 }, 245 },
197 }] 246 }]
198 } 247 }
OLDNEW

Powered by Google App Engine
This is Rietveld