Index: libadblockplus.gyp |
=================================================================== |
--- a/libadblockplus.gyp |
+++ b/libadblockplus.gyp |
@@ -19,33 +19,41 @@ |
'sources': [ |
'src/ConsoleJsObject.cpp', |
'src/ErrorCallback.cpp', |
'src/FileReader.cpp', |
'src/FilterEngine.cpp', |
'src/GlobalJsObject.cpp', |
'src/JsEngine.cpp', |
'src/Thread.cpp', |
- 'src/WebRequest.cpp', |
'src/WebRequestJsObject.cpp', |
'<(INTERMEDIATE_DIR)/adblockplus.js.cc' |
], |
'direct_dependent_settings': { |
'include_dirs': ['include'] |
}, |
'export_dependent_settings': ['third_party/v8/tools/gyp/v8.gyp:v8'], |
'conditions': [ |
['have_curl==1', |
{ |
- 'defines': ['HAVE_CURL'], |
+ 'sources': [ |
+ 'src/DefaultWebRequestCurl.cpp', |
+ ], |
'all_dependent_settings': { |
'defines': ['HAVE_CURL'], |
'libraries': ['-lcurl'] |
} |
} |
+ ], |
+ ['have_curl!=1', |
+ { |
+ 'sources': [ |
+ 'src/DefaultWebRequestDummy.cpp', |
+ ] |
+ } |
] |
], |
'actions': [{ |
'action_name': 'convert_js', |
'variables': { |
'core_library_files': [ |
'lib/info.js', |
'lib/io.js', |