2022-11-01 12:56:26 -07:00
|
|
|
{
|
2022-11-03 15:13:49 -07:00
|
|
|
"targets": [
|
2022-11-01 12:56:26 -07:00
|
|
|
{
|
2022-11-03 15:13:49 -07:00
|
|
|
"target_name": "kzg",
|
|
|
|
"cflags!": ["-fno-exceptions"],
|
|
|
|
"cflags_cc!": ["-fno-exceptions"],
|
2022-11-16 15:47:13 -08: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 15:13:49 -07:00
|
|
|
"sources": ["kzg.cxx"],
|
|
|
|
"include_dirs": [
|
|
|
|
"../../inc",
|
|
|
|
"../../src",
|
|
|
|
"<!@(node -p \"require('node-addon-api').include\")"
|
2022-11-01 12:56:26 -07:00
|
|
|
],
|
2022-11-03 15:13:49 -07: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-01 21:39:04 -07:00
|
|
|
],
|
2022-11-16 15:26:05 -08:00
|
|
|
"dependencies": ["<!(node -p \"require('node-addon-api').gyp\")"]
|
2022-11-03 23:14:11 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"target_name": "action_after_build",
|
|
|
|
"type": "none",
|
|
|
|
"dependencies": ["kzg"],
|
|
|
|
"copies": [
|
|
|
|
{
|
|
|
|
"files": ["./build/Release/kzg.node"],
|
|
|
|
"destination": "."
|
|
|
|
}
|
|
|
|
]
|
2022-11-02 13:27:00 -07:00
|
|
|
}
|
2022-11-01 12:56:26 -07:00
|
|
|
]
|
|
|
|
}
|