-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbinding.gyp
More file actions
72 lines (70 loc) · 1.89 KB
/
binding.gyp
File metadata and controls
72 lines (70 loc) · 1.89 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"targets": [
{
"target_name": "ttyu",
"include_dirs" : [
"<!(node -e \"require('nan')\")",
"include/"
],
"sources": [
"src/core/ttyu_event.cc",
"src/core/ttyu.cc"
],
# pre install script
"actions": [
{
"action_name": "preinstall",
"inputs": [ "lib/const.js" ],
"outputs": [ "include/generated.h" ],
"action": [ "node", "installer/index.js" ]
}
],
"conditions": [
["OS=='win'", {
"defines": [
"PLATFORM_WINDOWS"
],
"sources": [
"src/win/beep.cc",
"src/win/clear.cc",
"src/win/cursor.cc",
"src/win/emit.cc",
"src/win/goto.cc",
"src/win/mode.cc",
"src/win/colors.cc",
"src/win/resize.cc",
"src/win/start.cc",
"src/win/stop.cc",
"src/win/write.cc",
"src/win/main.cc",
"src/win/utils.cc",
"src/win/worker.cc"
]
}, { # "OS!='win"
"include_dirs": [ "../deps/ncurses" ],
"link_settings": {
"libraries": [ "-lncurses" ],
"library_dirs": [ "../deps/ncurses/lib/" ]
},
"sources": [
"src/unix/beep.cc",
"src/unix/clear.cc",
"src/unix/cursor.cc",
"src/unix/emit.cc",
"src/unix/goto.cc",
"src/unix/mode.cc",
"src/unix/colors.cc",
"src/unix/resize.cc",
"src/unix/start.cc",
"src/unix/stop.cc",
"src/unix/write.cc",
"src/unix/main.cc",
"src/unix/utils.cc",
"src/unix/curses.cc",
"src/unix/worker.cc"
]
}]
]
}
]
}