-
Notifications
You must be signed in to change notification settings - Fork 5
/
binding.gyp
64 lines (63 loc) · 1.63 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
{
'includes': [ 'deps/common-libphp5.gypi' ],
'variables': {
'libphp5%':'internal',
},
'targets': [
{
'target_name': 'node_php_embed',
"include_dirs": ["<!(node -e \"require('nan')\")","."],
'conditions': [
['libphp5 != "internal"', {
'libraries': [ "<!@(php-config --ldflags) -lphp5" ],
'cflags': [ "<!@(php-config --includes)" ],
'defines': [ 'EXTERNAL_LIBPHP5' ],
'direct_dependent_settings': {
'php_module_files': [],
},
},
{
'dependencies': [
'deps/libphp5.gyp:libphp5'
],
'export_dependent_settings': [
'deps/libphp5.gyp:libphp5'
],
}
]
],
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.7',
'OTHER_CFLAGS': [
'-std=c++11',
'-stdlib=libc++'
],
},
'sources': [
'src/asyncmapperchannel.cc',
'src/asyncmessageworker.cc',
'src/phprequestworker.cc',
'src/node_php_embed.cc',
'src/node_php_jsbuffer_class.cc',
'src/node_php_jsobject_class.cc',
'src/node_php_jsserver_class.cc',
'src/node_php_jswait_class.cc',
'src/node_php_phpobject_class.cc',
],
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": [ "<(module_name)" ],
"copies": [
{
"files": [
"<(PRODUCT_DIR)/<(module_name).node",
">@(_php_module_files)"
],
"destination": "<(module_path)"
}
]
}
]
}