aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-03-28 23:43:36 +1000
committerDavid Walter Seikel2016-03-28 23:43:36 +1000
commitc616d02cb6193e41ea6d0d1bbc98bc3b6c1b8614 (patch)
tree816e2be732bea46bd3bc773cd6df0f4623953415
parentMove some scripts to the bin directory. (diff)
downloadSledjHamr-c616d02cb6193e41ea6d0d1bbc98bc3b6c1b8614.zip
SledjHamr-c616d02cb6193e41ea6d0d1bbc98bc3b6c1b8614.tar.gz
SledjHamr-c616d02cb6193e41ea6d0d1bbc98bc3b6c1b8614.tar.bz2
SledjHamr-c616d02cb6193e41ea6d0d1bbc98bc3b6c1b8614.tar.xz
Move executables to the bin directory.
Diffstat (limited to '')
-rw-r--r--.gitignore8
-rwxr-xr-xbin/unpacker.lua2
-rwxr-xr-xbuild.lua4
l---------media/Irrlicht2
-rwxr-xr-xsrc/GuiLua/build.lua4
-rwxr-xr-xsrc/LuaSL/build.lua2
-rwxr-xr-xsrc/extantz/build.lua10
-rw-r--r--src/extantz/extantz.c4
-rwxr-xr-xsrc/libraries/build.lua4
-rwxr-xr-xsrc/love/build.lua6
-rw-r--r--src/love/love.c3
-rwxr-xr-xtest.sh5
12 files changed, 27 insertions, 27 deletions
diff --git a/.gitignore b/.gitignore
index 9117d23..1f90be4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,8 @@
1/docs/SledjHamr/XMRE.txt 1/docs/SledjHamr/XMRE.txt
2/extantz 2/bin/extantz
3/love 3/bin/love
4/LuaSL 4/bin/LuaSL
5/skang 5/bin/skang
6/src/others/irrlicht-1.8.1/bin/Linux/01.HelloWorld 6/src/others/irrlicht-1.8.1/bin/Linux/01.HelloWorld
7/src/others/irrlicht-1.8.1/lib/Linux/libIrrlicht.a 7/src/others/irrlicht-1.8.1/lib/Linux/libIrrlicht.a
8/src/others/irrlicht-1.8.1/source/Irrlicht/C3DSMeshFileLoader.d 8/src/others/irrlicht-1.8.1/source/Irrlicht/C3DSMeshFileLoader.d
diff --git a/bin/unpacker.lua b/bin/unpacker.lua
index c60ef30..e35c2dc 100755
--- a/bin/unpacker.lua
+++ b/bin/unpacker.lua
@@ -26,7 +26,7 @@ end
26--baseDir = workingDir 26--baseDir = workingDir
27--baseDir = string.gsub(baseDir, '(.*)/.-$', '%1') 27--baseDir = string.gsub(baseDir, '(.*)/.-$', '%1')
28 28
29--bin_d = baseDir .. '' 29--bin_d = baseDir .. '/bin'
30--lib_d = baseDir .. '/lib' 30--lib_d = baseDir .. '/lib'
31--data_d = baseDir .. '/media' 31--data_d = baseDir .. '/media'
32--locale_d = baseDir .. '/locale' 32--locale_d = baseDir .. '/locale'
diff --git a/build.lua b/build.lua
index 19168fd..bc32ad8 100755
--- a/build.lua
+++ b/build.lua
@@ -66,7 +66,7 @@ if 'number' == type(args) then
66 end 66 end
67end 67end
68 68
69bin_d = baseDir 69bin_d = baseDir .. '/bin'
70lib_d = baseDir .. '/lib' 70lib_d = baseDir .. '/lib'
71data_d = baseDir .. '/media' 71data_d = baseDir .. '/media'
72locale_d = baseDir .. '/locale' 72locale_d = baseDir .. '/locale'
@@ -94,7 +94,7 @@ if 'nil' == type(args) then
94 94
95-- print('_______________ BUILDING Irrlicht _______________') 95-- print('_______________ BUILDING Irrlicht _______________')
96 -- Irrlicht is an external project that comes with make files anyway, and doesn't otherwise pass the test. 96 -- Irrlicht is an external project that comes with make files anyway, and doesn't otherwise pass the test.
97-- runCommand('Irrlicht','libraries/irrlicht-1.8.1/source/Irrlicht', 'make') 97-- runCommand('Irrlicht','src/others/irrlicht-1.8.1/source/Irrlicht', 'make')
98 buildSub('libraries', 'src/libraries') 98 buildSub('libraries', 'src/libraries')
99 buildSub('LuaSL', 'src/LuaSL') 99 buildSub('LuaSL', 'src/LuaSL')
100 buildSub('love', 'src/love') 100 buildSub('love', 'src/love')
diff --git a/media/Irrlicht b/media/Irrlicht
index cd9b2c2..e5d14cf 120000
--- a/media/Irrlicht
+++ b/media/Irrlicht
@@ -1 +1 @@
../libraries/irrlicht-1.8.1/media \ No newline at end of file ../src/others/irrlicht-1.8.1/media \ No newline at end of file
diff --git a/src/GuiLua/build.lua b/src/GuiLua/build.lua
index c0215b5..f6e6d81 100755
--- a/src/GuiLua/build.lua
+++ b/src/GuiLua/build.lua
@@ -15,9 +15,9 @@ end
15 15
16LDFLAGS = '-L ' .. dir .. ' ' .. LDFLAGS 16LDFLAGS = '-L ' .. dir .. ' ' .. LDFLAGS
17 17
18removeFiles(dir, {'test_c.so', 'GuiLua.o', lib_d .. '/libGuiLua.so', '../../skang'}) 18removeFiles(dir, {'test_c.so', 'GuiLua.o', lib_d .. '/libGuiLua.so', bin_d .. '/skang'})
19 19
20runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -fPIC -c GuiLua.c') 20runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -fPIC -c GuiLua.c')
21runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libGuiLua.so -o ' .. lib_d .. '/libGuiLua.so GuiLua.o') 21runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libGuiLua.so -o ' .. lib_d .. '/libGuiLua.so GuiLua.o')
22runCommand('C apps', dir, 'gcc ' .. CFLAGS .. ' -Wl,-export-dynamic -o ../../skang skang.c ' .. LDFLAGS .. ' -lGuiLua ' .. libs) 22runCommand('C apps', dir, 'gcc ' .. CFLAGS .. ' -Wl,-export-dynamic -o ' .. bin_d .. '/skang skang.c ' .. LDFLAGS .. ' -lGuiLua ' .. libs)
23runCommand('C modules', dir, 'gcc ' .. CFLAGS .. ' -fPIC -shared -o test_c.so test_c.c') 23runCommand('C modules', dir, 'gcc ' .. CFLAGS .. ' -fPIC -shared -o test_c.so test_c.c')
diff --git a/src/LuaSL/build.lua b/src/LuaSL/build.lua
index 3a45e9b..418f13b 100755
--- a/src/LuaSL/build.lua
+++ b/src/LuaSL/build.lua
@@ -19,4 +19,4 @@ removeFiles(dir, {'*.output', '*.backup', 'LuaSL_lexer.h', 'LuaSL_lexer.c', 'Lua
19compileFiles('lemon', dir .. '/../others/lemon', {'lemon'}, '') 19compileFiles('lemon', dir .. '/../others/lemon', {'lemon'}, '')
20runCommand('lemon', dir, '../others/lemon/lemon -qs -T../others/lemon/lempar.c LuaSL_lemon_yaccer.y') 20runCommand('lemon', dir, '../others/lemon/lemon -qs -T../others/lemon/lempar.c LuaSL_lemon_yaccer.y')
21runCommand('flex', dir, 'flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l') 21runCommand('flex', dir, 'flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l')
22compileFiles('../../LuaSL', dir, {'LuaSL_main', 'LuaSL_compile', 'LuaSL_lexer', 'LuaSL_lemon_yaccer'}, '') 22compileFiles(bin_d .. '/LuaSL', dir, {'LuaSL_main', 'LuaSL_compile', 'LuaSL_lexer', 'LuaSL_lemon_yaccer'}, '')
diff --git a/src/extantz/build.lua b/src/extantz/build.lua
index abb449e..d094f74 100755
--- a/src/extantz/build.lua
+++ b/src/extantz/build.lua
@@ -19,13 +19,13 @@ end
19CFLAGS = CFLAGS .. ' -I/usr/X11R6/include -I../GuiLua' 19CFLAGS = CFLAGS .. ' -I/usr/X11R6/include -I../GuiLua'
20libs = libs .. ' -lephysics -lGuiLua' 20libs = libs .. ' -lephysics -lGuiLua'
21 21
22--removeFiles(dir, {'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', '../../media/extantz.edj'}) 22--removeFiles(dir, {'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', data_d .. '/extantz.edj'})
23removeFiles(dir, {'../../media/extantz.edj'}) 23removeFiles(dir, {data_d .. '/extantz.edj'})
24 24
25runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' extantz.edc ../../media/extantz.edj') 25runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' extantz.edc ' .. data_d .. '/extantz.edj')
26--runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS) 26--runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS)
27--runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS) 27--runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS)
28--runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS) 28--runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS)
29CFLAGS = CFLAGS .. ' -Wl,-export-dynamic' 29CFLAGS = CFLAGS .. ' -Wl,-export-dynamic'
30--compileFiles('../../extantz', dir, {'gears', 'ephysics_demo', 'camera', 'files', 'scenri', 'woMan', 'extantz'}, 'crappisspuke.o CDemo.o extantzCamera.o') 30--compileFiles(bin_d .. '/extantz', dir, {'gears', 'ephysics_demo', 'camera', 'files', 'scenri', 'woMan', 'extantz'}, 'crappisspuke.o CDemo.o extantzCamera.o')
31compileFiles('../../extantz', dir, {'gears', 'ephysics_demo', 'camera', 'files', 'scenri', 'woMan', 'extantz'}, '') 31compileFiles(bin_d .. '/extantz', dir, {'gears', 'ephysics_demo', 'camera', 'files', 'scenri', 'woMan', 'extantz'}, '')
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c
index 159fcaf..1708a6c 100644
--- a/src/extantz/extantz.c
+++ b/src/extantz/extantz.c
@@ -538,6 +538,7 @@ int skangStep = 0;
538static Eina_Bool _makeSkang(void *data) 538static Eina_Bool _makeSkang(void *data)
539{ 539{
540 globals *ourGlobals = data; 540 globals *ourGlobals = data;
541 char buf[PATH_MAX];
541 542
542 switch (skangStep++) 543 switch (skangStep++)
543 { 544 {
@@ -567,7 +568,8 @@ static Eina_Bool _makeSkang(void *data)
567#if USE_LOVE 568#if USE_LOVE
568 case 5 : 569 case 5 :
569// PD("About to try connecting to a love server."); 570// PD("About to try connecting to a love server.");
570 reachOut("love", "./love", "127.0.0.1", 8211 + 1, ourGlobals, (Ecore_Event_Handler_Cb) _add, /*(Ecore_Event_Handler_Cb) _data*/ NULL, (Ecore_Event_Handler_Cb) _del, clientParser, NULL); 571 snprintf(buf, sizeof(buf), "%s/love", prefix_bin_get());
572 reachOut("love", buf, "127.0.0.1", 8211 + 1, ourGlobals, (Ecore_Event_Handler_Cb) _add, /*(Ecore_Event_Handler_Cb) _data*/ NULL, (Ecore_Event_Handler_Cb) _del, clientParser, NULL);
571 break; 573 break;
572#endif 574#endif
573 575
diff --git a/src/libraries/build.lua b/src/libraries/build.lua
index d0c0b46..ceb7771 100755
--- a/src/libraries/build.lua
+++ b/src/libraries/build.lua
@@ -21,7 +21,7 @@ CFLAGS = CFLAGS .. ' -DPACKAGE_LOCALE_DIR=\\"' .. locale_d .. '\\"'
21 21
22LDFLAGS = '-L ' .. dir .. ' ' .. LDFLAGS 22LDFLAGS = '-L ' .. dir .. ' ' .. LDFLAGS
23 23
24removeFiles(dir, {'LumbrJack.o', lib_d .. '/libLumbrJack.so', 'Runnr.o', lib_d .. '/libRunnr.so', 'SledjHamr.o', lib_d .. '/libSledjHamr.so', '../../media/winFang.edj', 'winFang.o', lib_d .. '/libwinFang.so'}) 24removeFiles(dir, {'LumbrJack.o', lib_d .. '/libLumbrJack.so', 'Runnr.o', lib_d .. '/libRunnr.so', 'SledjHamr.o', lib_d .. '/libSledjHamr.so', data_d .. '/winFang.edj', 'winFang.o', lib_d .. '/libwinFang.so'})
25 25
26runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -fPIC -c LumbrJack.c') 26runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -fPIC -c LumbrJack.c')
27runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libLumbrJack.so -o ' .. lib_d .. '/libLumbrJack.so LumbrJack.o') 27runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libLumbrJack.so -o ' .. lib_d .. '/libLumbrJack.so LumbrJack.o')
@@ -33,6 +33,6 @@ runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libRunnr.so -o
33runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c SledjHamr.c') 33runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c SledjHamr.c')
34runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libSledjHamr.so -o ' .. lib_d .. '/libSledjHamr.so SledjHamr.o') 34runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libSledjHamr.so -o ' .. lib_d .. '/libSledjHamr.so SledjHamr.o')
35 35
36runCommand(nil, dir, 'edje_cc ' .. EDJE_FLAGS .. ' winFang.edc ../../media/winFang.edj') 36runCommand(nil, dir, 'edje_cc ' .. EDJE_FLAGS .. ' winFang.edc ' .. data_d .. '/winFang.edj')
37runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c winFang.c') 37runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c winFang.c')
38runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libwinFang.so -o ' .. lib_d .. '/libwinFang.so winFang.o') 38runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libwinFang.so -o ' .. lib_d .. '/libwinFang.so winFang.o')
diff --git a/src/love/build.lua b/src/love/build.lua
index ff5bf7d..b5200b4 100755
--- a/src/love/build.lua
+++ b/src/love/build.lua
@@ -14,7 +14,7 @@ if 'nil' == type(dir) then
14end 14end
15 15
16 16
17removeFiles(dir, {'../../media/love.edj'}) 17removeFiles(dir, {data_d .. '/love.edj'})
18 18
19runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' love.edc ../../media/love.edj') 19runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' love.edc ' .. data_d .. '/love.edj')
20compileFiles('../../love', dir, {'love'}, '') 20compileFiles(bin_d .. '/love', dir, {'love'}, '')
diff --git a/src/love/love.c b/src/love/love.c
index 698726f..0c1a63d 100644
--- a/src/love/love.c
+++ b/src/love/love.c
@@ -666,7 +666,8 @@ int main(int argc, char **argv)
666 666
667// PD("About to try connecting to a LuaSL server."); 667// PD("About to try connecting to a LuaSL server.");
668 // Try to connect to a local LuaSL server. 668 // Try to connect to a local LuaSL server.
669 reachOut("LuaSL", "./LuaSL", "127.0.0.1", ourGlobals.port, &ourGlobals, (Ecore_Event_Handler_Cb) _addLuaSL, /*(Ecore_Event_Handler_Cb) _dataLuaSL*/ NULL, (Ecore_Event_Handler_Cb) _delLuaSL, LuaSLParser, NULL); 669 snprintf(buf, sizeof(buf), "%s/LuaSL", prefix_bin_get());
670 reachOut("LuaSL", buf, "127.0.0.1", ourGlobals.port, &ourGlobals, (Ecore_Event_Handler_Cb) _addLuaSL, /*(Ecore_Event_Handler_Cb) _dataLuaSL*/ NULL, (Ecore_Event_Handler_Cb) _delLuaSL, LuaSLParser, NULL);
670 671
671// PD("Love is about to try creating a love server."); 672// PD("Love is about to try creating a love server.");
672 if (openArms("love", ourGlobals.address, ourGlobals.port + 1, &ourGlobals, (Ecore_Event_Handler_Cb) _addClient, NULL, (Ecore_Event_Handler_Cb) _delClient, clientParser, NULL)) 673 if (openArms("love", ourGlobals.address, ourGlobals.port + 1, &ourGlobals, (Ecore_Event_Handler_Cb) _addClient, NULL, (Ecore_Event_Handler_Cb) _delClient, clientParser, NULL))
diff --git a/test.sh b/test.sh
index ed86835..96a50d6 100755
--- a/test.sh
+++ b/test.sh
@@ -4,13 +4,10 @@ reset
4 4
5wd=$(pwd) 5wd=$(pwd)
6 6
7./killem.sh
8sleep 1
9
10./build.lua || exit 7./build.lua || exit
11 8
12echo "_______________ TESTING extantz, love and LuaSL _______________" 9echo "_______________ TESTING extantz, love and LuaSL _______________"
13./LuaSL & sleep 2 && ./love & sleep 1 && ./extantz & 10bin/LuaSL & sleep 2 && bin/love & sleep 1 && bin/extantz &
14sleep 30 11sleep 30
15 12
16echo "_______________ TESTING GuiLua _______________" 13echo "_______________ TESTING GuiLua _______________"