Skip to content

Commit

Permalink
fix: refactored binding.gyp
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet committed Sep 19, 2020
1 parent 9494da7 commit 506c319
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
{
'targets': [
"targets": [
{
'target_name': 'skyra-ai',
'sources': [
'src/games/TicTacToe.cc',
'src/main.cc'
"target_name": "skyra-ai",
"sources": [
"src/games/TicTacToe.cc",
"src/main.cc"
],
'include_dirs': [
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
'include'
"<(module_root_dir)/include"
],
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.7'
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
],
"defines": [
"NAPI_DISABLE_CPP_EXCEPTIONS"
],
"xcode_settings": {
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "10.7",
"GCC_ENABLE_CPP_EXCEPTIONS": "NO"
},
'msvs_settings': {
'VCCLCompilerTool': { 'ExceptionHandling': 1 },
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 0,
"WarningLevel": 4,
"EnablePREfast": "true",
}
},
'cflags': [ '-Werror', '-Wall', '-Wextra', '-Wpedantic', '-Wunused-parameter', '-fno-exceptions' ],
'cflags_cc': [ '-Werror', '-Wall', '-Wextra', '-Wpedantic', '-Wunused-parameter', '-fno-exceptions' ],
"cflags": [ "-Werror", "-Wall", "-Wextra", "-Wpedantic", "-Wunused-parameter", "-fno-exceptions" ],
"cflags_cc": [ "-Werror", "-Wall", "-Wextra", "-Wpedantic", "-Wunused-parameter", "-fno-exceptions" ],
}
]
}

0 comments on commit 506c319

Please sign in to comment.