28 lines
779 B
Python
28 lines
779 B
Python
{
|
|
"targets": [
|
|
{
|
|
"target_name": "snn_simd",
|
|
"sources": ["native/snn_simd.cpp"],
|
|
"include_dirs": [
|
|
"<!@(node -p \"require('node-addon-api').include\")"
|
|
],
|
|
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"],
|
|
"cflags!": ["-fno-exceptions"],
|
|
"cflags_cc!": ["-fno-exceptions"],
|
|
"cflags_cc": ["-std=c++17", "-O3", "-msse4.1", "-mavx", "-ffast-math"],
|
|
"xcode_settings": {
|
|
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
|
|
"CLANG_CXX_LIBRARY": "libc++",
|
|
"MACOSX_DEPLOYMENT_TARGET": "10.15",
|
|
"OTHER_CFLAGS": ["-msse4.1", "-mavx", "-O3"]
|
|
},
|
|
"msvs_settings": {
|
|
"VCCLCompilerTool": {
|
|
"ExceptionHandling": 1,
|
|
"AdditionalOptions": ["/arch:AVX"]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|