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

Unified Diff: libadblockplus.gyp

Issue 10252013: Implemented curl support for web requests (Closed)
Patch Set: Addressed review comments Created April 12, 2013, 1:37 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
===================================================================
--- 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',

Powered by Google App Engine
This is Rietveld