forked from bgdavidx/node-protobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
51 lines (51 loc) · 1.49 KB
/
binding.gyp
File metadata and controls
51 lines (51 loc) · 1.49 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
{
"targets": [{
"target_name": "protobuf",
"sources": [ "./src/init.cpp", "./src/native.cpp", "./src/parse.cpp", "./src/serialize.cpp" ],
"cflags" : [ "-Ofast", "-mtune=native", "-ffast-math", "-funroll-loops", "-fomit-frame-pointer", "-std=c++11", "-pthread", "-static", "-I../../" ],
"cflags_cc" : [ "-Ofast", "-mtune=native", "-ffast-math", "-funroll-loops", "-fomit-frame-pointer", "-std=c++11", "-pthread", "-static", "-I../../" ],
"cflags_cc!": [ "-fno-rtti" ],
"conditions": [
["OS == 'win'", {
"libraries": [
"-llibprotobuf.lib"
],
"include_dirs": [
"$(LIBPROTOBUF)/include",
"<!(node -e \"require('nan')\")"
],
"msvs_settings": {
"VCLinkerTool": {
"AdditionalLibraryDirectories": "$(LIBPROTOBUF)/lib"
}
}
}],
["OS == 'mac'", {
"libraries": [
"-lprotobuf",
"-L/usr/local/lib"
],
"include_dirs": [
"<!(node -e \"require('nan')\")"
],
"xcode_settings": {
"MACOSX_DEPLOYMENT_TARGET": "10.7",
"OTHER_CPLUSPLUSFLAGS": [
"-stdlib=libc++",
"-I/usr/local/include"
],
"GCC_ENABLE_CPP_RTTI": "YES"
}
}],
["OS == 'linux'", {
"libraries": [
"-L/usr/local/libz",
"-lprotobuf"
],
"include_dirs": [
"<!(node -e \"require('nan')\")"
]
}]
]
}]
}