diff options
Diffstat (limited to '')
-rwxr-xr-x | build.lua | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -58,11 +58,16 @@ if 'number' == type(args) then | |||
58 | end | 58 | end |
59 | end | 59 | end |
60 | 60 | ||
61 | bin_d = baseDir | ||
62 | lib_d = baseDir .. '/lib' | ||
63 | data_d = baseDir .. '/media' | ||
64 | locale_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. |
63 | CFLAGOPTS = readCommand('echo "$CFLAGOPTS"') | 68 | CFLAGOPTS = readCommand('echo "$CFLAGOPTS"') |
64 | 69 | ||
65 | CFLAGS = '-g -Wall -I include -I ' .. baseDir .. '/libraries' | 70 | CFLAGS = '-g -Wall -I ' .. baseDir .. '/src/libraries' |
66 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'luajit') | 71 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'luajit') |
67 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'eo') | 72 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'eo') |
68 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'eet') | 73 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'eet') |
@@ -71,13 +76,10 @@ CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'ecore-evas') | |||
71 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'ecore-file') | 76 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'ecore-file') |
72 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'edje') | 77 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'edje') |
73 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'elementary') | 78 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'elementary') |
74 | CFLAGS = CFLAGS .. ' -DPACKAGE_BIN_DIR=\\"' .. baseDir .. '\\"' | ||
75 | CFLAGS = CFLAGS .. ' -DPACKAGE_LIB_DIR=\\"' .. baseDir .. '\\"' | ||
76 | CFLAGS = CFLAGS .. ' -DPACKAGE_DATA_DIR=\\"' .. baseDir .. '\\"' | ||
77 | CFLAGS = CFLAGS .. ' ' .. CFLAGOPTS | 79 | CFLAGS = CFLAGS .. ' ' .. CFLAGOPTS |
78 | 80 | ||
79 | LDFLAGS = '-L ' .. baseDir .. '/libraries ' .. pkgConfig('libs-only-L', 'luajit') .. ' -L /usr/lib -L /lib' | 81 | LDFLAGS = '-L ' .. baseDir .. '/lib ' .. pkgConfig('libs-only-L', 'luajit') .. ' -L /usr/lib -L /lib' |
80 | libs = '-lLumbrJack -lRunnr ' .. pkgConfig('libs', 'elementary') .. ' ' .. pkgConfig('libs', 'luajit') .. ' -lpthread -lm -Wl,-rpath,' .. baseDir .. '/libraries' | 82 | libs = '-lLumbrJack -lRunnr -lSledjHamr ' .. pkgConfig('libs', 'elementary') .. ' ' .. pkgConfig('libs', 'luajit') .. ' -lpthread -lm -Wl,-rpath,' .. baseDir .. '/lib' |
81 | LFLAGS = '-d' | 83 | LFLAGS = '-d' |
82 | EDJE_FLAGS = '-id ' .. baseDir .. '/media -fd ' .. baseDir .. '/media' | 84 | EDJE_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') |