Skip to content

Commit 18c37ae

Browse files
committed
Simplify binding.gyp
1 parent 78dd0d9 commit 18c37ae

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

binding.gyp

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,14 @@
5353
},
5454
{
5555
"target_name": "action_after_build",
56-
"cflags!": [ "-fno-exceptions" ],
57-
"cflags_cc!": [ "-fno-exceptions" ],
58-
"xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
59-
"CLANG_CXX_LIBRARY": "libc++",
60-
"MACOSX_DEPLOYMENT_TARGET": "10.7",
61-
},
62-
"msvs_settings": {
63-
"VCCLCompilerTool": { "ExceptionHandling": 1 },
64-
},
6556
"type": "none",
66-
"dependencies": [
67-
"<!(node -p \"require('node-addon-api').gyp\")", "<(module_name)" ],
57+
"dependencies": [ "<(module_name)" ],
6858
"copies": [
6959
{
7060
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
7161
"destination": "<(module_path)"
7262
}
73-
],
74-
"defines": [ "NAPI_VERSION=<(napi_build_version)", "NAPI_DISABLE_CPP_EXCEPTIONS=1" ]
63+
]
7564
}
7665
]
7766
}

0 commit comments

Comments
 (0)