aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbuild.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/build.lua b/build.lua
index 083d726..414ebfa 100755
--- a/build.lua
+++ b/build.lua
@@ -58,11 +58,16 @@ if 'number' == type(args) then
58 end 58 end
59end 59end
60 60
61bin_d = baseDir
62lib_d = baseDir .. '/lib'
63data_d = baseDir .. '/media'
64locale_d = baseDir .. '/locale'
65
61-- Likely this will fail, coz Lua likes to strip out environmont variables. 66-- Likely this will fail, coz Lua likes to strip out environmont variables.
62-- On the other hand, there's a more direct way to get to environment variables, it would fail to. 67-- On the other hand, there's a more direct way to get to environment variables, it would fail to.
63CFLAGOPTS = readCommand('echo "$CFLAGOPTS"') 68CFLAGOPTS = readCommand('echo "$CFLAGOPTS"')
64 69
65CFLAGS = '-g -Wall -I include -I ' .. baseDir .. '/libraries' 70CFLAGS = '-g -Wall -I ' .. baseDir .. '/src/libraries'
66CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'luajit') 71CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'luajit')
67CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'eo') 72CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'eo')
68CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'eet') 73CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'eet')
@@ -71,13 +76,10 @@ CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'ecore-evas')
71CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'ecore-file') 76CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'ecore-file')
72CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'edje') 77CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'edje')
73CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'elementary') 78CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'elementary')
74CFLAGS = CFLAGS .. ' -DPACKAGE_BIN_DIR=\\"' .. baseDir .. '\\"'
75CFLAGS = CFLAGS .. ' -DPACKAGE_LIB_DIR=\\"' .. baseDir .. '\\"'
76CFLAGS = CFLAGS .. ' -DPACKAGE_DATA_DIR=\\"' .. baseDir .. '\\"'
77CFLAGS = CFLAGS .. ' ' .. CFLAGOPTS 79CFLAGS = CFLAGS .. ' ' .. CFLAGOPTS
78 80
79LDFLAGS = '-L ' .. baseDir .. '/libraries ' .. pkgConfig('libs-only-L', 'luajit') .. ' -L /usr/lib -L /lib' 81LDFLAGS = '-L ' .. baseDir .. '/lib ' .. pkgConfig('libs-only-L', 'luajit') .. ' -L /usr/lib -L /lib'
80libs = '-lLumbrJack -lRunnr ' .. pkgConfig('libs', 'elementary') .. ' ' .. pkgConfig('libs', 'luajit') .. ' -lpthread -lm -Wl,-rpath,' .. baseDir .. '/libraries' 82libs = '-lLumbrJack -lRunnr -lSledjHamr ' .. pkgConfig('libs', 'elementary') .. ' ' .. pkgConfig('libs', 'luajit') .. ' -lpthread -lm -Wl,-rpath,' .. baseDir .. '/lib'
81LFLAGS = '-d' 83LFLAGS = '-d'
82EDJE_FLAGS = '-id ' .. baseDir .. '/media -fd ' .. baseDir .. '/media' 84EDJE_FLAGS = '-id ' .. baseDir .. '/media -fd ' .. baseDir .. '/media'
83 85
@@ -90,7 +92,7 @@ if 'nil' == type(args) then
90 print('_______________ BUILDING Irrlicht _______________') 92 print('_______________ BUILDING Irrlicht _______________')
91 -- 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.
92 runCommand('Irrlicht','libraries/irrlicht-1.8.1/source/Irrlicht', 'make') 94 runCommand('Irrlicht','libraries/irrlicht-1.8.1/source/Irrlicht', 'make')
93 buildSub('libraries', 'libraries') 95 buildSub('libraries', 'src/libraries')
94 buildSub('LuaSL', 'src/LuaSL') 96 buildSub('LuaSL', 'src/LuaSL')
95 buildSub('GuiLua', 'src/GuiLua') 97 buildSub('GuiLua', 'src/GuiLua')
96 buildSub('extantz', 'src/extantz') 98 buildSub('extantz', 'src/extantz')