| Index: libadblockplus.gyp |
| =================================================================== |
| --- a/libadblockplus.gyp |
| +++ b/libadblockplus.gyp |
| @@ -32,41 +32,53 @@ |
| 'src/FileSystemJsObject.cpp', |
| 'src/FilterEngine.cpp', |
| 'src/GlobalJsObject.cpp', |
| 'src/JsEngine.cpp', |
| 'src/JsValue.cpp', |
| 'src/Thread.cpp', |
| 'src/Utils.cpp', |
| 'src/WebRequestJsObject.cpp', |
| - '<(INTERMEDIATE_DIR)/adblockplus.js.cc' |
| + '<(INTERMEDIATE_DIR)/adblockplus.js.cpp' |
| ], |
| 'direct_dependent_settings': { |
| 'include_dirs': ['include'] |
| }, |
| 'export_dependent_settings': ['third_party/v8/tools/gyp/v8.gyp:v8'], |
| 'conditions': [ |
| ['have_curl==1', |
| { |
| 'sources': [ |
| 'src/DefaultWebRequestCurl.cpp', |
| ], |
| + 'link_settings': { |
| + 'libraries': ['-lcurl'] |
| + }, |
| 'all_dependent_settings': { |
| 'defines': ['HAVE_CURL'], |
| - 'libraries': ['-lcurl'] |
| } |
| } |
| ], |
| - ['have_curl!=1', |
| + ['OS=="win"', |
| + { |
| + 'sources': [ |
| + 'src/DefaultWebRequestWinInet.cpp', |
| + ], |
| + 'link_settings': { |
| + 'libraries': [ '-lshlwapi.lib', '-lwinhttp.lib' ] |
| + } |
| + } |
| + ], |
| + ['have_curl!=1 and OS!="win"', |
| { |
| 'sources': [ |
| 'src/DefaultWebRequestDummy.cpp', |
| ] |
| } |
| - ] |
| + ], |
| ], |
| 'actions': [{ |
| 'action_name': 'convert_js', |
| 'variables': { |
| 'library_files': [ |
| 'lib/info.js', |
| 'lib/io.js', |
| 'lib/prefs.js', |
| @@ -121,11 +133,17 @@ |
| 'test/DefaultFileSystem.cpp', |
| 'test/FileSystemJsObject.cpp', |
| 'test/FilterEngine.cpp', |
| 'test/GlobalJsObject.cpp', |
| 'test/JsEngine.cpp', |
| 'test/JsValue.cpp', |
| 'test/Thread.cpp', |
| 'test/WebRequest.cpp' |
| - ] |
| + ], |
| + 'msvs_settings': { |
| + 'VCLinkerTool': { |
| + 'SubSystem': '1', # Console |
| + 'EntryPointSymbol': 'mainCRTStartup', |
| + }, |
| + }, |
| }] |
| } |