-
Notifications
You must be signed in to change notification settings - Fork 4
/
binding.gyp
66 lines (66 loc) · 1.88 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
{
"targets": [
{
"target_name": "napi_ctp",
"sources": [
"./src/is_utf8.cpp",
"./src/binding.cpp",
"./src/spievent.cpp",
"./src/ctpmsg.cpp",
"./src/mdapi.cpp",
"./src/mdspi.cpp",
"./src/mdmsg.cpp",
"./src/guard.cpp",
"./src/message_queue.cpp",
"./src/napi_ctp.cpp",
"./src/traderapi.cpp",
"./src/traderspi.cpp",
"./src/tradermsg.cpp"
],
"conditions": [
['OS=="mac"', {
"include_dirs": [
"<(module_root_dir)/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers",
"<(module_root_dir)/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers"
],
"libraries": [
"-Wl,-rpath,<(module_root_dir)/tradeapi/macos",
"-F<(module_root_dir)/tradeapi/macos",
"-framework thostmduserapi_se",
"-framework thosttraderapi_se"
]
}],
['OS=="win"', {
"include_dirs": [
"<(module_root_dir)/tradeapi"
],
"library_dirs": [
"<(module_root_dir)/tradeapi/windows"
],
"libraries": [
"thostmduserapi_se.lib",
"thosttraderapi_se.lib"
],
"copies": [
{
"destination": "<(PRODUCT_DIR)",
"files": [
"<(module_root_dir)/tradeapi/windows/thostmduserapi_se.dll",
"<(module_root_dir)/tradeapi/windows/thosttraderapi_se.dll"
]
}
]
}],
['OS=="linux"', {
"include_dirs": [
"<(module_root_dir)/tradeapi"
],
"libraries": [
"<(module_root_dir)/tradeapi/linux/thostmduserapi_se.so",
"<(module_root_dir)/tradeapi/linux/thosttraderapi_se.so"
]
}]
]
}
]
}