forked from GerardSmit/NodeLua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
87 lines (85 loc) · 1.49 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
{
"targets":[
{
"target_name":"nodelua",
"variables": {
"lua_include": "",
"lib_dirs": ""
},
"sources":[
"src/utils.cc",
"src/luastate.cc",
"src/nodelua.cc"
],
"conditions":[
[
"OS=='win'",
{
"include_dirs":[
"./lua/win64"
],
"library_dirs":[
"./lua/win64"
],
"libraries":[
"lua51.lib"
],
"actions":[
{
"action_name":"move_lua",
"inputs":[
"<(module_root_dir)/lua/win64/lua51.dll"
],
"outputs":[
"<(module_root_dir)/build/Release/lua51.dll"
],
"action":[
"copy",
"<(module_root_dir)/lua/win64/lua51.dll",
"<(module_root_dir)/build/Release/lua51.dll"
]
}
]
}
],
[
"OS=='mac'",
{
"include_dirs":[
"./lua/mac/include"
],
"libraries":[
"../lua/mac/lib/liblua.a"
],
"actions":[
],
"cflags":[
"-std=c++11",
"-stdlib=libc++"
],
"xcode_settings":{
"CLANG_CXX_LANGUAGE_STANDARD":"c++0x",
"CLANG_CXX_LIBRARY":"libc++"
}
}
],
[
"OS=='linux'",
{
"include_dirs":[
"<!(find /usr/include /usr/local/include $NODELUA_INCLUDE -name lua.h | sed s/lua.h//)"
],
"library_dirs":[
"/usr/local/lib"
],
"libraries":[
"/usr/local/lib/libluajit-5.1.so"
],
"actions":[
]
}
]
]
}
]
}