cppzst/binding.gyp
2023-04-14 14:37:43 +08:00

71 lines
1.7 KiB
Python

{
"targets": [
{
"target_name": "compressor",
"include_dirs": [
"<!(node -e \"require('nan')\")",
"deps/zstd/lib",
"src/common"
],
"dependencies": [
"<(module_root_dir)/deps/zstd.gyp:compress"
],
"sources": [
"src/common/stream_coder.cc",
"src/common/allocator.cc",
"src/compress/compressor_index.cc",
"src/compress/stream_compressor.cc",
"src/compress/stream_compress_worker.cc"
],
"conditions": [
[
"OS == 'mac'", {
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"MACOSX_DEPLOYMENT_TARGET": "10.12"
}
}
],
[
"OS=='linux'", {
"cflags_cc": [ "-std=c++17" ]
}
]
]
},
{
"target_name": "decompressor",
"include_dirs": [
"<!(node -e \"require('nan')\")",
"deps/zstd/lib",
"src/common"
],
"dependencies": [
"<(module_root_dir)/deps/zstd.gyp:decompress"
],
"sources": [
"src/common/stream_coder.cc",
"src/common/allocator.cc",
"src/decompress/decompressor_index.cc",
"src/decompress/stream_decompressor.cc",
"src/decompress/stream_decompress_worker.cc"
],
"conditions": [
[
"OS == 'mac'", {
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"MACOSX_DEPLOYMENT_TARGET": "10.12"
}
}
],
[
"OS=='linux'", {
"cflags_cc": [ "-std=c++17" ]
}
]
]
}
]
}