-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
83 lines (82 loc) · 2.23 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
{
# NOTE: 'module_name' and 'module_path' come from the 'binary' property in package.json
# node-pre-gyp handles passing them down to node-gyp when you build from source
"targets": [
{
"target_name": "libdds",
"product_name": "dds",
"type": "static_library",
"sources": [
"node_modules/dds/src/dds.cpp",
"node_modules/dds/src/dump.cpp",
"node_modules/dds/src/ABsearch.cpp",
"node_modules/dds/src/ABstats.cpp",
"node_modules/dds/src/CalcTables.cpp",
"node_modules/dds/src/DealerPar.cpp",
"node_modules/dds/src/File.cpp",
"node_modules/dds/src/Init.cpp",
"node_modules/dds/src/LaterTricks.cpp",
"node_modules/dds/src/Memory.cpp",
"node_modules/dds/src/Moves.cpp",
"node_modules/dds/src/Par.cpp",
"node_modules/dds/src/PlayAnalyser.cpp",
"node_modules/dds/src/PBN.cpp",
"node_modules/dds/src/QuickTricks.cpp",
"node_modules/dds/src/Scheduler.cpp",
"node_modules/dds/src/SolveBoard.cpp",
"node_modules/dds/src/SolverIF.cpp",
"node_modules/dds/src/System.cpp",
"node_modules/dds/src/ThreadMgr.cpp",
"node_modules/dds/src/TimeStat.cpp",
"node_modules/dds/src/TimeStatList.cpp",
"node_modules/dds/src/Timer.cpp",
"node_modules/dds/src/TimerGroup.cpp",
"node_modules/dds/src/TimerList.cpp",
"node_modules/dds/src/TransTable.h",
"node_modules/dds/src/TransTableL.cpp",
"node_modules/dds/src/TransTableS.cpp",
"node_modules/dds/src/debug.h",
"node_modules/dds/src/parallel.h"
],
"include_dirs": [
],
'direct_dependent_settings': {
'include_dirs': [ 'node_modules/dds/include/' ],
},
"cflags": [ '-Wno-unused' ],
"cflags_cc": [ '-Wno-unused' ],
"conditions": [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}]
]
},
{
"target_name": "<(module_name)",
"sources": [
"binding.cpp",
"src/dispatch-async.cpp",
"src/solve-board.cpp",
"src/calc-dd-table.cpp",
"src/par.cpp",
"src/set-max-threads.cpp",
],
"dependencies": [
"libdds"
]
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": [ "<(module_name)" ],
"copies": [
{
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
"destination": "<(module_path)"
}
]
}
]
}