aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/extantz/build.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-04-20 15:24:46 +1000
committerDavid Walter Seikel2014-04-20 15:24:46 +1000
commitc501a8c75e6fce2e91d52f60a5454de5aa3ef8f1 (patch)
tree0c6d24aef960df463c2ed6c399aa4eb535f2e66f /ClientHamr/extantz/build.lua
parentelm_naviframe_item_title_visible_set() was deprecated, replace it. (diff)
downloadSledjHamr-c501a8c75e6fce2e91d52f60a5454de5aa3ef8f1.zip
SledjHamr-c501a8c75e6fce2e91d52f60a5454de5aa3ef8f1.tar.gz
SledjHamr-c501a8c75e6fce2e91d52f60a5454de5aa3ef8f1.tar.bz2
SledjHamr-c501a8c75e6fce2e91d52f60a5454de5aa3ef8f1.tar.xz
Convert build shell scripts to Lua, with common infrastructure.
Diffstat (limited to 'ClientHamr/extantz/build.lua')
-rwxr-xr-xClientHamr/extantz/build.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/ClientHamr/extantz/build.lua b/ClientHamr/extantz/build.lua
new file mode 100755
index 0000000..d53449e
--- /dev/null
+++ b/ClientHamr/extantz/build.lua
@@ -0,0 +1,26 @@
1#!/usr/bin/env lua
2
3local dir = ...
4
5if 'nil' == type(dir) then
6 local build, err = loadfile('../../build.lua')
7 if build then
8 setfenv(build, getfenv(2))
9 build('')
10 else
11 print("ERROR - " .. err)
12 end
13 dir = readCommand('pwd')
14end
15
16CFLAGS = CFLAGS .. ' -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/include'
17LDFLAGS = LDFLAGS .. ' -L../../libraries/irrlicht-1.8.1/lib/Linux'
18libs = libs .. ' -lIrrlicht -lGL -lbz2'
19
20removeFiles(dir, {'extantz', 'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', 'extantz.edj'})
21
22runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' extantz.edc extantz.edj')
23runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS)
24runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS)
25runCommand('extantz', dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS)
26runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' extantz.c crappisspuke.o CDemo.o extantzCamera.o -o extantz ' .. LDFLAGS .. ' ' .. libs .. ' && strip extantz')