-
Notifications
You must be signed in to change notification settings - Fork 5
/
binding.gyp
55 lines (54 loc) · 1.53 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
{
"targets": [
{
"target_name": "uriparser",
"dependencies": [
"libparsers"
],
"sources": [
"src/node-uriparser.cc"
],
"include_dirs": [
"<(module_root_dir)/build/ngx_url_parser/include/ngx_url_parser",
"<!(node -e \"require('nan')\")"
],
"cflags": [
"-O3"
],
"libraries": [
"<(module_root_dir)/build/ngx_url_parser/lib/libngx_url_parser.a",
]
},
{
"target_name": "libparsers",
"type": "none",
"actions": [
{
"action_name": "build",
"inputs": [""],
"outputs": [""],
"action": ["sh", "build_deps.sh"]
}
]
},
{
"target_name": "after_build",
"type": "none",
"dependencies": [
"uriparser"
],
"actions": [
{
"action_name": "copy",
"inputs": [
"<@(PRODUCT_DIR)/uriparser.node"
],
"outputs": [
"<(module_root_dir)/bin/uriparser.node"
],
"action": ["cp", "<@(PRODUCT_DIR)/uriparser.node", "<(module_root_dir)/bin/uriparser.node"]
}
]
}
]
}