| Index: libadblockplus.gyp |
| =================================================================== |
| --- a/libadblockplus.gyp |
| +++ b/libadblockplus.gyp |
| @@ -1,12 +1,12 @@ |
| { |
| 'conditions': [[ |
| - # We don't want to use curl on Windows, skip the check there |
| - 'OS=="win"', |
| + # We don't want to use curl on Windows and Android, skip the check there |
| + 'OS=="win" or OS=="android"', |
| { |
| 'variables': { |
| 'have_curl': 0 |
| } |
| }, |
| { |
| 'variables': { |
| 'have_curl': '<!(python check_curl.py)' |
| @@ -15,19 +15,18 @@ |
| ]], |
| 'includes': ['third_party/v8/build/common.gypi', |
| 'shell/shell.gyp'], |
| 'targets': [{ |
| 'target_name': 'libadblockplus', |
| 'type': '<(library)', |
| 'include_dirs': [ |
| 'include', |
| - 'third_party/v8/include' |
| + 'third_party/v8/include', |
| ], |
| - 'dependencies': ['third_party/v8/tools/gyp/v8.gyp:v8'], |
| 'sources': [ |
| 'src/AppInfoJsObject.cpp', |
| 'src/ConsoleJsObject.cpp', |
| 'src/DefaultLogSystem.cpp', |
| 'src/DefaultFileSystem.cpp', |
| 'src/FileSystemJsObject.cpp', |
| 'src/FilterEngine.cpp', |
| 'src/GlobalJsObject.cpp', |
| @@ -38,18 +37,28 @@ |
| 'src/Thread.cpp', |
| 'src/Utils.cpp', |
| 'src/WebRequestJsObject.cpp', |
| '<(INTERMEDIATE_DIR)/adblockplus.js.cpp' |
| ], |
| 'direct_dependent_settings': { |
| 'include_dirs': ['include'] |
| }, |
| - 'export_dependent_settings': ['third_party/v8/tools/gyp/v8.gyp:v8'], |
| 'conditions': [ |
| + ['OS=="android"', { |
| + 'link_settings': { |
| + 'libraries': [ |
| + 'android_arm.release/obj.target/tools/gyp/libv8_base.a', |
| + 'android_arm.release/obj.target/tools/gyp/libv8_snapshot.a', |
| + ], |
| + } |
| + }, { |
| + 'dependencies': ['third_party/v8/tools/gyp/v8.gyp:v8'], |
| + 'export_dependent_settings': ['third_party/v8/tools/gyp/v8.gyp:v8'], |
| + }], |
| ['have_curl==1', |
| { |
| 'sources': [ |
| 'src/DefaultWebRequestCurl.cpp', |
| ], |
| 'link_settings': { |
| 'libraries': ['-lcurl'] |
| }, |