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

Unified 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: add Xcode into readme Created June 2, 2017, 2:24 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libadblockplus.gyp
diff --git a/libadblockplus.gyp b/libadblockplus.gyp
index e3725e37b596cbb08c541e77b9aa009461dadc7b..59b5ae6a572a0d7e72697c707ea2c18d615894b8 100644
--- a/libadblockplus.gyp
+++ b/libadblockplus.gyp
@@ -12,27 +12,46 @@
'have_curl': '<!(python check_curl.py)'
}
}
+ ],
+ [
+ 'OS=="win"', {
+ 'targets': [{
+ 'target_name': 'build-v8',
+ 'type': 'none',
+ 'actions': [{
+ 'action_name': 'build-v8',
+ 'inputs': ['build-v8.cmd'],
+ 'outputs': [
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_libplatform.lib',
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_0.lib',
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_1.lib',
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_2.lib',
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_base_3.lib',
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_libbase.lib',
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_libsampler.lib',
+ 'build/<(target_arch)/v8/build/<(CONFIGURATION_NAME)/v8_snapshot.lib',
+ ],
+ 'action': [
+ 'cmd',
+ '/C',
+ 'build-v8.cmd',
+ '$(MSBuildBinPath)',
+ '<(target_arch)',
+ '<(CONFIGURATION_NAME)'
+ ]
+ }],
+ }]
+ }
]],
- 'includes': ['third_party/v8/build/features.gypi',
- 'third_party/v8/build/toolchain.gypi',
- 'shell/shell.gyp'],
+ 'includes': ['shell/shell.gyp'],
'targets': [{
- 'target_name': 'ensure_dependencies',
- 'type': 'none',
- 'actions': [{
- 'action_name': 'ensure_dependencies',
- 'inputs': ['ensure_dependencies.py'],
- 'outputs': ['ensure_dependencies_phony_output'],
- 'action': ['python', 'ensure_dependencies.py'],
- }],
- },
- {
'target_name': 'libadblockplus',
'type': '<(library)',
- 'dependencies': ['ensure_dependencies'],
+ 'xcode_settings':{},
'include_dirs': [
'include',
'third_party/v8/include',
+ 'third_party/v8',
],
'sources': [
'include/AdblockPlus/ITimer.h',
@@ -60,20 +79,50 @@
'<(INTERMEDIATE_DIR)/adblockplus.js.cpp'
],
'direct_dependent_settings': {
- 'include_dirs': ['include']
+ 'include_dirs': ['include'],
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'AdditionalLibraryDirectories': ['v8/build/<(CONFIGURATION_NAME)'],
+ }
+ },
},
'conditions': [
- ['OS=="android"', {
+ ['OS=="linux" or OS=="mac"', {
'link_settings': {
'libraries': [
- 'android_<(ANDROID_ARCH).release/obj.target/tools/gyp/libv8_base.<(ANDROID_ARCH).a',
- 'android_<(ANDROID_ARCH).release/obj.target/tools/gyp/libv8_snapshot.a',
+ 'v8/out/<(CONFIGURATION_NAME)/libv8_libplatform.a',
+ 'v8/out/<(CONFIGURATION_NAME)/libv8_base.a',
+ 'v8/out/<(CONFIGURATION_NAME)/libv8_snapshot.a',
+ 'v8/out/<(CONFIGURATION_NAME)/libv8_libbase.a',
+ 'v8/out/<(CONFIGURATION_NAME)/libv8_libsampler.a',
+ ]
+ }
+ }],
+ ['OS=="win"', {
+ 'dependencies': ['build-v8'],
+ 'link_settings': {
+ 'libraries': [
+ '-lv8_libplatform',
+ '-lv8_base_0',
+ '-lv8_base_1',
+ '-lv8_base_2',
+ '-lv8_base_3',
+ '-lv8_libbase',
+ '-lv8_libsampler',
+ '-lv8_snapshot',
+ '-lwinmm'
],
},
+ }],
+ ['OS=="android"', {
+ 'user_libraries': [
+ 'android_<(target_arch).release/libv8_libplatform.a',
+ 'android_<(target_arch).release/libv8_base.a',
+ 'android_<(target_arch).release/libv8_snapshot.a',
+ 'android_<(target_arch).release/libv8_libbase.a',
+ 'android_<(target_arch).release/libv8_libsampler.a',
+ ],
'standalone_static_library': 1, # disable thin archives
- }, {
- 'dependencies': ['third_party/v8/tools/gyp/v8.gyp:v8'],
- 'export_dependent_settings': ['third_party/v8/tools/gyp/v8.gyp:v8'],
}],
['have_curl==1',
{
@@ -166,6 +215,7 @@
{
'target_name': 'tests',
'type': 'executable',
+ 'xcode_settings': {},
'dependencies': [
'third_party/googletest.gyp:googletest_main',
'libadblockplus'

Powered by Google App Engine
This is Rietveld