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",
|
|
|
|
"cflags!": ["-fno-exceptions"],
|
|
|
|
"cflags_cc!": ["-fno-exceptions"],
|
2022-11-16 23:47:13 +00:00
|
|
|
"xcode_settings": {
|
|
|
|
"CLANG_CXX_LIBRARY": "libc++",
|
|
|
|
"MACOSX_DEPLOYMENT_TARGET": "13.0"
|
|
|
|
},
|
2022-11-29 20:47:44 +00:00
|
|
|
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS",
|
|
|
|
"FIELD_ELEMENTS_PER_BLOB=<!(echo ${FIELD_ELEMENTS_PER_BLOB:-4096})"],
|
2022-11-03 22:13:49 +00:00
|
|
|
"sources": ["kzg.cxx"],
|
|
|
|
"include_dirs": [
|
|
|
|
"../../inc",
|
|
|
|
"../../src",
|
|
|
|
"<!@(node -p \"require('node-addon-api').include\")"
|
2022-11-01 19:56:26 +00:00
|
|
|
],
|
2022-11-03 22:13:49 +00:00
|
|
|
"libraries": [
|
2022-11-08 22:02:38 +00:00
|
|
|
"<(module_root_dir)/c_kzg_4844.o",
|
|
|
|
"<(module_root_dir)/../../lib/libblst.a"
|
2022-11-02 04:39:04 +00:00
|
|
|
],
|
2022-11-16 23:26:05 +00:00
|
|
|
"dependencies": ["<!(node -p \"require('node-addon-api').gyp\")"]
|
2022-11-04 06:14:11 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"target_name": "action_after_build",
|
|
|
|
"type": "none",
|
|
|
|
"dependencies": ["kzg"],
|
|
|
|
"copies": [
|
|
|
|
{
|
|
|
|
"files": ["./build/Release/kzg.node"],
|
|
|
|
"destination": "."
|
|
|
|
}
|
|
|
|
]
|
2022-11-02 20:27:00 +00:00
|
|
|
}
|
2022-11-01 19:56:26 +00:00
|
|
|
]
|
|
|
|
}
|