forked from medaeus245/node-lua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
86 lines (86 loc) · 1.98 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
{
"targets": [
{
"target_name": "nodelua",
"variables": {
"lua_include": "",
"lib_dirs": ""
},
"conditions": [
[
"OS=='win'",
{
"variables": {
"module_root_dir": "<!(cd)"
},
"include_dirs": [
"./win64luajit"
],
"library_dirs": [
"./win64luajit"
],
"libraries": [
"lua51.lib"
],
"copies":[
{
'destination': './build/Release',
'files':[
'<(module_root_dir)/win64luajit/lua51.dll',
]},
{
'destination': './build/Release/clibs',
'files':[
'<(module_root_dir)/win64luajit/lfs.dll',
]
}
]
}
],
[
'OS=="mac"',
{
"include_dirs": [
"./maclualib/include"
],
"libraries": [
"../maclualib/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 -print -quit | sed s/lua.h//)"
],
"library_dirs": [
"/usr/local/lib"
],
"libraries": [
"/usr/local/lib/libluajit-5.1.so"
],
"actions": []
}
]
],
"sources": [
"src/utils.cc",
"src/luastate.cc",
"src/nodelua.cc"
],
"include_dirs": [
"<!(node -e \"require('nan')\")"
]
}
]
}