MMap native library
This commit is contained in:
25
binding.gyp
Normal file
25
binding.gyp
Normal file
@@ -0,0 +1,25 @@
|
||||
# binding.gyp
|
||||
{
|
||||
"targets": [
|
||||
{
|
||||
"target_name": "mmap_binding",
|
||||
"sources": ["src/mmap_binding.cc"],
|
||||
"include_dirs": [],
|
||||
"cflags!": ["-fno-exceptions"],
|
||||
"cflags_cc!": ["-fno-exceptions"],
|
||||
"cflags_cc": ["-std=c++20", "-fexceptions"],
|
||||
"conditions": [
|
||||
["OS=='mac'", {
|
||||
"xcode_settings": {
|
||||
"CLANG_CXX_LANGUAGE_STANDARD": "c++20",
|
||||
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
|
||||
"MACOSX_DEPLOYMENT_TARGET": "10.15"
|
||||
}
|
||||
}],
|
||||
["OS=='linux'", {
|
||||
"cflags_cc": ["-std=c++20"]
|
||||
}]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user