This repository has been archived by the owner on Jun 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
binding.gyp
90 lines (84 loc) · 2.18 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"targets": [
{
"target_name": "iltorb",
"sources": [
"brotli/c/common/dictionary.c",
"brotli/c/common/transform.c",
"brotli/c/dec/bit_reader.c",
"brotli/c/dec/decode.c",
"brotli/c/dec/huffman.c",
"brotli/c/dec/state.c",
"brotli/c/enc/backward_references.c",
"brotli/c/enc/backward_references_hq.c",
"brotli/c/enc/bit_cost.c",
"brotli/c/enc/block_splitter.c",
"brotli/c/enc/brotli_bit_stream.c",
"brotli/c/enc/cluster.c",
"brotli/c/enc/compress_fragment.c",
"brotli/c/enc/compress_fragment_two_pass.c",
"brotli/c/enc/dictionary_hash.c",
"brotli/c/enc/encode.c",
"brotli/c/enc/encoder_dict.c",
"brotli/c/enc/entropy_encode.c",
"brotli/c/enc/histogram.c",
"brotli/c/enc/literal_cost.c",
"brotli/c/enc/memory.c",
"brotli/c/enc/metablock.c",
"brotli/c/enc/static_dict.c",
"brotli/c/enc/utf8_util.c",
"src/common/allocator.cc",
"src/common/stream_coder.cc",
"src/dec/stream_decode.cc",
"src/dec/stream_decode_worker.cc",
"src/enc/stream_encode.cc",
"src/enc/stream_encode_worker.cc",
"src/iltorb.cc"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"brotli/c/include"
],
"defines": ["NOMINMAX"],
"cflags" : [
"-O2"
],
"xcode_settings": {
"OTHER_CFLAGS" : ["-O2"]
},
"configurations": {
"Debug": {
"conditions": [
['OS=="android"', {
"cflags": ["-fPIC"],
"ldflags!": ["-pie"]
}]
]
},
"Release": {
"conditions": [
['OS=="android"', {
"cflags": ["-fPIC"],
"ldflags!": ["-pie"]
}]
]
}
}
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": [
"iltorb"
],
"copies": [
{
"files": [
"<(PRODUCT_DIR)/iltorb.node"
],
"destination": "build/bindings"
}
]
}
]
}