-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbinding.gyp
88 lines (84 loc) · 2.34 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
{
"targets": [
{
"target_name": "phplike",
"sources": [
"src/cpp/exec/src/exec.cc",
"src/cpp/curl/src/util.cc",
"src/cpp/curl/src/phplikeCppCurl.cc",
"src/cpp/md5/src/md5.cc",
"src/cpp/basic/src/string.cc",
"src/cpp/xml/src/tinyxml2.cpp",
"src/cpp/socket/src/socket.cc",
"src/nodeExt/phplikeSocket.cc",
"src/nodeExt/phplikeXml.cc",
"src/nodeExt/phplikeCurl.cc",
"src/nodeExt/phplike.cc"
],
"cflags_cc": ["-fexceptions"],
"conditions": [
['OS=="linux" and target_arch!="arm"', {
"cflags": ["-std=gnu++0x"],
"libraries": [
'-lcurl'
],
"defines": [
"LINUX_DEFINE", "OS_LINUX"
],
"include_dirs": [
"include/linux",
"src/nodeExt/includes",
"<!(node -e \"require('nan')\")"
]
}
],
['OS=="linux" and target_arch=="arm"', {
"cflags": ["-std=gnu++0x"],
"libraries": [
'-lcurl'
],
"defines": [
"LINUX_DEFINE", "OS_LINUX"
],
"include_dirs": [
"include/linux",
"src/nodeExt/includes"
]
}
],
['OS=="mac"', {
"cflags": ["-std=gnu++0x"],
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES"
},
"libraries": [
'/usr/lib/libcurl.dylib'
],
"defines": [
"LINUX_DEFINE", "OS_LINUX", "OS_MAC"
],
"include_dirs": [
"include/linux",
"src/nodeExt/includes",
"<!(node -e \"require('nan')\")"
]
}
],
['OS=="win"', {
"cflags": ["-std=c++11"],
"libraries": [
"wininet", "ws2_32"
],
"defines": [
"OS_WIN"
],
"include_dirs": [
"src/nodeExt/includes",
"<!(node -e \"require('nan')\")"
]
}
]
]
}
]
}