2022-11-01 19:56:26 +00:00
|
|
|
{
|
2022-11-03 22:13:49 +00:00
|
|
|
"targets": [
|
2022-11-01 19:56:26 +00:00
|
|
|
{
|
2022-11-03 22:13:49 +00:00
|
|
|
"target_name": "kzg",
|
2023-03-28 16:01:07 +00:00
|
|
|
"sources": [
|
|
|
|
"src/kzg.cxx",
|
|
|
|
"deps/blst/src/server.c",
|
|
|
|
"deps/c-kzg/c_kzg_4844.c"
|
2022-12-13 23:21:40 +00:00
|
|
|
],
|
2022-11-03 22:13:49 +00:00
|
|
|
"include_dirs": [
|
2023-03-28 16:01:07 +00:00
|
|
|
"<(module_root_dir)/deps/blst/bindings",
|
|
|
|
"<(module_root_dir)/deps/c-kzg",
|
2022-11-03 22:13:49 +00:00
|
|
|
"<!@(node -p \"require('node-addon-api').include\")"
|
2022-11-01 19:56:26 +00:00
|
|
|
],
|
2023-03-28 16:01:07 +00:00
|
|
|
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"],
|
|
|
|
"conditions": [
|
|
|
|
["OS!='win'", {
|
|
|
|
"sources": ["deps/blst/build/assembly.S"],
|
|
|
|
"defines": ["FIELD_ELEMENTS_PER_BLOB=<!(echo ${FIELD_ELEMENTS_PER_BLOB:-4096})"],
|
|
|
|
"cflags_cc": [
|
|
|
|
"-std=c++17",
|
|
|
|
"-fPIC"
|
|
|
|
]
|
|
|
|
}],
|
|
|
|
["OS=='win'", {
|
|
|
|
"sources": ["deps/blst/build/win64/*-x86_64.asm"],
|
|
|
|
"defines": [
|
|
|
|
"_CRT_SECURE_NO_WARNINGS",
|
|
|
|
"FIELD_ELEMENTS_PER_BLOB=<!(powershell -Command \"if ($env:FIELD_ELEMENTS_PER_BLOB) { $env:FIELD_ELEMENTS_PER_BLOB } else { 4096 }\")"
|
|
|
|
],
|
|
|
|
"msbuild_settings": {
|
|
|
|
"ClCompile": {
|
|
|
|
"AdditionalOptions": ["/std:c++17"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}],
|
|
|
|
["OS=='mac'", {
|
|
|
|
"xcode_settings": {
|
|
|
|
"CLANG_CXX_LIBRARY": "libc++",
|
|
|
|
"MACOSX_DEPLOYMENT_TARGET": "13.0"
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
]
|
2022-11-02 20:27:00 +00:00
|
|
|
}
|
2022-11-01 19:56:26 +00:00
|
|
|
]
|
|
|
|
}
|