Repository navigation
Expand file tree
/
Copy pathlinks.gyp
More file actions
93 lines (93 loc) · 2.16 KB
/
Copy pathlinks.gyp
File metadata and controls
93 lines (93 loc) · 2.16 KB
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
<
98D1
div data-line-number="57" class="react-line-number react-code-text" style="padding-right:16px">5758
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
91
92
93
{
'targets': [
{
'target_name': 'liblinks',
'type': 'static_library',
'dependencies': [
'deps/http_parser/http_parser.gyp:http_parser',
'deps/lua/lua.gyp:liblua',
'deps/cares/cares.gyp:cares',
'deps/uv/uv.gyp:libuv',
'deps/zlib/zlib.gyp:zlib',
'deps/openssl/openssl.gyp:openssl',
],
'export_dependent_settings': [
'deps/http_parser/http_parser.gyp:http_parser',
'deps/lua/lua.gyp:liblua',
'deps/cares/cares.gyp:cares',
'deps/uv/uv.gyp:libuv',
'deps/zlib/zlib.gyp:zlib',
'deps/openssl/openssl.gyp:openssl',
],
'conditions': [
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
'cflags': [ '--std=c99' ],
'defines': [ '_GNU_SOURCE' ]
}]
],
'include_dirs': [
'src',
],
'direct_dependent_settings': {
'include_dirs': [
'src',
]
},
'sources': [
'src/alloc.c',
'src/palloc.c',
'src/pbuf.c',
'src/buf.c',
'src/string.c',
'src/hash.c',
'src/links.c',
'src/util.c',
'src/system.c',
'src/process.c',
'src/dns.c',
'src/tcp.c',
'src/http.c',
'src/init.c',
],
},
{
'target_name': 'links',
'type': 'executable',
'dependencies': [
'liblinks',
],
'include_dirs': [
'src',
],
'direct_dependent_settings': {
'include_dirs': [
'src',
]
},
'sources': [
'src/main.c',
],
'msvs-settings': {
'VCLinkerTool': {
'SubSystem': 1, # /subsystem:console
},
},
'conditions': [
['OS == "win"', {
'libraries': [
'-lgdi32.lib',
'-luser32.lib'
],
}],
['OS == "linux"', {
'libraries': [ '-ldl' ],
}],
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
'cflags': [ '--std=c99' ],
'defines': [ '_GNU_SOURCE' ]
}],
],
'defines': [ 'BUNDLE=1' ]
},
],
}