-
Notifications
You must be signed in to change notification settings - Fork 209
/
Copy pathsdk.lua
111 lines (92 loc) · 1.98 KB
/
sdk.lua
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
111
if not MINKO_HOME then
if os.getenv('MINKO_HOME') then
MINKO_HOME = path.translate(os.getenv('MINKO_HOME'), '/')
else
error('You must define the environment variable MINKO_HOME.')
end
end
if not os.isfile(MINKO_HOME .. '/sdk.lua') then
error('MINKO_HOME does not point to a valid Minko SDK.')
end
package.path = MINKO_HOME .. "/module/?/?.lua;".. package.path
print('Minko SDK home directory: ' .. MINKO_HOME)
require 'ext'
require 'minko'
require 'emscripten'
require 'jni'
require 'vs2013ctp'
require 'vs2015ctp'
require 'gcc'
require 'clang'
require 'xcode'
configurations {
"debug",
"release"
}
minko.platform.platforms {
"linux32",
"linux64",
"windows32",
"windows64",
"osx64",
"html5",
"ios",
"android",
}
configuration { "windows32" }
system "windows"
architecture "x32"
configuration { "windows64" }
system "windows"
architecture "x64"
configuration { "linux32" }
system "linux"
architecture "x32"
configuration { "linux64" }
system "linux"
architecture "x64"
configuration { "osx64" }
system "macosx"
toolset "clang"
configuration { "html5" }
system "emscripten"
configuration { "android"}
system "android"
configuration { "cc=gcc"}
toolset "gcc"
configuration { "cc=clang", "not html5" }
toolset "clang"
configuration {}
-- distributable SDK
MINKO_SDK_DIST = true
-- make plugins visible from an external project
local plugins = {
['lua'] = false,
['angle'] = false,
['zlib'] = true,
['assimp'] = true,
['debug'] = true,
['devil'] = true,
['bullet'] = true,
['fx'] = true,
['html-overlay'] = true,
['http-loader'] = true,
['http-worker'] = true,
['jpeg'] = true,
['leap'] = false,
['nodejs-worker'] = false,
['offscreen'] = false,
['particles'] = false,
['png'] = true,
['sdl'] = true,
['ssl'] = true,
['sensors'] = true,
['serializer'] = true,
['ttf'] = true,
['video-camera'] = true,
['vr'] = true,
['websocket'] = true
}
for plugin, enabled in pairs(plugins) do
minko.plugin.include(MINKO_HOME .. '/plugin/' .. plugin, enabled)
end