-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
110 lines (110 loc) · 3.42 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
{
"targets": [
{
"target_name": "awtk",
"sources": ["src/c/tk_nodejs.cc", "src/assets.c"],
'defines': [
'WITH_FS_RES=1'
],
"ldflags": [
"-Wl,-z,now",
],
"include_dirs": [
"./",
"<(module_root_dir)/../awtk",
"<(module_root_dir)/../awtk/src",
"<(module_root_dir)/../awtk/3rd",
"<(module_root_dir)/../awtk/src/ext_widgets",
'<(module_root_dir)/node_modules/nan',
'<!(node -e \'require("nan")\')'
],
"link_settings": {
"libraries": [
],
"library_dirs": [
"<(module_root_dir)/../awtk/bin",
"<(module_root_dir)/../awtk/lib"
]
},
"conditions": [[
'OS=="mac"', {
"copies": [
{
'destination': 'bin/',
'files': [
'../awtk/bin/libawtk.dylib'
]
}
],
"libraries": [
"-lawtk",
"-lstdc++",
"-lpthread",
"-lm",
"-ldl"
],
"library_dirs": [
"/opt/homebrew/Cellar/sdl2/2.30.6/lib"
],
"include_dirs": [
]
}
],
[
'OS=="win"', {
"copies": [
{
'destination': './build/Release',
'files': [
'../awtk/bin/awtk.dll'
]
}
],
"libraries": [
"-lawtk",
"-lgdi32",
"-luser32",
"-lwinmm",
"-limm32",
"-lversion",
"-lshell32",
"-lole32",
"-lOleaut32",
"-lAdvapi32",
"-lDelayImp",
"-lpsapi"
],
"include_dirs": [
]
}
],
[
'OS=="linux"', {
"copies": [
{
'destination': './build/Release',
'files': [
'../awtk/bin/libawtk.so'
]
}
],
"libraries": [
"-lawtk",
"-lGL",
"-lgtk-3",
"-lgdk-3",
"-lXext",
"-lX11",
"-lsndio",
"-lstdc++",
"-lpthread",
"-lm",
"-ldl"
],
"include_dirs": [
]
}
]]
}
]
}