-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
98 lines (98 loc) · 2.44 KB
/
Copy pathbinding.gyp
File metadata and controls
98 lines (98 loc) · 2.44 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
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
{
"variables": {
# Node's common.gypi dereferences this under OS=="android" but never defaults
# it, which breaks the build on Android/Termux. Harmless everywhere else.
"android_ndk_path%": "",
"lua_sources": [
"vendor/lua/lapi.c",
"vendor/lua/lauxlib.c",
"vendor/lua/lbaselib.c",
"vendor/lua/lcode.c",
"vendor/lua/ldblib.c",
"vendor/lua/ldebug.c",
"vendor/lua/ldo.c",
"vendor/lua/ldump.c",
"vendor/lua/lfunc.c",
"vendor/lua/lgc.c",
"vendor/lua/linit.c",
"vendor/lua/liolib.c",
"vendor/lua/llex.c",
"vendor/lua/lmathlib.c",
"vendor/lua/lmem.c",
"vendor/lua/loadlib.c",
"vendor/lua/lobject.c",
"vendor/lua/lopcodes.c",
"vendor/lua/loslib.c",
"vendor/lua/lparser.c",
"vendor/lua/lstate.c",
"vendor/lua/lstring.c",
"vendor/lua/lstrlib.c",
"vendor/lua/ltable.c",
"vendor/lua/ltablib.c",
"vendor/lua/ltm.c",
"vendor/lua/lundump.c",
"vendor/lua/lvm.c",
"vendor/lua/lzio.c"
]
},
"targets": [
{
"target_name": "nodelua",
"sources": [
"src/utils.cc",
"src/luastate.cc",
"src/nodelua.cc",
"vendor/lfs/lfs.c",
"<@(lua_sources)"
],
"include_dirs": [
"vendor/lua",
"vendor/lfs",
"<!@(node -p \"require('node-addon-api').include\")"
],
# Lua signals errors with longjmp, which would skip C++ destructors if an
# exception ever unwound through its frames. Keep exceptions off and use
# ThrowAsJavaScriptException instead.
"defines": [
"NAPI_DISABLE_CPP_EXCEPTIONS",
"NAPI_VERSION=8"
],
"conditions": [
[
"OS=='linux'",
{
"defines": [
"LUA_USE_POSIX",
"LUA_DL_DLOPEN"
],
"libraries": [
"-ldl"
]
}
],
[
"OS=='mac'",
{
"defines": [
"LUA_USE_POSIX",
"LUA_DL_DYLD"
],
"xcode_settings": {
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "10.13"
}
}
],
[
"OS=='win'",
{
"defines": [
"_CRT_SECURE_NO_WARNINGS"
]
}
]
]
}
]
}