-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbinding.gyp
145 lines (139 loc) · 5.09 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"targets": [
{
"target_name": "sack_vfs",
'win_delay_load_hook': 'false',
"sources": [ "src/vfs_module.cc",
"src/sack/sack.cc",
"src/sack/sqlite3.c",
"src/com_interface.cc",
"src/sql_module.cc",
"src/thread_module.cc",
"src/jsonParse.cc",
"src/jsoxParse.cc",
"src/tls_interface.cc",
"src/srg_module.cc",
"src/websocket_module.cc",
"src/network_module.cc",
"src/task_module.cc",
"src/config_module.cc",
"src/objStore_module.cc",
"src/fileMonitor_module.cc",
"src/system_module.cc",
"src/text_object.cc",
],
'defines': [ "BUILDING_NODE_EXTENSION","BUILD_NODE_ADDON",
'TARGETNAME="sack_vfs.node"'
, "__STATIC__","__STATIC_GLOBALS__"
# , "DEFAULT_OUTPUT_STDERR"
, "USE_SQLITE","USE_SQLITE_INTERFACE","FORCE_COLOR_MACROS",
"NO_OPEN_MACRO","NO_FILEOP_ALIAS","JSON_PARSER_MAIN_SOURCE", "SQLITE_ENABLE_LOCKING_STYLE=0","SQLITE_THREADSAFE=0","SQLITE_OMIT_UTF16","SQLITE_ENABLE_COLUMN_METADATA=1", "SQLITE_DEFAULT_FOREIGN_KEYS=1", "NO_MIN_MAX_MACROS",
"BUILD_NODE_ADDON","OPENSSL_API_COMPAT=10101","XOPENSSL_API_LEVEL=10100"
],
'conditions': [
['OS=="linux"', {
'defines': [
'__LINUX__','__MANUAL_PRELOAD__','__INTERNAL_UUID__','UUID_SOURCE'
# , '__NO_ODBC__'
],
#, '__NO_ODBC__'
'cflags_cc': ['-Wno-misleading-indentation','-Wno-parentheses','-Wno-unused-result'
,'-Wno-char-subscripts'
,'-Wno-empty-body','-Wno-format', '-Wno-address'
, '-Wno-strict-aliasing', '-Wno-switch', '-Wno-missing-field-initializers'
, '-Wno-unused-variable', '-Wno-unused-function', '-Wno-unused-but-set-variable', '-Wno-maybe-uninitialized'
, '-Wno-sign-compare', '-Wno-unknown-warning', '-fexceptions', '-Wno-cast-function-type'
],
'cflags': ['-Wno-implicit-fallthrough'
],
'include_dirs': [
'include/linux',
],
'libraries':[ '-lodbc', '-L/usr/lib/x86_64-linux/gnu' ]
}],
['node_shared_openssl=="false"', {
'include_dirs': [
'<(node_root_dir)/deps/openssl/openssl/include'
],
"conditions" : [
["target_arch=='ia32'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/piii" ]
}],
["target_arch=='x64'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/k8" ]
}],
["target_arch=='arm'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/arm" ]
}]
]
}],
['OS=="mac"', {
'defines': [
'__LINUX__','__MAC__', '__NO_ODBC__',"__NO_OPTIONS__",'_DARWIN_C_SOURCE'
],
'xcode_settings': {
'OTHER_CFLAGS': [
'-Wno-self-assign', '-Wno-null-conversion', '-Wno-parentheses-equality', '-Wno-parentheses'
,'-Wno-char-subscripts', '-Wno-null-conversion'
,'-Wno-empty-body','-Wno-format', '-Wno-address'
, '-Wno-strict-aliasing', '-Wno-switch', '-Wno-missing-field-initializers'
, '-Wno-unused-variable', '-Wno-unused-function'
, '-Wno-sign-compare', '-Wno-null-dereference'
, '-Wno-address-of-packed-member', '-Wno-unknown-warning-option'
, '-Wno-unused-result', '-fexceptions', '-Wno-unknown-pragma'
],
},
'include_dirs': [
'include/linux',
],
}],
['OS=="win"', {
'defines': [
"NEED_SHLAPI","NEED_SHLOBJ","_CRT_SECURE_NO_WARNINGS"
],
'configurations': {
'Debug': {
'msvs_settings': {
'VCCLCompilerTool': {
'BufferSecurityCheck': 'false',
'RuntimeTypeInfo': 'true',
'MultiProcessorCompilation' : 'true',
'InlineFunctionExpansion': 2,
'OmitFramePointers': 'true',
'ExceptionHandling':2
}
}
},
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'BufferSecurityCheck': 'false',
'RuntimeTypeInfo': 'true',
'MultiProcessorCompilation' : 'true',
'InlineFunctionExpansion': 2,
'OmitFramePointers': 'true',
'ExceptionHandling':2
}
}
}
},
'sources': [
# windows-only; exclude on other platforms.
'src/hid_module.cc',
'src/reg_access.cc',
"src/playSound_module.cc",
],
'libraries':[ 'winmm', 'ws2_32', 'iphlpapi', 'rpcrt4', 'odbc32', 'crypt32', 'cryptui' ]
}, { # OS != "win",
'defines': [
'__LINUX__',
],
}]
],
# 'otherDefinss': [ "__NO_OPTIONS__" ],
}
],
"target_defaults": {
'include_dirs': ['src/sack']
}
}