aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/love/build.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-13 12:03:16 +1000
committerDavid Walter Seikel2014-05-13 12:03:16 +1000
commit4a7fb771bd8a2e3d00dab031f88e15c92a6be184 (patch)
tree8787beaff5d2596e08f1f7e835dd1d49f41258d9 /src/love/build.lua
parentMove poor mans introspection into winFang.c, and use it in purkle. (diff)
downloadSledjHamr-4a7fb771bd8a2e3d00dab031f88e15c92a6be184.zip
SledjHamr-4a7fb771bd8a2e3d00dab031f88e15c92a6be184.tar.gz
SledjHamr-4a7fb771bd8a2e3d00dab031f88e15c92a6be184.tar.bz2
SledjHamr-4a7fb771bd8a2e3d00dab031f88e15c92a6be184.tar.xz
Add some love, er I mean, add the love world server, coz love makes the world go around.
Actually, it's just the old LuaSL_test harness, but half of that is the love server anyway, the other half is just test harness.
Diffstat (limited to 'src/love/build.lua')
-rwxr-xr-xsrc/love/build.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/love/build.lua b/src/love/build.lua
new file mode 100755
index 0000000..c1a52e2
--- /dev/null
+++ b/src/love/build.lua
@@ -0,0 +1,27 @@
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(2)
10 else
11 print("ERROR - " .. err)
12 end
13 dir = workingDir
14end
15
16
17removeFiles(dir, {'../../love', '*.o', '../../media/love.edj'})
18
19runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' love.edc ../../media/love.edj')
20
21-- While SledHamr.c does this, we can't use that here, coz love is not an Elm app.
22CFLAGS = CFLAGS .. ' -DPACKAGE_BIN_DIR=\\"' .. bin_d .. '\\"'
23CFLAGS = CFLAGS .. ' -DPACKAGE_LIB_DIR=\\"' .. lib_d .. '\\"'
24CFLAGS = CFLAGS .. ' -DPACKAGE_DATA_DIR=\\"' .. data_d .. '\\"'
25CFLAGS = CFLAGS .. ' -DPACKAGE_LOCALE_DIR=\\"' .. locale_d .. '\\"'
26
27compileFiles('../../love', dir, {'love', '../LuaSL/LuaSL_utilities'}, '')