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: Created April 11, 2013, 3:52 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
« no previous file with comments | « include/AdblockPlus/WebRequest.h ('k') | src/WebRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'
@@ -21,16 +24,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',
« no previous file with comments | « include/AdblockPlus/WebRequest.h ('k') | src/WebRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld