forked from aerys/minko
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsdk.lua
More file actions
104 lines (82 loc) · 1.87 KB
/
Copy pathsdk.lua
File metadata and controls
104 lines (82 loc) · 1.87 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
99
100
101
102
103
if not MINKO_HOME then
if os.getenv('MINKO_HOME') then
MINKO_HOME = 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 '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 = os.matchdirs(MINKO_HOME .. '/plugin/*')
for _, plugin in ipairs(plugins) do
minko.plugin.include(plugin)
end
-- options
newoption {
trigger = 'no-stencil',
description = 'Disable stencil buffer support.'
}
if _OPTIONS['no-stencil'] then
defines { 'MINKO_NO_STENCIL' }
print('Stencil buffer support is disabled (--no-stencil)')
end
newoption {
trigger = 'no-glsl-struct',
description = 'Disable GLSL struct support.'
}
if _OPTIONS['no-glsl-struct'] then
defines { 'MINKO_NO_GLSL_STRUCT' }
print('GLSL structs support is disabled (--no-glsl-struct)')
end