25 lines
614 B
Python
25 lines
614 B
Python
# 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"]
|
|
}]
|
|
]
|
|
}
|
|
]
|
|
} |