diff options
author | David Walter Seikel | 2014-04-21 18:59:33 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-04-21 18:59:33 +1000 |
commit | 6099a79ef6397ca80cc892fecbfe7faf5b49cb00 (patch) | |
tree | fcfa1ca724cf5e68deddc808ed965ac68c4c4071 | |
parent | Convert LuaSL to use LumbrJack. (diff) | |
download | SledjHamr-6099a79ef6397ca80cc892fecbfe7faf5b49cb00.zip SledjHamr-6099a79ef6397ca80cc892fecbfe7faf5b49cb00.tar.gz SledjHamr-6099a79ef6397ca80cc892fecbfe7faf5b49cb00.tar.bz2 SledjHamr-6099a79ef6397ca80cc892fecbfe7faf5b49cb00.tar.xz |
Move images to the base directory, and point all the special EFL directories to the base.
-rwxr-xr-x | ClientHamr/extantz/build.lua | 4 | ||||
-rw-r--r-- | ClientHamr/extantz/extantz.c | 4 | ||||
-rw-r--r-- | ClientHamr/extantz/images/bubble.png | bin | 4878 -> 0 bytes | |||
-rw-r--r-- | LuaSL/src/LuaSL.h | 2 | ||||
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 4 | ||||
-rw-r--r-- | LuaSL/src/LuaSL_test.c | 4 | ||||
-rw-r--r-- | LuaSL/src/images/bubble_sh.png | bin | 1600 -> 0 bytes | |||
-rwxr-xr-x | build.lua | 11 | ||||
-rw-r--r-- | images/animated_logo.gif (renamed from ClientHamr/extantz/images/animated_logo.gif) | bin | 81411 -> 81411 bytes | |||
-rw-r--r-- | images/bubble.png (renamed from LuaSL/src/images/bubble.png) | bin | 4737 -> 4737 bytes | |||
-rw-r--r-- | images/bubble_sh.png (renamed from ClientHamr/extantz/images/bubble_sh.png) | bin | 1600 -> 1600 bytes | |||
-rw-r--r-- | images/cube-blue.png (renamed from ClientHamr/extantz/images/cube-blue.png) | bin | 3734 -> 3734 bytes | |||
-rw-r--r-- | images/cube-purple.png (renamed from ClientHamr/extantz/images/cube-purple.png) | bin | 5835 -> 5835 bytes | |||
-rw-r--r-- | images/logo.png (renamed from ClientHamr/extantz/images/logo.png) | bin | 81162 -> 81162 bytes | |||
-rw-r--r-- | images/logo_small.png (renamed from ClientHamr/extantz/images/logo_small.png) | bin | 5655 -> 5655 bytes | |||
-rw-r--r-- | images/plant_01.jpg (renamed from ClientHamr/extantz/images/plant_01.jpg) | bin | 165867 -> 165867 bytes | |||
-rw-r--r-- | images/pt.png (renamed from ClientHamr/extantz/images/pt.png) | bin | 875 -> 875 bytes | |||
-rw-r--r-- | images/rock_01.jpg (renamed from ClientHamr/extantz/images/rock_01.jpg) | bin | 330094 -> 330094 bytes | |||
-rw-r--r-- | images/rock_02.jpg (renamed from ClientHamr/extantz/images/rock_02.jpg) | bin | 285555 -> 285555 bytes | |||
-rw-r--r-- | images/sky_01.jpg (renamed from ClientHamr/extantz/images/sky_01.jpg) | bin | 134813 -> 134813 bytes | |||
-rw-r--r-- | images/sky_02.jpg (renamed from ClientHamr/extantz/images/sky_02.jpg) | bin | 31413 -> 31413 bytes | |||
-rw-r--r-- | images/sky_03.jpg (renamed from ClientHamr/extantz/images/sky_03.jpg) | bin | 73364 -> 73364 bytes | |||
-rw-r--r-- | images/sky_04.jpg (renamed from ClientHamr/extantz/images/sky_04.jpg) | bin | 25078 -> 25078 bytes | |||
-rw-r--r-- | images/test.png (renamed from LuaSL/src/images/test.png) | bin | 22869 -> 22869 bytes | |||
-rw-r--r-- | images/wood_01.jpg (renamed from ClientHamr/extantz/images/wood_01.jpg) | bin | 96136 -> 96136 bytes |
25 files changed, 13 insertions, 16 deletions
diff --git a/ClientHamr/extantz/build.lua b/ClientHamr/extantz/build.lua index 096c5ff..baddae6 100755 --- a/ClientHamr/extantz/build.lua +++ b/ClientHamr/extantz/build.lua | |||
@@ -17,9 +17,9 @@ CFLAGS = CFLAGS .. ' -I../../libraries/irrlicht-1.8.1/include -I/usr/X11R6/inc | |||
17 | LDFLAGS = LDFLAGS .. ' -L../../libraries/irrlicht-1.8.1/lib/Linux' | 17 | LDFLAGS = LDFLAGS .. ' -L../../libraries/irrlicht-1.8.1/lib/Linux' |
18 | libs = libs .. ' -lIrrlicht -lGL -lbz2' | 18 | libs = libs .. ' -lIrrlicht -lGL -lbz2' |
19 | 19 | ||
20 | removeFiles(dir, {'extantz', 'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', 'extantz.edj'}) | 20 | removeFiles(dir, {'extantz', 'crappisspuke.o', 'CDemo.o', 'extantzCamera.o', '../../images/extantz.edj'}) |
21 | 21 | ||
22 | runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' extantz.edc extantz.edj') | 22 | runCommand('edje_cc', dir, 'edje_cc ' .. EDJE_FLAGS .. ' extantz.edc ../../images/extantz.edj') |
23 | runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS) | 23 | runCommand('Irrlicht files', dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c crappisspuke.cpp -o crappisspuke.o ' .. LDFLAGS) |
24 | runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS) | 24 | runCommand(nil, dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c CDemo.cpp -o CDemo.o ' .. LDFLAGS) |
25 | runCommand('extantz', dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS) | 25 | runCommand('extantz', dir, 'g++ ' .. CFLAGS .. ' -O3 -ffast-math -c extantzCamera.cpp -o extantzCamera.o ' .. LDFLAGS) |
diff --git a/ClientHamr/extantz/extantz.c b/ClientHamr/extantz/extantz.c index 7cdf799..cb8b323 100644 --- a/ClientHamr/extantz/extantz.c +++ b/ClientHamr/extantz/extantz.c | |||
@@ -1538,7 +1538,7 @@ EAPI_MAIN int elm_main(int argc, char **argv) | |||
1538 | ephysics_body_friction_set(boundary, 0); | 1538 | ephysics_body_friction_set(boundary, 0); |
1539 | 1539 | ||
1540 | box1 = elm_image_add(gld->win); | 1540 | box1 = elm_image_add(gld->win); |
1541 | elm_image_file_set(box1, PACKAGE_DATA_DIR "/" EPHYSICS_TEST_THEME ".edj", "blue-cube"); | 1541 | elm_image_file_set(box1, PACKAGE_DATA_DIR "/images/" EPHYSICS_TEST_THEME ".edj", "blue-cube"); |
1542 | evas_object_move(box1, gld->win_w / 2 - 80, gld->win_h - 200); | 1542 | evas_object_move(box1, gld->win_w / 2 - 80, gld->win_h - 200); |
1543 | evas_object_resize(box1, 70, 70); | 1543 | evas_object_resize(box1, 70, 70); |
1544 | evas_object_show(box1); | 1544 | evas_object_show(box1); |
@@ -1552,7 +1552,7 @@ EAPI_MAIN int elm_main(int argc, char **argv) | |||
1552 | ephysics_body_sleeping_threshold_set(box_body1, 0.1, 0.1); | 1552 | ephysics_body_sleeping_threshold_set(box_body1, 0.1, 0.1); |
1553 | 1553 | ||
1554 | box2 = elm_image_add(gld->win); | 1554 | box2 = elm_image_add(gld->win); |
1555 | elm_image_file_set(box2, PACKAGE_DATA_DIR "/" EPHYSICS_TEST_THEME ".edj", "purple-cube"); | 1555 | elm_image_file_set(box2, PACKAGE_DATA_DIR "/images/" EPHYSICS_TEST_THEME ".edj", "purple-cube"); |
1556 | evas_object_move(box2, gld->win_w / 2 + 10, gld->win_h - 200); | 1556 | evas_object_move(box2, gld->win_w / 2 + 10, gld->win_h - 200); |
1557 | evas_object_resize(box2, 70, 70); | 1557 | evas_object_resize(box2, 70, 70); |
1558 | evas_object_show(box2); | 1558 | evas_object_show(box2); |
diff --git a/ClientHamr/extantz/images/bubble.png b/ClientHamr/extantz/images/bubble.png deleted file mode 100644 index dfb71b7..0000000 --- a/ClientHamr/extantz/images/bubble.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/LuaSL/src/LuaSL.h b/LuaSL/src/LuaSL.h index 5dfa0eb..9055ca8 100644 --- a/LuaSL/src/LuaSL.h +++ b/LuaSL/src/LuaSL.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifdef HAVE_CONFIG_H | 1 | #ifdef HAVE_CONFIG_H |
2 | #include "config.h" | 2 | #include "config.h" |
3 | #else | 3 | #else |
4 | #define PACKAGE_EXAMPLES_DIR "." | 4 | //#define PACKAGE_EXAMPLES_DIR "." |
5 | #define __UNUSED__ | 5 | #define __UNUSED__ |
6 | #endif | 6 | #endif |
7 | 7 | ||
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index afff67f..4a0a42f 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -2119,9 +2119,9 @@ boolean compilerSetup(gameGlobals *ourGlobals) | |||
2119 | } | 2119 | } |
2120 | 2120 | ||
2121 | // Compile the constants. | 2121 | // Compile the constants. |
2122 | snprintf(buf, sizeof(buf), "lua -e 'require(\"LSL\").gimmeLSL()' > %s/constants.lsl", PACKAGE_DATA_DIR); | 2122 | snprintf(buf, sizeof(buf), "lua -e 'require(\"LSL\").gimmeLSL()' > %s/LuaSL/constants.lsl", PACKAGE_DATA_DIR); |
2123 | system(buf); | 2123 | system(buf); |
2124 | snprintf(buf, sizeof(buf), "%s/constants.lsl", PACKAGE_DATA_DIR); | 2124 | snprintf(buf, sizeof(buf), "%s/LuaSL/constants.lsl", PACKAGE_DATA_DIR); |
2125 | compileLSL(ourGlobals, NULL, "FAKE_SID", buf, TRUE); | 2125 | compileLSL(ourGlobals, NULL, "FAKE_SID", buf, TRUE); |
2126 | 2126 | ||
2127 | return TRUE; | 2127 | return TRUE; |
diff --git a/LuaSL/src/LuaSL_test.c b/LuaSL/src/LuaSL_test.c index 51fd902..74236cf 100644 --- a/LuaSL/src/LuaSL_test.c +++ b/LuaSL/src/LuaSL_test.c | |||
@@ -147,7 +147,7 @@ static Eina_Bool _add(void *data, int type __UNUSED__, Ecore_Con_Event_Server_Ad | |||
147 | 147 | ||
148 | ourGlobals->server = ev->server; | 148 | ourGlobals->server = ev->server; |
149 | gettimeofday(&startTime, NULL); | 149 | gettimeofday(&startTime, NULL); |
150 | snprintf(buf, sizeof(buf), "%s/Test sim/objects", PACKAGE_DATA_DIR); | 150 | snprintf(buf, sizeof(buf), "%s/LuaSL/Test sim/objects", PACKAGE_DATA_DIR); |
151 | eina_file_dir_list(buf, EINA_TRUE, dirList_compile, ourGlobals); | 151 | eina_file_dir_list(buf, EINA_TRUE, dirList_compile, ourGlobals); |
152 | // Wait awhile, then start sending events for testing. | 152 | // Wait awhile, then start sending events for testing. |
153 | ecore_timer_add(0.5, _timer_cb, ourGlobals); | 153 | ecore_timer_add(0.5, _timer_cb, ourGlobals); |
@@ -391,7 +391,7 @@ int main(int argc, char **argv) | |||
391 | evas_object_focus_set(ourGlobals.bg, EINA_TRUE); | 391 | evas_object_focus_set(ourGlobals.bg, EINA_TRUE); |
392 | 392 | ||
393 | ourGlobals.edje = edje_object_add(ourGlobals.canvas); | 393 | ourGlobals.edje = edje_object_add(ourGlobals.canvas); |
394 | snprintf(buf, sizeof(buf), "%s/%s.edj", PACKAGE_DATA_DIR, "LuaSL"); | 394 | snprintf(buf, sizeof(buf), "%s/LuaSL/%s.edj", PACKAGE_DATA_DIR, "LuaSL"); |
395 | if (!edje_object_file_set(ourGlobals.edje, buf, group)) | 395 | if (!edje_object_file_set(ourGlobals.edje, buf, group)) |
396 | { | 396 | { |
397 | int err = edje_object_load_error_get(ourGlobals.edje); | 397 | int err = edje_object_load_error_get(ourGlobals.edje); |
diff --git a/LuaSL/src/images/bubble_sh.png b/LuaSL/src/images/bubble_sh.png deleted file mode 100644 index b66c1e6..0000000 --- a/LuaSL/src/images/bubble_sh.png +++ /dev/null | |||
Binary files differ | |||
@@ -71,18 +71,15 @@ CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'ecore-evas') | |||
71 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'ecore-file') | 71 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'ecore-file') |
72 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'edje') | 72 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'edje') |
73 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'elementary') | 73 | CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'elementary') |
74 | -- TODO - The workingDir part of these strings gets set differently depending on who starts the build. | 74 | CFLAGS = CFLAGS .. ' -DPACKAGE_BIN_DIR=\\"' .. baseDir .. '\\"' |
75 | -- Which is a problem for the PACKAGE_*_DIR defines. | 75 | CFLAGS = CFLAGS .. ' -DPACKAGE_LIB_DIR=\\"' .. baseDir .. '\\"' |
76 | -- On the other hand, that part needs to be rethought anyway, coz otherwise they are locked to the build place. | 76 | CFLAGS = CFLAGS .. ' -DPACKAGE_DATA_DIR=\\"' .. baseDir .. '\\"' |
77 | CFLAGS = CFLAGS .. ' -DPACKAGE_BIN_DIR=\\"' .. workingDir .. '\\"' | ||
78 | CFLAGS = CFLAGS .. ' -DPACKAGE_LIB_DIR=\\"' .. workingDir .. '\\"' | ||
79 | CFLAGS = CFLAGS .. ' -DPACKAGE_DATA_DIR=\\"' .. workingDir .. '\\"' | ||
80 | CFLAGS = CFLAGS .. ' ' .. CFLAGOPTS | 77 | CFLAGS = CFLAGS .. ' ' .. CFLAGOPTS |
81 | 78 | ||
82 | LDFLAGS = '-L ' .. baseDir .. '/libraries ' .. pkgConfig('libs-only-L', 'luajit') .. ' -L /usr/lib -L /lib' | 79 | LDFLAGS = '-L ' .. baseDir .. '/libraries ' .. pkgConfig('libs-only-L', 'luajit') .. ' -L /usr/lib -L /lib' |
83 | libs = '-lLumbrJack -lRunnr ' .. pkgConfig('libs', 'elementary') .. ' ' .. pkgConfig('libs', 'luajit') .. ' -lpthread -lm' | 80 | libs = '-lLumbrJack -lRunnr ' .. pkgConfig('libs', 'elementary') .. ' ' .. pkgConfig('libs', 'luajit') .. ' -lpthread -lm' |
84 | LFLAGS = '-d' | 81 | LFLAGS = '-d' |
85 | EDJE_FLAGS = '-id images -fd fonts' | 82 | EDJE_FLAGS = '-id ' .. baseDir .. '/images -fd ' .. baseDir .. '/fonts' |
86 | 83 | ||
87 | 84 | ||
88 | if 'nil' == type(args) then | 85 | if 'nil' == type(args) then |
diff --git a/ClientHamr/extantz/images/animated_logo.gif b/images/animated_logo.gif index ef201af..ef201af 100644 --- a/ClientHamr/extantz/images/animated_logo.gif +++ b/images/animated_logo.gif | |||
Binary files differ | |||
diff --git a/LuaSL/src/images/bubble.png b/images/bubble.png index 8fc50f9..8fc50f9 100644 --- a/LuaSL/src/images/bubble.png +++ b/images/bubble.png | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/bubble_sh.png b/images/bubble_sh.png index b66c1e6..b66c1e6 100644 --- a/ClientHamr/extantz/images/bubble_sh.png +++ b/images/bubble_sh.png | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/cube-blue.png b/images/cube-blue.png index e848d2b..e848d2b 100644 --- a/ClientHamr/extantz/images/cube-blue.png +++ b/images/cube-blue.png | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/cube-purple.png b/images/cube-purple.png index 096cdbb..096cdbb 100644 --- a/ClientHamr/extantz/images/cube-purple.png +++ b/images/cube-purple.png | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/logo.png b/images/logo.png index 7dbae67..7dbae67 100644 --- a/ClientHamr/extantz/images/logo.png +++ b/images/logo.png | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/logo_small.png b/images/logo_small.png index c7dc665..c7dc665 100644 --- a/ClientHamr/extantz/images/logo_small.png +++ b/images/logo_small.png | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/plant_01.jpg b/images/plant_01.jpg index f1714dd..f1714dd 100644 --- a/ClientHamr/extantz/images/plant_01.jpg +++ b/images/plant_01.jpg | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/pt.png b/images/pt.png index 612d117..612d117 100644 --- a/ClientHamr/extantz/images/pt.png +++ b/images/pt.png | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/rock_01.jpg b/images/rock_01.jpg index c50ccb3..c50ccb3 100644 --- a/ClientHamr/extantz/images/rock_01.jpg +++ b/images/rock_01.jpg | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/rock_02.jpg b/images/rock_02.jpg index 04aea8a..04aea8a 100644 --- a/ClientHamr/extantz/images/rock_02.jpg +++ b/images/rock_02.jpg | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/sky_01.jpg b/images/sky_01.jpg index 22f3050..22f3050 100644 --- a/ClientHamr/extantz/images/sky_01.jpg +++ b/images/sky_01.jpg | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/sky_02.jpg b/images/sky_02.jpg index d0d7448..d0d7448 100644 --- a/ClientHamr/extantz/images/sky_02.jpg +++ b/images/sky_02.jpg | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/sky_03.jpg b/images/sky_03.jpg index cbad02a..cbad02a 100644 --- a/ClientHamr/extantz/images/sky_03.jpg +++ b/images/sky_03.jpg | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/sky_04.jpg b/images/sky_04.jpg index c5cbc18..c5cbc18 100644 --- a/ClientHamr/extantz/images/sky_04.jpg +++ b/images/sky_04.jpg | |||
Binary files differ | |||
diff --git a/LuaSL/src/images/test.png b/images/test.png index fb620d7..fb620d7 100644 --- a/LuaSL/src/images/test.png +++ b/images/test.png | |||
Binary files differ | |||
diff --git a/ClientHamr/extantz/images/wood_01.jpg b/images/wood_01.jpg index 89f1006..89f1006 100644 --- a/ClientHamr/extantz/images/wood_01.jpg +++ b/images/wood_01.jpg | |||
Binary files differ | |||