Make gyp work with MingW32

Review URL: https://codereview.chromium.org/13468015
Patch from Haitao Feng <haitao.feng@intel.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14257 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ae37cb35
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "platform.h" #include "platform.h"
#include "cctest.h" #include "cctest.h"
#include "win32-headers.h"
using namespace ::v8::internal; using namespace ::v8::internal;
......
...@@ -747,16 +747,27 @@ ...@@ -747,16 +747,27 @@
]}, ]},
], ],
['OS=="win"', { ['OS=="win"', {
'variables': {
'gyp_generators': '<!(echo $GYP_GENERATORS)',
},
'sources': [ 'sources': [
'../../src/platform-win32.cc', '../../src/platform-win32.cc',
'../../src/win32-math.cc', '../../src/win32-math.cc',
'../../src/win32-math.h', '../../src/win32-math.h',
], ],
'conditions': [
['gyp_generators=="make"', {
'link_settings': {
'libraries': [ '-lwinmm', '-lws2_32' ],
},
}, {
'msvs_disabled_warnings': [4351, 4355, 4800], 'msvs_disabled_warnings': [4351, 4355, 4800],
'link_settings': { 'link_settings': {
'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ], 'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ],
}, },
}], }],
],
}],
['component=="shared_library"', { ['component=="shared_library"', {
'defines': [ 'defines': [
'BUILDING_V8_SHARED', 'BUILDING_V8_SHARED',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment