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: Unbitrotted the patch Created April 11, 2013, 4:33 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
@@ -1,9 +1,12 @@
{
+ 'variables': {
+ 'have_curl': '<!(python check_curl.py)'
+ },
'includes': ['third_party/v8/build/common.gypi',
'shell/shell.gyp'],
'targets': [{
'target_name': 'libadblockplus',
'type': '<(library)',
'include_dirs': [
'include',
'third_party/v8/include'
@@ -24,16 +27,27 @@
'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'],
+ 'all_dependent_settings': {
+ 'defines': ['HAVE_CURL'],
+ 'libraries': ['-lcurl']
+ }
+ }
+ ]
+ ],
'actions': [{
'action_name': 'convert_js',
'variables': {
'core_library_files': [
'lib/info.js',
'lib/io.js',
'lib/prefs.js',
'lib/utils.js',

Powered by Google App Engine
This is Rietveld