summaryrefslogtreecommitdiff
path: root/common.gypi
diff options
context:
space:
mode:
authorIgor Zinkovsky <igorzi@microsoft.com>2012-02-06 22:53:39 -0800
committerIgor Zinkovsky <igorzi@microsoft.com>2012-02-07 13:32:53 -0800
commit0a347559bf6dc2832aa9802d346f351dd9354e71 (patch)
tree2aea74d6652ad563c421d1e118ef100570fa9be4 /common.gypi
parent7543c38dca2b4c64711f5667b82d80ffab3fd6a2 (diff)
downloadandroid-node-v8-0a347559bf6dc2832aa9802d346f351dd9354e71.tar.gz
android-node-v8-0a347559bf6dc2832aa9802d346f351dd9354e71.tar.bz2
android-node-v8-0a347559bf6dc2832aa9802d346f351dd9354e71.zip
enable x64 windows build
use "vcbuild x64" to do x64 build of node.exe
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi17
1 files changed, 15 insertions, 2 deletions
diff --git a/common.gypi b/common.gypi
index 0a4183b1c9..7060608329 100644
--- a/common.gypi
+++ b/common.gypi
@@ -1,8 +1,6 @@
{
'variables': {
'visibility%': 'hidden', # V8's visibility setting
- 'target_arch%': 'ia32', # set v8's target architecture
- 'host_arch%': 'ia32', # set v8's host architecture
'library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds
'component%': 'static_library', # NB. these names match with what V8 expects
'msvs_multi_core_compile': '0', # we do enable multicore compiles, but not using the V8 way
@@ -14,6 +12,11 @@
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],
'cflags': [ '-g', '-O0' ],
+ 'conditions': [
+ ['target_arch=="x64"', {
+ 'msvs_configuration_platform': 'x64',
+ }],
+ ],
'msvs_settings': {
'VCCLCompilerTool': {
'target_conditions': [
@@ -36,6 +39,11 @@
'Release': {
'defines': [ 'NDEBUG' ],
'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections', '-ffunction-sections' ],
+ 'conditions': [
+ ['target_arch=="x64"', {
+ 'msvs_configuration_platform': 'x64',
+ }],
+ ],
'msvs_settings': {
'VCCLCompilerTool': {
'target_conditions': [
@@ -83,6 +91,11 @@
'VCLibrarianTool': {
},
'VCLinkerTool': {
+ 'conditions': [
+ ['target_arch=="x64"', {
+ 'TargetMachine' : 17 # /MACHINE:X64
+ }],
+ ],
'GenerateDebugInformation': 'true',
'RandomizedBaseAddress': 2, # enable ASLR
'DataExecutionPrevention': 2, # enable DEP