2016-10-04 22:02:51 +00:00
|
|
|
{
|
|
|
|
"target_defaults": {
|
|
|
|
"variables": {
|
|
|
|
"warning-flags": [
|
|
|
|
"-Wno-missing-field-initializers",
|
2016-10-08 17:36:03 +00:00
|
|
|
"-Wno-return-type",
|
|
|
|
"-Wno-unused-result",
|
2017-06-20 15:39:37 +00:00
|
|
|
"-Wno-deprecated-declarations"
|
2016-10-04 22:02:51 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"cflags_cc!": [ # turn off default flags on older nodes on linux
|
|
|
|
"-fno-exceptions",
|
|
|
|
"-fno-rtti",
|
|
|
|
"-std=gnu++0x"
|
|
|
|
],
|
|
|
|
"cflags_cc": [
|
|
|
|
"-fexceptions",
|
|
|
|
"-frtti",
|
|
|
|
"-std=c++14",
|
|
|
|
"<@(warning-flags)"
|
|
|
|
],
|
|
|
|
"include_dirs": [
|
|
|
|
"<!(node -e \"require('nan')\")"
|
|
|
|
],
|
|
|
|
"conditions": [
|
2017-03-07 22:24:30 +00:00
|
|
|
["OS=='win'", {
|
2017-07-12 00:11:49 +00:00
|
|
|
"defines": [ "_UNICODE", "UNICODE", "WIN32=1", "_HAS_EXCEPTIONS=1", "WIN32_LEAN_AND_MEAN" ]
|
2017-03-07 22:24:30 +00:00
|
|
|
}],
|
2016-10-04 22:02:51 +00:00
|
|
|
["OS=='mac'", {
|
|
|
|
"xcode_settings": {
|
|
|
|
"CLANG_CXX_LANGUAGE_STANDARD": "c++14",
|
|
|
|
"CLANG_CXX_LIBRARY": "libc++",
|
|
|
|
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
|
|
|
|
"GCC_ENABLE_CPP_RTTI": "YES",
|
|
|
|
"MACOSX_DEPLOYMENT_TARGET": "10.8",
|
|
|
|
"OTHER_LDFLAGS": ["-framework Foundation"],
|
|
|
|
"WARNING_CFLAGS": [ "<@(warning-flags)" ]
|
|
|
|
}
|
|
|
|
}]
|
2017-03-07 22:24:30 +00:00
|
|
|
],
|
|
|
|
# windows stuff
|
|
|
|
"configurations": {
|
|
|
|
"Debug": {
|
|
|
|
"msvs_settings": {
|
|
|
|
"VCCLCompilerTool": {
|
2017-07-12 00:11:49 +00:00
|
|
|
"RuntimeTypeInfo": "true",
|
|
|
|
"AdditionalOptions": [ "/MDd" ]
|
2017-03-07 22:24:30 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"Release": {
|
|
|
|
"msvs_settings": {
|
|
|
|
"VCCLCompilerTool": {
|
2017-07-12 00:11:49 +00:00
|
|
|
"RuntimeTypeInfo": "true",
|
|
|
|
"AdditionalOptions": [ "/MD" ]
|
2017-03-07 22:24:30 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"msvs_settings": {
|
|
|
|
"VCCLCompilerTool": {
|
|
|
|
"ExceptionHandling": 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"msvs_disabled_warnings": [ 4068, 4101, 4244, 4996 ],
|
2016-10-04 22:02:51 +00:00
|
|
|
}
|
|
|
|
}
|