This repository has been archived by the owner on Apr 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
104 lines (97 loc) · 2.25 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
{
"targets": [
# TagReader
{
"target_name": "tagreader",
"sources": [
"lib/tagreader/module_init.cpp",
"lib/tagreader/tagreader.cpp",
"lib/tagreader/tagreaderprivate.cpp"
],
"conditions": [
['OS!="win"', {
"link_settings": {
"libraries": [
"-ltag"
]
}
}]
],
"cflags": [
"-std=c++11"
]
},
# GnuReadline / WinEditline
{
"target_name": "readline",
"conditions": [
['OS!="win"', {
"sources": [
"lib/readline/module_init.cpp",
"lib/readline/readline.cpp"
],
"link_settings": {
"libraries": [
"-lreadline"
]
}
}],
['OS=="win"', {
"sources": [
"lib/readline/module_init.cpp",
"lib/readline/readline.cpp",
"lib/readline/wineditline/src/editline.c",
"lib/readline/wineditline/src/history.c",
"lib/readline/wineditline/src/fn_complete.c"
],
"include_dirs": [
"lib/readline/wineditline/include",
"lib/readline/wineditline/src"
],
}]
],
"cflags": [
"-std=c++11"
]
},
# kbhit
{
"target_name": "kbhit",
"sources": [
"lib/kbhit/kbhit.cpp"
]
},
# random_mt19937
{
"target_name": "random_mt19937",
"sources": [
"lib/random_mt19937/mt19937.cpp"
],
"cflags": [
"-std=c++11"
]
},
# copies all modules to a universal location to keep the code simple
{
"target_name": "_LibCopy",
"type": "none",
"dependencies": [
"tagreader",
"readline",
"kbhit",
"random_mt19937"
],
"copies": [
{
"destination": "<(module_root_dir)/lib",
"files": [
"<(module_root_dir)/build/$(BUILDTYPE)/tagreader.node",
"<(module_root_dir)/build/$(BUILDTYPE)/readline.node",
"<(module_root_dir)/build/$(BUILDTYPE)/kbhit.node",
"<(module_root_dir)/build/$(BUILDTYPE)/random_mt19937.node"
]
}
]
}
] # targets
}