diff options
author | David Walter Seikel | 2016-07-21 20:28:29 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-07-21 20:28:29 +1000 |
commit | a70a0e9c78b57d27ca00e7559dbbbd1216f017bf (patch) | |
tree | 6b4deb6d67df585e0c96b00a65220ac795376c3f | |
parent | Add script for building Lua (LuaJIT actually) (diff) | |
download | SledjHamr-a70a0e9c78b57d27ca00e7559dbbbd1216f017bf.zip SledjHamr-a70a0e9c78b57d27ca00e7559dbbbd1216f017bf.tar.gz SledjHamr-a70a0e9c78b57d27ca00e7559dbbbd1216f017bf.tar.bz2 SledjHamr-a70a0e9c78b57d27ca00e7559dbbbd1216f017bf.tar.xz |
Update Lua building stuff.
-rwxr-xr-x | build.lua | 8 | ||||
-rw-r--r-- | src/others/luajit.pc | 25 |
2 files changed, 30 insertions, 3 deletions
@@ -81,17 +81,19 @@ locale_d = baseDir .. '/locale' | |||
81 | CFLAGOPTS = readCommand('echo "$CFLAGOPTS"') | 81 | CFLAGOPTS = readCommand('echo "$CFLAGOPTS"') |
82 | 82 | ||
83 | -- Make sure any old servers are killed off. | 83 | -- Make sure any old servers are killed off. |
84 | os.execute(baseDir .. '/bin//killem.sh') | 84 | os.execute(baseDir .. '/bin/killem.sh') |
85 | 85 | ||
86 | CFLAGS = '-g -Wall -I ' .. baseDir .. '/src/libraries' | 86 | CFLAGS = '-g -Wall -I ' .. baseDir .. '/src/libraries' |
87 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'luajit') | 87 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'luajit') |
88 | --CFLAGS = CFLAGS .. ' ' .. '-I ' .. baseDir .. '/include/luajit-2.0' | ||
88 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'elementary') | 89 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'elementary') |
89 | CFLAGS = CFLAGS .. ' ' .. CFLAGOPTS | 90 | CFLAGS = CFLAGS .. ' ' .. CFLAGOPTS |
90 | 91 | ||
91 | LDFLAGS = '-L ' .. baseDir .. '/lib ' .. pkgConfig('libs-only-L', 'luajit') | 92 | --LDFLAGS = '-L ' .. baseDir .. '/lib ' |
93 | LDFLAGS = '-L ' .. baseDir .. '/lib ' .. pkgConfig('libs-only-L', 'luajit') .. ' ' | ||
92 | libs = '-lLumbrJack -lRunnr -lSledjHamr -lwinFang ' .. pkgConfig('libs', 'elementary') .. ' ' .. pkgConfig('libs', 'luajit') .. ' -lm -Wl,-rpath,' .. baseDir .. '/lib -ldl' | 94 | libs = '-lLumbrJack -lRunnr -lSledjHamr -lwinFang ' .. pkgConfig('libs', 'elementary') .. ' ' .. pkgConfig('libs', 'luajit') .. ' -lm -Wl,-rpath,' .. baseDir .. '/lib -ldl' |
93 | LFLAGS = '-d' | 95 | LFLAGS = '-d' |
94 | EDJE_FLAGS = '-id ' .. baseDir .. '/media/images -fd ' .. baseDir .. '/media' | 96 | EDJE_FLAGS = '-id ' .. baseDir .. '/media/images -fd ' .. baseDir .. '/media/fonts' |
95 | 97 | ||
96 | 98 | ||
97 | if 'nil' == type(args) then | 99 | if 'nil' == type(args) then |
diff --git a/src/others/luajit.pc b/src/others/luajit.pc new file mode 100644 index 0000000..2e98b78 --- /dev/null +++ b/src/others/luajit.pc | |||
@@ -0,0 +1,25 @@ | |||
1 | # Package information for LuaJIT to be used by pkg-config. | ||
2 | majver=2 | ||
3 | minver=0 | ||
4 | relver=4 | ||
5 | version=${majver}.${minver}.${relver} | ||
6 | abiver=5.1 | ||
7 | |||
8 | prefix=/usr/local/ | ||
9 | multilib=lib | ||
10 | exec_prefix=${prefix} | ||
11 | libdir=${exec_prefix}/${multilib} | ||
12 | libname=luajit-${abiver} | ||
13 | includedir=${prefix}/include/luajit-${majver}.${minver} | ||
14 | |||
15 | INSTALL_LMOD=${prefix}/share/lua/${abiver} | ||
16 | INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver} | ||
17 | |||
18 | Name: LuaJIT | ||
19 | Description: Just-in-time compiler for Lua | ||
20 | URL: http://luajit.org | ||
21 | Version: ${version} | ||
22 | Requires: | ||
23 | Libs: -L${libdir} -l${libname} | ||
24 | Libs.private: -Wl,-E -lm -ldl | ||
25 | Cflags: -I${includedir} | ||