MMap native library

This commit is contained in:
eli
2026-01-26 08:05:00 +00:00
commit 033bbe2512
9 changed files with 1749 additions and 0 deletions

25
binding.gyp Normal file
View 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"]
}]
]
}
]
}