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

Unified Diff: libadblockplus.gyp

Issue 10234088: Use GYP to generate MSVS project files (Closed)
Patch Set: Moved project files to build/ Created April 24, 2013, 1:57 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 | « createsolution.bat ('k') | msvs_gyp_wrapper.py » ('j') | msvs_gyp_wrapper.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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',
+ },
+ },
}]
}
« no previous file with comments | « createsolution.bat ('k') | msvs_gyp_wrapper.py » ('j') | msvs_gyp_wrapper.py » ('J')

Powered by Google App Engine
This is Rietveld