9 local screen = args.screen
10 local dist = args.dist
14 src=
'src/engine/core/repl/main.lua',
15 post_exe=
'lua dist/main.lua'
18 src=
'src/engine/core/love/main.lua',
19 post_exe=
'love dist -'..
'-screen '..screen
22 src=
'src/engine/core/ginga/main.lua',
23 post_exe=
'ginga dist/main.ncl -s '..screen,
25 'src/engine/core/ginga/main.ncl'
29 src=
'src/engine/core/native/main.lua',
32 src=
'src/engine/core/native/main.lua',
33 post_exe=
'webos24 $(pwd)/dist',
38 'src/engine/meta/html5_webos/appinfo.json',
39 'src/engine/core/html5/index.html',
40 'src/engine/core/html5/index.html',
41 'src/engine/core/html5/engine.js',
42 'assets/icon80x80.png'
46 src=
'src/engine/core/native/main.lua',
49 function()
os.execute(
'cd '..dist..
';~/tizen-studio/tools/ide/bin/tizen.sh package -t wgt;true') end
52 'src/engine/meta/html5_tizen/config.xml',
53 'src/engine/meta/html5_tizen/.tproject',
54 'src/engine/core/html5/index.html',
55 'src/engine/core/html5/index.html',
56 'src/engine/core/html5/engine.js',
57 'assets/icon80x80.png'
61 src=
'src/engine/core/native/main.lua',
62 post_exe=
'ginga dist/main.ncl -s '..screen,
67 'src/engine/meta/html5_ginga/main.ncl',
68 'src/engine/core/html5/index.html',
69 'src/engine/core/html5/index.html',
70 'src/engine/core/html5/engine.js',
74 src=
'src/engine/core/native/main.lua',
79 'src/engine/core/html5/index.html',
80 'src/engine/core/html5/engine.js'
84 src=
'src/engine/core/nintendo_wii/main.lua',
89 'assets/icon128x48.png',
90 'src/engine/meta/nintendo_wii/meta.xml'
99 if not core_list[args.core] then
100 return false,
'this core cannot be build!'
104 if args.core:find(
'html5') then
116 zeebo_fs.move(args.game, dist..
'game.lua')
121 local core = core_list[args.core]
124 while index <= #core.extras
do
125 local
file = core.extras[index]
139 if core.pipeline then
141 while index <= #core.pipeline
do
142 local eval = core.pipeline[index]
143 while type(eval) ==
'function' do
151 if not core.post_exe then
152 return false,
'this core cannot be runned after build!'
154 return os.execute(core.post_exe)
local function bundler(args)
local function pipe(self)
local function file(self, file)
local function move(src_in, dist_path, dist_file)
local function require(std, game, application)