From 4a7fb771bd8a2e3d00dab031f88e15c92a6be184 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 13 May 2014 12:03:16 +1000 Subject: 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. --- src/love/build.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 src/love/build.lua (limited to 'src/love/build.lua') 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 @@ +#!/usr/bin/env lua + +local dir = ... + +if 'nil' == type(dir) then + local build, err = loadfile('../../build.lua') + if build then + setfenv(build, getfenv(2)) + build(2) + else + print("ERROR - " .. err) + end + dir = workingDir +end + + +removeFiles(dir, {'../../love', '*.o', '../../media/love.edj'}) + +runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' love.edc ../../media/love.edj') + +-- While SledHamr.c does this, we can't use that here, coz love is not an Elm app. +CFLAGS = CFLAGS .. ' -DPACKAGE_BIN_DIR=\\"' .. bin_d .. '\\"' +CFLAGS = CFLAGS .. ' -DPACKAGE_LIB_DIR=\\"' .. lib_d .. '\\"' +CFLAGS = CFLAGS .. ' -DPACKAGE_DATA_DIR=\\"' .. data_d .. '\\"' +CFLAGS = CFLAGS .. ' -DPACKAGE_LOCALE_DIR=\\"' .. locale_d .. '\\"' + +compileFiles('../../love', dir, {'love', '../LuaSL/LuaSL_utilities'}, '') -- cgit v1.1