aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-02 15:21:11 +1000
committerDavid Walter Seikel2014-05-02 15:21:11 +1000
commit808dc157f913fb8f8d1e7a04833c26bf00bba1ab (patch)
tree0e695c45401cc09f37416199537b6242c5ea4bce /build.lua
parentCopy the Evas_3D demo stuff to extantz. (diff)
downloadSledjHamr-808dc157f913fb8f8d1e7a04833c26bf00bba1ab.zip
SledjHamr-808dc157f913fb8f8d1e7a04833c26bf00bba1ab.tar.gz
SledjHamr-808dc157f913fb8f8d1e7a04833c26bf00bba1ab.tar.bz2
SledjHamr-808dc157f913fb8f8d1e7a04833c26bf00bba1ab.tar.xz
Split up extantz.
Diffstat (limited to 'build.lua')
-rwxr-xr-xbuild.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.lua b/build.lua
index 414ebfa..359dbe8 100755
--- a/build.lua
+++ b/build.lua
@@ -27,7 +27,7 @@ runCommand = function (name, dir, command)
27 os.execute('cd ' .. dir .. '; ' .. command) 27 os.execute('cd ' .. dir .. '; ' .. command)
28end 28end
29 29
30compileFiles = function (name, dir, files) 30compileFiles = function (name, dir, files, extras)
31 local objects = '' 31 local objects = ''
32 print('\n' .. name) 32 print('\n' .. name)
33 for i, v in ipairs(files) do 33 for i, v in ipairs(files) do
@@ -35,7 +35,7 @@ compileFiles = function (name, dir, files)
35 os.execute('cd ' .. dir .. '; gcc ' .. CFLAGS .. ' -c -o ' .. v .. '.o ' .. v .. '.c') 35 os.execute('cd ' .. dir .. '; gcc ' .. CFLAGS .. ' -c -o ' .. v .. '.o ' .. v .. '.c')
36 objects = objects .. ' ' .. v .. '.o' 36 objects = objects .. ' ' .. v .. '.o'
37 end 37 end
38 os.execute('cd ' .. dir .. '; gcc ' .. CFLAGS .. ' -o ' .. name .. ' ' .. objects .. ' ' .. LDFLAGS .. ' ' .. libs) 38 os.execute('cd ' .. dir .. '; gcc ' .. CFLAGS .. ' -o ' .. name .. ' ' .. objects .. ' ' .. extras .. ' ' .. LDFLAGS .. ' ' .. libs)
39end 39end
40 40
41local buildSub = function (name, dir) 41local buildSub = function (name, dir)
@@ -88,7 +88,7 @@ if 'nil' == type(args) then
88 -- Building this passes my "holding breath" test, if it can compile while I'm holding my breath, no need for make files. 88 -- Building this passes my "holding breath" test, if it can compile while I'm holding my breath, no need for make files.
89 print('_______________ BUILDING lemon _______________') 89 print('_______________ BUILDING lemon _______________')
90 removeFiles('libraries/lemon', {'*.o', 'lemon'}) 90 removeFiles('libraries/lemon', {'*.o', 'lemon'})
91 compileFiles('lemon', 'libraries/lemon', {'lemon'}) 91 compileFiles('lemon', 'libraries/lemon', {'lemon'}, '')
92 print('_______________ BUILDING Irrlicht _______________') 92 print('_______________ BUILDING Irrlicht _______________')
93 -- Irrlicht is an external project that comes with make files anyway, and doesn't otherwise pass the test. 93 -- Irrlicht is an external project that comes with make files anyway, and doesn't otherwise pass the test.
94 runCommand('Irrlicht','libraries/irrlicht-1.8.1/source/Irrlicht', 'make') 94 runCommand('Irrlicht','libraries/irrlicht-1.8.1/source/Irrlicht', 'make')