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-08-11 15:20:07 +00:00
|
|
|
"defines": [
|
|
|
|
"__BLST_PORTABLE__",
|
|
|
|
"NAPI_DISABLE_CPP_EXCEPTIONS"
|
|
|
|
],
|
2023-03-28 16:01:07 +00:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
]
|
2022-11-02 20:27:00 +00:00
|
|
|
}
|
2022-11-01 19:56:26 +00:00
|
|
|
]
|
|
|
|
}
|