forked from bnoordhuis/phode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phode.gyp
61 lines (55 loc) · 1.23 KB
/
phode.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
{
'includes': [
'./common.gypi',
'./local.gypi',
],
'targets': [
{
'target_name': 'phode',
'type': 'shared_library',
'defines': [
# TODO: move to local.gypi
'ZTS=1',
'ZEND_DEBUG=1',
'PHP_DEBUG=1',
],
'dependencies': [
'deps/http_parser/http_parser.gyp:http_parser',
'deps/libuv/uv.gyp:uv',
],
'include_dirs': [
'src',
'deps/uv/src/ares',
'<(PHP_INCLUDE_PATH)',
'<(PHP_INCLUDE_PATH)/main',
'<(PHP_INCLUDE_PATH)/TSRM',
'<(PHP_INCLUDE_PATH)/Zend',
],
'sources': [
'src/ext.c',
'test.php',
'gen.bat',
],
'conditions': [
[ 'OS=="win"', {
'defines': [
'ZEND_WIN32=1',
'PHP_WIN32=1',
'ZEND_WIN32=1',
'PHP_WIN32=1',
],
'libraries': [
# TODO: move to local.gypi
'-l../php/Debug_TS/php5ts_debug.lib'
]
}],
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
'cflags': [
'-std=c99',
'-fPIC',
],
}],
],
}
] # end targets
}