forked from sheldonth/activetick-addon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
60 lines (60 loc) · 1.94 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
{
"targets": [
{
"target_name": "NodeActiveTickAddon",
"sources": [ "NodeActiveTickAddon.cpp",
"NodeActiveTick.cpp",
"Requestor.cpp",
"import/atfeed-cppsdk/example/Helper.cpp",
"AtEnumConverter.cpp",
"protobuf/messages.pb.cc",
"ProtobufHelper.cpp"
],
'include_dirs': [
'./import/atfeed-cppsdk/include/',
'./import/atfeed-cppsdk/',
"<!(node -e \"require('nan')\")"
],
"cflags": ['-c -O3 -ffast-math -fexpensive-optimizations -DNDEBUG -fexceptions -std=c++11 -Wno-c++11-extensions'],
"cflags_cc": ['-c -O3 -ffast-math -fexpensive-optimizations -DNDEBUG -fexceptions -std=c++11 -Wno-c++11-extensions'],
'cflags!': [ '-fno-rtti' ],
'cflags_cc!': [ '-fno-rtti' ],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.11',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_ENABLE_CPP_RTTI': 'YES',
'OTHER_CPLUSPLUSFLAGS': [
'<!@(pkg-config --cflags protobuf)',
'-Wno-c++11-extensions'
],
'OTHER_CFLAGS': [
],
'OTHER_LDFLAGS': [
]
},
'link_settings': {
'libraries': [
'<(module_root_dir)/import/atfeed-cppsdk/bin/libActiveTickServerAPI.dylib',
'-lpthread',
'-D_THREAD_SAFE',
'<!@(pkg-config --libs protobuf)'
]
}
}],
['OS=="linux"', {
'link_settings': {
'ldflags': [
],
'libraries':[
'<(module_root_dir)/libActiveTickServerAPI.so',
'-lpthread',
'<!@(pkg-config --libs protobuf)'
]
}
}],
]
}
]
}