48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
{
|
|
"targets": [
|
|
{
|
|
"target_name": "kzg",
|
|
"sources": [
|
|
"src/kzg.cxx",
|
|
"deps/blst/src/server.c",
|
|
"deps/c-kzg/c_kzg_4844.c"
|
|
],
|
|
"include_dirs": [
|
|
"<(module_root_dir)/deps/blst/bindings",
|
|
"<(module_root_dir)/deps/c-kzg",
|
|
"<!@(node -p \"require('node-addon-api').include\")"
|
|
],
|
|
"defines": [
|
|
"__BLST_PORTABLE__",
|
|
"NAPI_DISABLE_CPP_EXCEPTIONS"
|
|
],
|
|
"conditions": [
|
|
["OS!='win'", {
|
|
"sources": ["deps/blst/build/assembly.S"],
|
|
"cflags_cc": [
|
|
"-std=c++17",
|
|
"-fPIC"
|
|
]
|
|
}],
|
|
["OS=='win'", {
|
|
"sources": ["deps/blst/build/win64/*-x86_64.asm"],
|
|
"defines": [
|
|
"_CRT_SECURE_NO_WARNINGS",
|
|
],
|
|
"msbuild_settings": {
|
|
"ClCompile": {
|
|
"AdditionalOptions": ["/std:c++17"]
|
|
}
|
|
}
|
|
}],
|
|
["OS=='mac'", {
|
|
"xcode_settings": {
|
|
"CLANG_CXX_LIBRARY": "libc++",
|
|
"MACOSX_DEPLOYMENT_TARGET": "13.0"
|
|
}
|
|
}]
|
|
]
|
|
}
|
|
]
|
|
}
|