This repository was archived by the owner on Oct 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathbinding.gyp
More file actions
54 lines (54 loc) · 1.22 KB
/
binding.gyp
File metadata and controls
54 lines (54 loc) · 1.22 KB
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
{
'variables': {
'conditions': [
['OS == "win"', {
'lp%': 'lpb_release'
}],
['OS != "win"', {
'lp%': '<!(sh lp.sh)'
}]
]
},
'targets': [{
'target_name': 'protobuf',
'sources': [ './src/init.cpp', './src/native.cpp', './src/parse.cpp', './src/serialize.cpp' ],
'include_dirs': [
'<!(node -e "require(\'nan\')")',
'<(lp)/include'
],
'cflags' : [ '-Ofast', '-ffast-math', '-funroll-loops', '-fomit-frame-pointer', '-std=c++11', '-pthread', '-static', '-I../../' ],
'cflags_cc' : [ '-Ofast', '-ffast-math', '-funroll-loops', '-fomit-frame-pointer', '-std=c++11', '-pthread', '-static', '-I../../' ],
'conditions': [
['OS == "win"', {
'libraries': [
'-l../<(lp)/lib/libprotobuf'
],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalLibraryDirectories': '<(lp)/lib'
}
}
}],
['OS == "mac"', {
'libraries': [
'-lprotobuf',
'-L<(lp)/lib'
],
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9',
'OTHER_CPLUSPLUSFLAGS': [
'-stdlib=libc++',
],
'GCC_ENABLE_CPP_RTTI': 'YES'
}
}],
['OS == "linux"', {
'cflags_cc!': [ '-fno-rtti' ],
'libraries': [
'-lprotobuf',
'-L<(lp)/lib'
]
}]
]
}]
}