diff options
author | David Walter Seikel | 2014-04-22 15:28:00 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-04-22 15:28:00 +1000 |
commit | 04aad7d4781335c6abbc94a6fe677208b87dee82 (patch) | |
tree | d2a06507f345b6be52df52ded2670c5bec9d0150 | |
parent | Move all source into the new src directory, and shuffle a few other things ar... (diff) | |
download | SledjHamr-04aad7d4781335c6abbc94a6fe677208b87dee82.zip SledjHamr-04aad7d4781335c6abbc94a6fe677208b87dee82.tar.gz SledjHamr-04aad7d4781335c6abbc94a6fe677208b87dee82.tar.bz2 SledjHamr-04aad7d4781335c6abbc94a6fe677208b87dee82.tar.xz |
Move skang to libraries and base directory.
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | libraries/skang.lua (renamed from src/GuiLua/skang.lua) | 0 | ||||
-rwxr-xr-x | src/GuiLua/build.lua | 4 | ||||
-rwxr-xr-x | src/GuiLua/test.sh | 5 |
4 files changed, 7 insertions, 4 deletions
@@ -1,7 +1,7 @@ | |||
1 | /docs/XMRE.txt | 1 | /docs/XMRE.txt |
2 | extantz | 2 | extantz |
3 | LuaSL | 3 | LuaSL |
4 | /src/GuiLua/skang | 4 | skang |
5 | /libraries/irrlicht-1.8.1/bin/Linux/01.HelloWorld | 5 | /libraries/irrlicht-1.8.1/bin/Linux/01.HelloWorld |
6 | /libraries/irrlicht-1.8.1/lib/Linux/libIrrlicht.a | 6 | /libraries/irrlicht-1.8.1/lib/Linux/libIrrlicht.a |
7 | /libraries/irrlicht-1.8.1/source/Irrlicht/C3DSMeshFileLoader.d | 7 | /libraries/irrlicht-1.8.1/source/Irrlicht/C3DSMeshFileLoader.d |
diff --git a/src/GuiLua/skang.lua b/libraries/skang.lua index 23549c3..23549c3 100644 --- a/src/GuiLua/skang.lua +++ b/libraries/skang.lua | |||
diff --git a/src/GuiLua/build.lua b/src/GuiLua/build.lua index 7e1da15..16f4153 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', '../../libraries/libGuiLua.so', 'skang'}) | 18 | removeFiles(dir, {'test_c.so', 'GuiLua.o', '../../libraries/libGuiLua.so', '../../skang'}) |
19 | 19 | ||
20 | runCommand('C modules', dir, 'gcc ' .. CFLAGS .. ' -fPIC -shared -o test_c.so test_c.c') | 20 | runCommand('C modules', dir, 'gcc ' .. CFLAGS .. ' -fPIC -shared -o test_c.so test_c.c') |
21 | runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c GuiLua.c') | 21 | runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c GuiLua.c') |
22 | runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libGuiLua.so -o ../../libraries/libGuiLua.so GuiLua.o') | 22 | runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libGuiLua.so -o ../../libraries/libGuiLua.so GuiLua.o') |
23 | runCommand('C apps', dir, 'gcc ' .. CFLAGS .. ' -Wl,-export-dynamic -o skang skang.c ' .. LDFLAGS .. ' -lGuiLua ' .. libs) | 23 | runCommand('C apps', dir, 'gcc ' .. CFLAGS .. ' -Wl,-export-dynamic -o ../../skang skang.c ' .. LDFLAGS .. ' -lGuiLua ' .. libs) |
diff --git a/src/GuiLua/test.sh b/src/GuiLua/test.sh index 1effdb3..bea2fc3 100755 --- a/src/GuiLua/test.sh +++ b/src/GuiLua/test.sh | |||
@@ -1,3 +1,6 @@ | |||
1 | #! /bin/bash | 1 | #! /bin/bash |
2 | 2 | ||
3 | ./skang -l test -foo "argy bargy" | 3 | wd=$(pwd) |
4 | |||
5 | export LUA_PATH="$wd/../../libraries/?.lua;./?.lua" | ||
6 | ../../skang -l test -foo "argy bargy" | ||