diff options
author | David Walter Seikel | 2016-03-28 23:43:36 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-03-28 23:43:36 +1000 |
commit | c616d02cb6193e41ea6d0d1bbc98bc3b6c1b8614 (patch) | |
tree | 816e2be732bea46bd3bc773cd6df0f4623953415 | |
parent | Move some scripts to the bin directory. (diff) | |
download | SledjHamr-c616d02cb6193e41ea6d0d1bbc98bc3b6c1b8614.zip SledjHamr-c616d02cb6193e41ea6d0d1bbc98bc3b6c1b8614.tar.gz SledjHamr-c616d02cb6193e41ea6d0d1bbc98bc3b6c1b8614.tar.bz2 SledjHamr-c616d02cb6193e41ea6d0d1bbc98bc3b6c1b8614.tar.xz |
Move executables to the bin directory.
-rw-r--r-- | .gitignore | 8 | ||||
-rwxr-xr-x | bin/unpacker.lua | 2 | ||||
-rwxr-xr-x | build.lua | 4 | ||||
l--------- | media/Irrlicht | 2 | ||||
-rwxr-xr-x | src/GuiLua/build.lua | 4 | ||||
-rwxr-xr-x | src/LuaSL/build.lua | 2 | ||||
-rwxr-xr-x | src/extantz/build.lua | 10 | ||||
-rw-r--r-- | src/extantz/extantz.c | 4 | ||||
-rwxr-xr-x | src/libraries/build.lua | 4 | ||||
-rwxr-xr-x | src/love/build.lua | 6 | ||||
-rw-r--r-- | src/love/love.c | 3 | ||||
-rwxr-xr-x | test.sh | 5 |
12 files changed, 27 insertions, 27 deletions
@@ -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' |
@@ -66,7 +66,7 @@ if 'number' == type(args) then | |||
66 | end | 66 | end |
67 | end | 67 | end |
68 | 68 | ||
69 | bin_d = baseDir | 69 | bin_d = baseDir .. '/bin' |
70 | lib_d = baseDir .. '/lib' | 70 | lib_d = baseDir .. '/lib' |
71 | data_d = baseDir .. '/media' | 71 | data_d = baseDir .. '/media' |
72 | locale_d = baseDir .. '/locale' | 72 | locale_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 | ||
16 | LDFLAGS = '-L ' .. dir .. ' ' .. LDFLAGS | 16 | LDFLAGS = '-L ' .. dir .. ' ' .. LDFLAGS |
17 | 17 | ||
18 | removeFiles(dir, {'test_c.so', 'GuiLua.o', lib_d .. '/libGuiLua.so', '../../skang'}) | 18 | removeFiles(dir, {'test_c.so', 'GuiLua.o', lib_d .. '/libGuiLua.so', bin_d .. '/skang'}) |
19 | 19 | ||
20 | runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -fPIC -c GuiLua.c') | 20 | runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -fPIC -c GuiLua.c') |
21 | runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libGuiLua.so -o ' .. lib_d .. '/libGuiLua.so GuiLua.o') | 21 | runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libGuiLua.so -o ' .. lib_d .. '/libGuiLua.so GuiLua.o') |
22 | runCommand('C apps', dir, 'gcc ' .. CFLAGS .. ' -Wl,-export-dynamic -o ../../skang skang.c ' .. LDFLAGS .. ' -lGuiLua ' .. libs) | 22 | runCommand('C apps', dir, 'gcc ' .. CFLAGS .. ' -Wl,-export-dynamic -o ' .. bin_d .. '/skang skang.c ' .. LDFLAGS .. ' -lGuiLua ' .. libs) |
23 | runCommand('C modules', dir, 'gcc ' .. CFLAGS .. ' -fPIC -shared -o test_c.so test_c.c') | 23 | runCommand('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 | |||
19 | compileFiles('lemon', dir .. '/../others/lemon', {'lemon'}, '') | 19 | compileFiles('lemon', dir .. '/../others/lemon', {'lemon'}, '') |
20 | runCommand('lemon', dir, '../others/lemon/lemon -qs -T../others/lemon/lempar.c LuaSL_lemon_yaccer.y') | 20 | runCommand('lemon', dir, '../others/lemon/lemon -qs -T../others/lemon/lempar.c LuaSL_lemon_yaccer.y') |
21 | runCommand('flex', dir, 'flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l') | 21 | runCommand('flex', dir, 'flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l') |
22 | compileFiles('../../LuaSL', dir, {'LuaSL_main', 'LuaSL_compile', 'LuaSL_lexer', 'LuaSL_lemon_yaccer'}, '') | 22 | compileFiles(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 | |||
19 | CFLAGS = CFLAGS .. ' -I/usr/X11R6/include -I../GuiLua' | 19 | CFLAGS = CFLAGS .. ' -I/usr/X11R6/include -I../GuiLua' |
20 | libs = libs .. ' -lephysics -lGuiLua' | 20 | libs = 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'}) |
23 | removeFiles(dir, {'../../media/extantz.edj'}) | 23 | removeFiles(dir, {data_d .. '/extantz.edj'}) |
24 | 24 | ||
25 | runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' extantz.edc ../../media/extantz.edj') | 25 | runCommand('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) |
29 | CFLAGS = CFLAGS .. ' -Wl,-export-dynamic' | 29 | CFLAGS = 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') |
31 | compileFiles('../../extantz', dir, {'gears', 'ephysics_demo', 'camera', 'files', 'scenri', 'woMan', 'extantz'}, '') | 31 | compileFiles(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; | |||
538 | static Eina_Bool _makeSkang(void *data) | 538 | static 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 | ||
22 | LDFLAGS = '-L ' .. dir .. ' ' .. LDFLAGS | 22 | LDFLAGS = '-L ' .. dir .. ' ' .. LDFLAGS |
23 | 23 | ||
24 | removeFiles(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'}) | 24 | removeFiles(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 | ||
26 | runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -fPIC -c LumbrJack.c') | 26 | runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -fPIC -c LumbrJack.c') |
27 | runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libLumbrJack.so -o ' .. lib_d .. '/libLumbrJack.so LumbrJack.o') | 27 | runCommand(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 | |||
33 | runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c SledjHamr.c') | 33 | runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c SledjHamr.c') |
34 | runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libSledjHamr.so -o ' .. lib_d .. '/libSledjHamr.so SledjHamr.o') | 34 | runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libSledjHamr.so -o ' .. lib_d .. '/libSledjHamr.so SledjHamr.o') |
35 | 35 | ||
36 | runCommand(nil, dir, 'edje_cc ' .. EDJE_FLAGS .. ' winFang.edc ../../media/winFang.edj') | 36 | runCommand(nil, dir, 'edje_cc ' .. EDJE_FLAGS .. ' winFang.edc ' .. data_d .. '/winFang.edj') |
37 | runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c winFang.c') | 37 | runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c winFang.c') |
38 | runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libwinFang.so -o ' .. lib_d .. '/libwinFang.so winFang.o') | 38 | runCommand(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 | |||
14 | end | 14 | end |
15 | 15 | ||
16 | 16 | ||
17 | removeFiles(dir, {'../../media/love.edj'}) | 17 | removeFiles(dir, {data_d .. '/love.edj'}) |
18 | 18 | ||
19 | runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' love.edc ../../media/love.edj') | 19 | runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' love.edc ' .. data_d .. '/love.edj') |
20 | compileFiles('../../love', dir, {'love'}, '') | 20 | compileFiles(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)) |
@@ -4,13 +4,10 @@ reset | |||
4 | 4 | ||
5 | wd=$(pwd) | 5 | wd=$(pwd) |
6 | 6 | ||
7 | ./killem.sh | ||
8 | sleep 1 | ||
9 | |||
10 | ./build.lua || exit | 7 | ./build.lua || exit |
11 | 8 | ||
12 | echo "_______________ TESTING extantz, love and LuaSL _______________" | 9 | echo "_______________ TESTING extantz, love and LuaSL _______________" |
13 | ./LuaSL & sleep 2 && ./love & sleep 1 && ./extantz & | 10 | bin/LuaSL & sleep 2 && bin/love & sleep 1 && bin/extantz & |
14 | sleep 30 | 11 | sleep 30 |
15 | 12 | ||
16 | echo "_______________ TESTING GuiLua _______________" | 13 | echo "_______________ TESTING GuiLua _______________" |