forked from mariano/node-db-mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
53 lines (53 loc) · 1.16 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
{
'conditions': [
['OS=="mac"', {
'make_global_settings': [
['CC', '/usr/bin/gcc'],
['CXX', '/usr/bin/g++']
]
}]],
"targets": [
{
"target_name": "mysql_bindings",
'include_dirs': [
'lib/',
'.',
'<!@(mysql_config --include)'
],
'cflags': [
'<!@(mysql_config --cflags)'
],
'cflags!': [
'-fno-exceptions'
],
'cflags_cc!': [
'-fno-exceptions'
],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_ENABLE_CPP_RTTI': 'YES'
}
}]],
"sources": [
"lib/node-db/exception.cc",
"lib/node-db/binding.cc",
"lib/node-db/connection.cc",
"lib/node-db/events.cc",
"lib/node-db/query.cc",
"lib/node-db/result.cc",
"src/connection.cc",
"src/mysql.cc",
"src/query.cc",
"src/result.cc",
"src/mysql_bindings.cc"
],
'link_settings': {
'libraries': [
'<!@(mysql_config --libs_r)'
]
}
}
]
}