diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/edje/src/examples/Makefile.am | 104 | ||||
-rw-r--r-- | libraries/edje/src/examples/Makefile.in | 135 | ||||
-rw-r--r-- | libraries/edje/src/examples/Vera.ttf | bin | 0 -> 65932 bytes | |||
-rw-r--r-- | libraries/edje/src/examples/lua_script.edc | 12 | ||||
-rw-r--r-- | libraries/edje/src/examples/multisense.edc | 139 | ||||
-rw-r--r-- | libraries/edje/src/examples/signals-messages.edc | 8 |
6 files changed, 249 insertions, 149 deletions
diff --git a/libraries/edje/src/examples/Makefile.am b/libraries/edje/src/examples/Makefile.am index 20e2c81..579f148 100644 --- a/libraries/edje/src/examples/Makefile.am +++ b/libraries/edje/src/examples/Makefile.am | |||
@@ -1,12 +1,15 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | 1 | MAINTAINERCLEANFILES = Makefile.in |
2 | 2 | ||
3 | pkglibdir = $(datadir)/$(PACKAGE)/examples | 3 | examplesdir = $(datadir)/$(PACKAGE)/examples |
4 | |||
4 | if ENABLE_MULTISENSE | 5 | if ENABLE_MULTISENSE |
5 | MULTISENSE_EDC_FILE = multisense.edc | 6 | MULTISENSE_EDC_FILE = multisense.edc |
6 | SND_DIR = -sd $(srcdir) | 7 | SND_DIR = -sd $(srcdir) |
7 | endif | 8 | endif |
9 | |||
8 | #put here all EDCs one needs to the examples | 10 | #put here all EDCs one needs to the examples |
9 | EDCS = basic.edc \ | 11 | EDCS = \ |
12 | basic.edc \ | ||
10 | swallow.edc \ | 13 | swallow.edc \ |
11 | text.edc \ | 14 | text.edc \ |
12 | table.edc \ | 15 | table.edc \ |
@@ -20,26 +23,48 @@ EDCS = basic.edc \ | |||
20 | sigtest.edc \ | 23 | sigtest.edc \ |
21 | $(MULTISENSE_EDC_FILE) | 24 | $(MULTISENSE_EDC_FILE) |
22 | 25 | ||
26 | .edc.edj: | ||
27 | $(edje_cc) -v -fd $(srcdir) -id $(srcdir) $(SND_DIR) $< $(builddir)/$(@F) | ||
28 | |||
29 | EDJS = $(EDCS:%.edc=%.edj) | ||
30 | |||
23 | filesdir = $(datadir)/$(PACKAGE)/examples | 31 | filesdir = $(datadir)/$(PACKAGE)/examples |
24 | files_DATA = | 32 | files_DATA = \ |
33 | $(EDCS) \ | ||
34 | bubble.png \ | ||
35 | red.png \ | ||
36 | test.png \ | ||
37 | Vera.ttf \ | ||
38 | edje-basic.c \ | ||
39 | edje-swallow.c \ | ||
40 | edje-text.c \ | ||
41 | edje-table.c \ | ||
42 | edje-box.c \ | ||
43 | edje-box2.c \ | ||
44 | edje-drag.c \ | ||
45 | edje-signals-messages.c \ | ||
46 | edje-color-class.c \ | ||
47 | edje-perspective.c \ | ||
48 | edje-animations.c \ | ||
49 | sigtest.c | ||
50 | |||
51 | EXTRA_DIST = $(files_DATA) | ||
25 | 52 | ||
26 | if BUILD_EXAMPLES | 53 | if BUILD_EXAMPLES |
27 | 54 | ||
28 | AM_CPPFLAGS = \ | 55 | AM_CPPFLAGS = \ |
29 | -I. \ | 56 | -I. \ |
30 | -I$(top_srcdir)/src/lib \ | 57 | -I$(top_srcdir)/src/lib \ |
31 | -I$(top_srcdir)/src/lib/include \ | 58 | -I$(top_srcdir)/src/lib/include \ |
32 | -DPACKAGE_BIN_DIR=\"$(bindir)\" \ | 59 | -DPACKAGE_BIN_DIR=\"$(bindir)\" \ |
33 | -DPACKAGE_LIB_DIR=\"$(libdir)\" \ | 60 | -DPACKAGE_LIB_DIR=\"$(libdir)\" \ |
34 | -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ | 61 | -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ |
35 | -DPACKAGE_EXAMPLES_DIR=\"$(datadir)/$(PACKAGE)/examples\" | 62 | -DPACKAGE_EXAMPLES_DIR=\"$(datadir)/$(PACKAGE)/examples\" \ |
36 | 63 | @EDJE_CFLAGS@ | |
37 | pkglib_PROGRAMS = | ||
38 | 64 | ||
39 | #the ones using ecore_evas follow | 65 | files_DATA += $(EDJS) |
40 | AM_CPPFLAGS += @EDJE_CFLAGS@ | ||
41 | 66 | ||
42 | pkglib_PROGRAMS += \ | 67 | examples_PROGRAMS = \ |
43 | edje-basic \ | 68 | edje-basic \ |
44 | edje-swallow \ | 69 | edje-swallow \ |
45 | edje-text \ | 70 | edje-text \ |
@@ -55,53 +80,4 @@ pkglib_PROGRAMS += \ | |||
55 | 80 | ||
56 | LDADD = $(top_builddir)/src/lib/libedje.la @EDJE_LIBS@ | 81 | LDADD = $(top_builddir)/src/lib/libedje.la @EDJE_LIBS@ |
57 | 82 | ||
58 | .edc.edj: | ||
59 | $(edje_cc) -v -id $(srcdir) $(SND_DIR) $< $(builddir)/$(@F) | ||
60 | |||
61 | EDJS = $(EDCS:%.edc=%.edj) | ||
62 | |||
63 | files_DATA += $(EDJS) | ||
64 | |||
65 | endif # if BUILD_EXAMPLES | ||
66 | |||
67 | if INSTALL_EXAMPLES | ||
68 | |||
69 | #put here additional data when installing examples | ||
70 | files_DATA += \ | ||
71 | $(srcdir)/bubble.png \ | ||
72 | $(srcdir)/red.png \ | ||
73 | $(srcdir)/test.png \ | ||
74 | $(srcdir)/Vera.ttf | ||
75 | |||
76 | files_DATA += \ | ||
77 | $(EDCS) \ | ||
78 | $(srcdir)/edje-basic.c \ | ||
79 | $(srcdir)/edje-swallow.c \ | ||
80 | $(srcdir)/edje-text.c \ | ||
81 | $(srcdir)/edje-table.c \ | ||
82 | $(srcdir)/edje-box.c \ | ||
83 | $(srcdir)/edje-box2.c \ | ||
84 | $(srcdir)/edje-drag.c \ | ||
85 | $(srcdir)/edje-signals-messages.c \ | ||
86 | $(srcdir)/edje-color-class.c \ | ||
87 | $(srcdir)/edje-perspective.c \ | ||
88 | $(srcdir)/edje-animations.c \ | ||
89 | $(srcdir)/sigtest.c | ||
90 | endif | 83 | endif |
91 | |||
92 | EXTRA_DIST = $(EDCS) \ | ||
93 | $(srcdir)/bubble.png \ | ||
94 | $(srcdir)/red.png \ | ||
95 | $(srcdir)/test.png \ | ||
96 | $(srcdir)/edje-basic.c \ | ||
97 | $(srcdir)/edje-swallow.c \ | ||
98 | $(srcdir)/edje-text.c \ | ||
99 | $(srcdir)/edje-table.c \ | ||
100 | $(srcdir)/edje-box.c \ | ||
101 | $(srcdir)/edje-box2.c \ | ||
102 | $(srcdir)/edje-drag.c \ | ||
103 | $(srcdir)/edje-signals-messages.c \ | ||
104 | $(srcdir)/edje-color-class.c \ | ||
105 | $(srcdir)/edje-perspective.c \ | ||
106 | $(srcdir)/edje-animations.c \ | ||
107 | $(srcdir)/sigtest.c | ||
diff --git a/libraries/edje/src/examples/Makefile.in b/libraries/edje/src/examples/Makefile.in index bde628f..7f867e0 100644 --- a/libraries/edje/src/examples/Makefile.in +++ b/libraries/edje/src/examples/Makefile.in | |||
@@ -19,6 +19,7 @@ | |||
19 | VPATH = @srcdir@ | 19 | VPATH = @srcdir@ |
20 | pkgdatadir = $(datadir)/@PACKAGE@ | 20 | pkgdatadir = $(datadir)/@PACKAGE@ |
21 | pkgincludedir = $(includedir)/@PACKAGE@ | 21 | pkgincludedir = $(includedir)/@PACKAGE@ |
22 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | 23 | pkglibexecdir = $(libexecdir)/@PACKAGE@ |
23 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | 24 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
24 | install_sh_DATA = $(install_sh) -c -m 644 | 25 | install_sh_DATA = $(install_sh) -c -m 644 |
@@ -34,7 +35,8 @@ PRE_UNINSTALL = : | |||
34 | POST_UNINSTALL = : | 35 | POST_UNINSTALL = : |
35 | build_triplet = @build@ | 36 | build_triplet = @build@ |
36 | host_triplet = @host@ | 37 | host_triplet = @host@ |
37 | @BUILD_EXAMPLES_TRUE@pkglib_PROGRAMS = edje-basic$(EXEEXT) \ | 38 | @BUILD_EXAMPLES_TRUE@am__append_1 = $(EDJS) |
39 | @BUILD_EXAMPLES_TRUE@examples_PROGRAMS = edje-basic$(EXEEXT) \ | ||
38 | @BUILD_EXAMPLES_TRUE@ edje-swallow$(EXEEXT) edje-text$(EXEEXT) \ | 40 | @BUILD_EXAMPLES_TRUE@ edje-swallow$(EXEEXT) edje-text$(EXEEXT) \ |
39 | @BUILD_EXAMPLES_TRUE@ edje-table$(EXEEXT) edje-box$(EXEEXT) \ | 41 | @BUILD_EXAMPLES_TRUE@ edje-table$(EXEEXT) edje-box$(EXEEXT) \ |
40 | @BUILD_EXAMPLES_TRUE@ edje-box2$(EXEEXT) edje-drag$(EXEEXT) \ | 42 | @BUILD_EXAMPLES_TRUE@ edje-box2$(EXEEXT) edje-drag$(EXEEXT) \ |
@@ -42,24 +44,6 @@ host_triplet = @host@ | |||
42 | @BUILD_EXAMPLES_TRUE@ edje-color-class$(EXEEXT) \ | 44 | @BUILD_EXAMPLES_TRUE@ edje-color-class$(EXEEXT) \ |
43 | @BUILD_EXAMPLES_TRUE@ edje-perspective$(EXEEXT) \ | 45 | @BUILD_EXAMPLES_TRUE@ edje-perspective$(EXEEXT) \ |
44 | @BUILD_EXAMPLES_TRUE@ edje-animations$(EXEEXT) sigtest$(EXEEXT) | 46 | @BUILD_EXAMPLES_TRUE@ edje-animations$(EXEEXT) sigtest$(EXEEXT) |
45 | @BUILD_EXAMPLES_TRUE@am__append_1 = $(EDJS) | ||
46 | |||
47 | #put here additional data when installing examples | ||
48 | @INSTALL_EXAMPLES_TRUE@am__append_2 = $(srcdir)/bubble.png \ | ||
49 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/red.png $(srcdir)/test.png \ | ||
50 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/Vera.ttf $(EDCS) \ | ||
51 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/edje-basic.c \ | ||
52 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/edje-swallow.c \ | ||
53 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/edje-text.c \ | ||
54 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/edje-table.c \ | ||
55 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/edje-box.c \ | ||
56 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/edje-box2.c \ | ||
57 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/edje-drag.c \ | ||
58 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/edje-signals-messages.c \ | ||
59 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/edje-color-class.c \ | ||
60 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/edje-perspective.c \ | ||
61 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/edje-animations.c \ | ||
62 | @INSTALL_EXAMPLES_TRUE@ $(srcdir)/sigtest.c | ||
63 | subdir = src/examples | 47 | subdir = src/examples |
64 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | 48 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in |
65 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 49 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
@@ -77,8 +61,8 @@ mkinstalldirs = $(install_sh) -d | |||
77 | CONFIG_HEADER = $(top_builddir)/config.h | 61 | CONFIG_HEADER = $(top_builddir)/config.h |
78 | CONFIG_CLEAN_FILES = | 62 | CONFIG_CLEAN_FILES = |
79 | CONFIG_CLEAN_VPATH_FILES = | 63 | CONFIG_CLEAN_VPATH_FILES = |
80 | am__installdirs = "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(filesdir)" | 64 | am__installdirs = "$(DESTDIR)$(examplesdir)" "$(DESTDIR)$(filesdir)" |
81 | PROGRAMS = $(pkglib_PROGRAMS) | 65 | PROGRAMS = $(examples_PROGRAMS) |
82 | edje_animations_SOURCES = edje-animations.c | 66 | edje_animations_SOURCES = edje-animations.c |
83 | edje_animations_OBJECTS = edje-animations.$(OBJEXT) | 67 | edje_animations_OBJECTS = edje-animations.$(OBJEXT) |
84 | edje_animations_LDADD = $(LDADD) | 68 | edje_animations_LDADD = $(LDADD) |
@@ -201,7 +185,6 @@ DATA = $(files_DATA) | |||
201 | ETAGS = etags | 185 | ETAGS = etags |
202 | CTAGS = ctags | 186 | CTAGS = ctags |
203 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | 187 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
204 | pkglibdir = $(datadir)/$(PACKAGE)/examples | ||
205 | ACLOCAL = @ACLOCAL@ | 188 | ACLOCAL = @ACLOCAL@ |
206 | ALLOCA = @ALLOCA@ | 189 | ALLOCA = @ALLOCA@ |
207 | ALSA_CFLAGS = @ALSA_CFLAGS@ | 190 | ALSA_CFLAGS = @ALSA_CFLAGS@ |
@@ -296,8 +279,6 @@ PACKAGE_URL = @PACKAGE_URL@ | |||
296 | PACKAGE_VERSION = @PACKAGE_VERSION@ | 279 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
297 | PATH_SEPARATOR = @PATH_SEPARATOR@ | 280 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
298 | PKG_CONFIG = @PKG_CONFIG@ | 281 | PKG_CONFIG = @PKG_CONFIG@ |
299 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
300 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
301 | PYTHON = @PYTHON@ | 282 | PYTHON = @PYTHON@ |
302 | PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ | 283 | PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ |
303 | PYTHON_PLATFORM = @PYTHON_PLATFORM@ | 284 | PYTHON_PLATFORM = @PYTHON_PLATFORM@ |
@@ -385,10 +366,13 @@ top_srcdir = @top_srcdir@ | |||
385 | version_info = @version_info@ | 366 | version_info = @version_info@ |
386 | vimdir = @vimdir@ | 367 | vimdir = @vimdir@ |
387 | MAINTAINERCLEANFILES = Makefile.in | 368 | MAINTAINERCLEANFILES = Makefile.in |
369 | examplesdir = $(datadir)/$(PACKAGE)/examples | ||
388 | @ENABLE_MULTISENSE_TRUE@MULTISENSE_EDC_FILE = multisense.edc | 370 | @ENABLE_MULTISENSE_TRUE@MULTISENSE_EDC_FILE = multisense.edc |
389 | @ENABLE_MULTISENSE_TRUE@SND_DIR = -sd $(srcdir) | 371 | @ENABLE_MULTISENSE_TRUE@SND_DIR = -sd $(srcdir) |
372 | |||
390 | #put here all EDCs one needs to the examples | 373 | #put here all EDCs one needs to the examples |
391 | EDCS = basic.edc \ | 374 | EDCS = \ |
375 | basic.edc \ | ||
392 | swallow.edc \ | 376 | swallow.edc \ |
393 | text.edc \ | 377 | text.edc \ |
394 | table.edc \ | 378 | table.edc \ |
@@ -402,36 +386,24 @@ EDCS = basic.edc \ | |||
402 | sigtest.edc \ | 386 | sigtest.edc \ |
403 | $(MULTISENSE_EDC_FILE) | 387 | $(MULTISENSE_EDC_FILE) |
404 | 388 | ||
389 | EDJS = $(EDCS:%.edc=%.edj) | ||
405 | filesdir = $(datadir)/$(PACKAGE)/examples | 390 | filesdir = $(datadir)/$(PACKAGE)/examples |
406 | files_DATA = $(am__append_1) $(am__append_2) | 391 | files_DATA = $(EDCS) bubble.png red.png test.png Vera.ttf edje-basic.c \ |
407 | 392 | edje-swallow.c edje-text.c edje-table.c edje-box.c edje-box2.c \ | |
408 | #the ones using ecore_evas follow | 393 | edje-drag.c edje-signals-messages.c edje-color-class.c \ |
409 | @BUILD_EXAMPLES_TRUE@AM_CPPFLAGS = -I. -I$(top_srcdir)/src/lib \ | 394 | edje-perspective.c edje-animations.c sigtest.c $(am__append_1) |
410 | @BUILD_EXAMPLES_TRUE@ -I$(top_srcdir)/src/lib/include \ | 395 | EXTRA_DIST = $(files_DATA) |
411 | @BUILD_EXAMPLES_TRUE@ -DPACKAGE_BIN_DIR=\"$(bindir)\" \ | 396 | @BUILD_EXAMPLES_TRUE@AM_CPPFLAGS = \ |
412 | @BUILD_EXAMPLES_TRUE@ -DPACKAGE_LIB_DIR=\"$(libdir)\" \ | 397 | @BUILD_EXAMPLES_TRUE@ -I. \ |
413 | @BUILD_EXAMPLES_TRUE@ -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ | 398 | @BUILD_EXAMPLES_TRUE@ -I$(top_srcdir)/src/lib \ |
414 | @BUILD_EXAMPLES_TRUE@ -DPACKAGE_EXAMPLES_DIR=\"$(datadir)/$(PACKAGE)/examples\" \ | 399 | @BUILD_EXAMPLES_TRUE@ -I$(top_srcdir)/src/lib/include \ |
415 | @BUILD_EXAMPLES_TRUE@ @EDJE_CFLAGS@ $(am__empty) | 400 | @BUILD_EXAMPLES_TRUE@ -DPACKAGE_BIN_DIR=\"$(bindir)\" \ |
416 | @BUILD_EXAMPLES_TRUE@LDADD = $(top_builddir)/src/lib/libedje.la @EDJE_LIBS@ | 401 | @BUILD_EXAMPLES_TRUE@ -DPACKAGE_LIB_DIR=\"$(libdir)\" \ |
417 | @BUILD_EXAMPLES_TRUE@EDJS = $(EDCS:%.edc=%.edj) | 402 | @BUILD_EXAMPLES_TRUE@ -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ |
418 | EXTRA_DIST = $(EDCS) \ | 403 | @BUILD_EXAMPLES_TRUE@ -DPACKAGE_EXAMPLES_DIR=\"$(datadir)/$(PACKAGE)/examples\" \ |
419 | $(srcdir)/bubble.png \ | 404 | @BUILD_EXAMPLES_TRUE@ @EDJE_CFLAGS@ |
420 | $(srcdir)/red.png \ | ||
421 | $(srcdir)/test.png \ | ||
422 | $(srcdir)/edje-basic.c \ | ||
423 | $(srcdir)/edje-swallow.c \ | ||
424 | $(srcdir)/edje-text.c \ | ||
425 | $(srcdir)/edje-table.c \ | ||
426 | $(srcdir)/edje-box.c \ | ||
427 | $(srcdir)/edje-box2.c \ | ||
428 | $(srcdir)/edje-drag.c \ | ||
429 | $(srcdir)/edje-signals-messages.c \ | ||
430 | $(srcdir)/edje-color-class.c \ | ||
431 | $(srcdir)/edje-perspective.c \ | ||
432 | $(srcdir)/edje-animations.c \ | ||
433 | $(srcdir)/sigtest.c | ||
434 | 405 | ||
406 | @BUILD_EXAMPLES_TRUE@LDADD = $(top_builddir)/src/lib/libedje.la @EDJE_LIBS@ | ||
435 | all: all-am | 407 | all: all-am |
436 | 408 | ||
437 | .SUFFIXES: | 409 | .SUFFIXES: |
@@ -466,10 +438,10 @@ $(top_srcdir)/configure: $(am__configure_deps) | |||
466 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | 438 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) |
467 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | 439 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
468 | $(am__aclocal_m4_deps): | 440 | $(am__aclocal_m4_deps): |
469 | install-pkglibPROGRAMS: $(pkglib_PROGRAMS) | 441 | install-examplesPROGRAMS: $(examples_PROGRAMS) |
470 | @$(NORMAL_INSTALL) | 442 | @$(NORMAL_INSTALL) |
471 | test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" | 443 | test -z "$(examplesdir)" || $(MKDIR_P) "$(DESTDIR)$(examplesdir)" |
472 | @list='$(pkglib_PROGRAMS)'; test -n "$(pkglibdir)" || list=; \ | 444 | @list='$(examples_PROGRAMS)'; test -n "$(examplesdir)" || list=; \ |
473 | for p in $$list; do echo "$$p $$p"; done | \ | 445 | for p in $$list; do echo "$$p $$p"; done | \ |
474 | sed 's/$(EXEEXT)$$//' | \ | 446 | sed 's/$(EXEEXT)$$//' | \ |
475 | while read p p1; do if test -f $$p || test -f $$p1; \ | 447 | while read p p1; do if test -f $$p || test -f $$p1; \ |
@@ -486,23 +458,23 @@ install-pkglibPROGRAMS: $(pkglib_PROGRAMS) | |||
486 | while read type dir files; do \ | 458 | while read type dir files; do \ |
487 | if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ | 459 | if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ |
488 | test -z "$$files" || { \ | 460 | test -z "$$files" || { \ |
489 | echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(pkglibdir)$$dir'"; \ | 461 | echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(examplesdir)$$dir'"; \ |
490 | $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(pkglibdir)$$dir" || exit $$?; \ | 462 | $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(examplesdir)$$dir" || exit $$?; \ |
491 | } \ | 463 | } \ |
492 | ; done | 464 | ; done |
493 | 465 | ||
494 | uninstall-pkglibPROGRAMS: | 466 | uninstall-examplesPROGRAMS: |
495 | @$(NORMAL_UNINSTALL) | 467 | @$(NORMAL_UNINSTALL) |
496 | @list='$(pkglib_PROGRAMS)'; test -n "$(pkglibdir)" || list=; \ | 468 | @list='$(examples_PROGRAMS)'; test -n "$(examplesdir)" || list=; \ |
497 | files=`for p in $$list; do echo "$$p"; done | \ | 469 | files=`for p in $$list; do echo "$$p"; done | \ |
498 | sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ | 470 | sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ |
499 | -e 's/$$/$(EXEEXT)/' `; \ | 471 | -e 's/$$/$(EXEEXT)/' `; \ |
500 | test -n "$$list" || exit 0; \ | 472 | test -n "$$list" || exit 0; \ |
501 | echo " ( cd '$(DESTDIR)$(pkglibdir)' && rm -f" $$files ")"; \ | 473 | echo " ( cd '$(DESTDIR)$(examplesdir)' && rm -f" $$files ")"; \ |
502 | cd "$(DESTDIR)$(pkglibdir)" && rm -f $$files | 474 | cd "$(DESTDIR)$(examplesdir)" && rm -f $$files |
503 | 475 | ||
504 | clean-pkglibPROGRAMS: | 476 | clean-examplesPROGRAMS: |
505 | @list='$(pkglib_PROGRAMS)'; test -n "$$list" || exit 0; \ | 477 | @list='$(examples_PROGRAMS)'; test -n "$$list" || exit 0; \ |
506 | echo " rm -f" $$list; \ | 478 | echo " rm -f" $$list; \ |
507 | rm -f $$list || exit $$?; \ | 479 | rm -f $$list || exit $$?; \ |
508 | test -n "$(EXEEXT)" || exit 0; \ | 480 | test -n "$(EXEEXT)" || exit 0; \ |
@@ -701,7 +673,7 @@ check-am: all-am | |||
701 | check: check-am | 673 | check: check-am |
702 | all-am: Makefile $(PROGRAMS) $(DATA) | 674 | all-am: Makefile $(PROGRAMS) $(DATA) |
703 | installdirs: | 675 | installdirs: |
704 | for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(filesdir)"; do \ | 676 | for dir in "$(DESTDIR)$(examplesdir)" "$(DESTDIR)$(filesdir)"; do \ |
705 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | 677 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ |
706 | done | 678 | done |
707 | install: install-am | 679 | install: install-am |
@@ -732,7 +704,7 @@ maintainer-clean-generic: | |||
732 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | 704 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) |
733 | clean: clean-am | 705 | clean: clean-am |
734 | 706 | ||
735 | clean-am: clean-generic clean-libtool clean-pkglibPROGRAMS \ | 707 | clean-am: clean-examplesPROGRAMS clean-generic clean-libtool \ |
736 | mostlyclean-am | 708 | mostlyclean-am |
737 | 709 | ||
738 | distclean: distclean-am | 710 | distclean: distclean-am |
@@ -753,13 +725,13 @@ info: info-am | |||
753 | 725 | ||
754 | info-am: | 726 | info-am: |
755 | 727 | ||
756 | install-data-am: install-filesDATA | 728 | install-data-am: install-examplesPROGRAMS install-filesDATA |
757 | 729 | ||
758 | install-dvi: install-dvi-am | 730 | install-dvi: install-dvi-am |
759 | 731 | ||
760 | install-dvi-am: | 732 | install-dvi-am: |
761 | 733 | ||
762 | install-exec-am: install-pkglibPROGRAMS | 734 | install-exec-am: |
763 | 735 | ||
764 | install-html: install-html-am | 736 | install-html: install-html-am |
765 | 737 | ||
@@ -799,28 +771,29 @@ ps: ps-am | |||
799 | 771 | ||
800 | ps-am: | 772 | ps-am: |
801 | 773 | ||
802 | uninstall-am: uninstall-filesDATA uninstall-pkglibPROGRAMS | 774 | uninstall-am: uninstall-examplesPROGRAMS uninstall-filesDATA |
803 | 775 | ||
804 | .MAKE: install-am install-strip | 776 | .MAKE: install-am install-strip |
805 | 777 | ||
806 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | 778 | .PHONY: CTAGS GTAGS all all-am check check-am clean \ |
807 | clean-libtool clean-pkglibPROGRAMS ctags distclean \ | 779 | clean-examplesPROGRAMS clean-generic clean-libtool ctags \ |
808 | distclean-compile distclean-generic distclean-libtool \ | 780 | distclean distclean-compile distclean-generic \ |
809 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | 781 | distclean-libtool distclean-tags distdir dvi dvi-am html \ |
810 | install install-am install-data install-data-am install-dvi \ | 782 | html-am info info-am install install-am install-data \ |
811 | install-dvi-am install-exec install-exec-am install-filesDATA \ | 783 | install-data-am install-dvi install-dvi-am \ |
812 | install-html install-html-am install-info install-info-am \ | 784 | install-examplesPROGRAMS install-exec install-exec-am \ |
813 | install-man install-pdf install-pdf-am install-pkglibPROGRAMS \ | 785 | install-filesDATA install-html install-html-am install-info \ |
786 | install-info-am install-man install-pdf install-pdf-am \ | ||
814 | install-ps install-ps-am install-strip installcheck \ | 787 | install-ps install-ps-am install-strip installcheck \ |
815 | installcheck-am installdirs maintainer-clean \ | 788 | installcheck-am installdirs maintainer-clean \ |
816 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | 789 | maintainer-clean-generic mostlyclean mostlyclean-compile \ |
817 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | 790 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ |
818 | tags uninstall uninstall-am uninstall-filesDATA \ | 791 | tags uninstall uninstall-am uninstall-examplesPROGRAMS \ |
819 | uninstall-pkglibPROGRAMS | 792 | uninstall-filesDATA |
820 | 793 | ||
821 | 794 | ||
822 | @BUILD_EXAMPLES_TRUE@.edc.edj: | 795 | .edc.edj: |
823 | @BUILD_EXAMPLES_TRUE@ $(edje_cc) -v -id $(srcdir) $(SND_DIR) $< $(builddir)/$(@F) | 796 | $(edje_cc) -v -fd $(srcdir) -id $(srcdir) $(SND_DIR) $< $(builddir)/$(@F) |
824 | 797 | ||
825 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | 798 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
826 | # Otherwise a system limit (for SysV at least) may be exceeded. | 799 | # Otherwise a system limit (for SysV at least) may be exceeded. |
diff --git a/libraries/edje/src/examples/Vera.ttf b/libraries/edje/src/examples/Vera.ttf new file mode 100644 index 0000000..58cd6b5 --- /dev/null +++ b/libraries/edje/src/examples/Vera.ttf | |||
Binary files differ | |||
diff --git a/libraries/edje/src/examples/lua_script.edc b/libraries/edje/src/examples/lua_script.edc index 24e8ebe..23c2926 100644 --- a/libraries/edje/src/examples/lua_script.edc +++ b/libraries/edje/src/examples/lua_script.edc | |||
@@ -104,6 +104,10 @@ collections { | |||
104 | print("lua::init ... " .. D.val); | 104 | print("lua::init ... " .. D.val); |
105 | edje.echo("lua::echo('hello world')"); | 105 | edje.echo("lua::echo('hello world')"); |
106 | 106 | ||
107 | --// How to check the edje version. | ||
108 | version = edje.version(); | ||
109 | print("The edje version number is " .. version.major .. "." .. version.minor); | ||
110 | |||
107 | --// actually add the timer to call mycb in 1.23 sec | 111 | --// actually add the timer to call mycb in 1.23 sec |
108 | D.tim = edje.timer(1.23, mycb); | 112 | D.tim = edje.timer(1.23, mycb); |
109 | D.tra = edje.transition(5.0, mycb3); | 113 | D.tra = edje.transition(5.0, mycb3); |
@@ -168,6 +172,14 @@ collections { | |||
168 | print(D.text:text()); | 172 | print(D.text:text()); |
169 | D.text:show(); | 173 | D.text:show(); |
170 | 174 | ||
175 | --// Put a few bogus API calls here to test the bogus API protection, | ||
176 | --// If the bogus API protection works, these should get ignored, but everything else runs smoothly. | ||
177 | --// Otherwise, the map is not done, the bubbles are not done, but the timers keep runinng. | ||
178 | bogus.failme(1, "two", D.rect); | ||
179 | temp = bogus.failme2(); | ||
180 | D.text.bogus(); | ||
181 | edje.bogus2(); | ||
182 | |||
171 | --// Fun with maps! | 183 | --// Fun with maps! |
172 | D.map = edje.map(4); --// 4 is the only supported map size at the moment. | 184 | D.map = edje.map(4); --// 4 is the only supported map size at the moment. |
173 | --// These all do the same thing. | 185 | --// These all do the same thing. |
diff --git a/libraries/edje/src/examples/multisense.edc b/libraries/edje/src/examples/multisense.edc new file mode 100644 index 0000000..5a3cf79 --- /dev/null +++ b/libraries/edje/src/examples/multisense.edc | |||
@@ -0,0 +1,139 @@ | |||
1 | #if 0 | ||
2 | collections { | ||
3 | sounds { | ||
4 | sample { | ||
5 | name: "sound_name1" RAW; | ||
6 | source: "8806__jovica__basic-sine-wave-g-1.wav"; | ||
7 | // source: "sample.wav"; | ||
8 | // source: "sample-flac10k.wav"; | ||
9 | // source: "sample-flac10k-mono.wav"; | ||
10 | } | ||
11 | // sample { | ||
12 | // name: "sound_name2" COMP; | ||
13 | // source: "sample.wav"; | ||
14 | // } | ||
15 | /* | ||
16 | sample { | ||
17 | name: "sound_name3" LOSSY 0.5; | ||
18 | source: "sample.wav"; | ||
19 | } | ||
20 | sample { | ||
21 | name: "sound_name4" AS_IS; | ||
22 | source: "sample.wav"; | ||
23 | } | ||
24 | */ | ||
25 | sample { | ||
26 | // name: "sound_name5" AS_IS; | ||
27 | // name: "sound_name5" COMP; | ||
28 | name: "sound_name5" RAW; | ||
29 | // source: "sample-ogg.wav"; | ||
30 | source: "sample-ogg-mono.wav"; | ||
31 | // source: "sample-ogg10k.wav"; | ||
32 | // source: "sample-flac10k.wav"; | ||
33 | // source: "sample-flac10k-mono.wav"; | ||
34 | } | ||
35 | sample { | ||
36 | name: "sound_name6" AS_IS; | ||
37 | // name: "sound_name6" LOSSY 45.0; | ||
38 | source: "sample-flac44k-mono.wav"; | ||
39 | // source: "sample-flac.wav"; | ||
40 | // source: "sample.ogg"; | ||
41 | } | ||
42 | tone: "tone-name" 2600; | ||
43 | } | ||
44 | group { | ||
45 | name: "example_group"; | ||
46 | parts { | ||
47 | part { | ||
48 | name: "sample_bg"; | ||
49 | type: RECT; | ||
50 | mouse_events: 1; | ||
51 | description { | ||
52 | state: "default" 0.0; | ||
53 | min: 300 150; | ||
54 | max: 300 150; | ||
55 | color: 200 200 200 100; | ||
56 | align: 0.5 0.0; | ||
57 | rel1 { | ||
58 | relative: 0.0 0.0; | ||
59 | } | ||
60 | } | ||
61 | } | ||
62 | part { | ||
63 | name: "sample_text"; | ||
64 | type: TEXT; | ||
65 | mouse_events: 1; | ||
66 | repeat_events: 1; | ||
67 | description { | ||
68 | state: "default" 0.0; | ||
69 | rel1.to: "sample_bg"; | ||
70 | rel2.to: "sample_bg"; | ||
71 | text { | ||
72 | font: "Sans"; | ||
73 | size: 20; | ||
74 | text: "Play Sound Sample"; | ||
75 | } | ||
76 | } | ||
77 | } | ||
78 | part { | ||
79 | name: "tone_bg"; | ||
80 | type: RECT; | ||
81 | mouse_events: 1; | ||
82 | description { | ||
83 | state: "default" 0.0; | ||
84 | min: 300 150; | ||
85 | max: 300 150; | ||
86 | align: 0.5 0.0; | ||
87 | color: 180 180 180 100; | ||
88 | rel1 { | ||
89 | relative: 0.0 1.0; | ||
90 | to: "sample_bg"; | ||
91 | } | ||
92 | } | ||
93 | } | ||
94 | part { | ||
95 | name: "tone_text"; | ||
96 | type: TEXT; | ||
97 | mouse_events: 1; | ||
98 | repeat_events : 1; | ||
99 | description { | ||
100 | state: "default" 0.0; | ||
101 | rel1.to: "tone_bg"; | ||
102 | rel2.to: "tone_bg"; | ||
103 | text { | ||
104 | font: "Sans"; | ||
105 | size: 20; | ||
106 | text: "Play Tone"; | ||
107 | } | ||
108 | } | ||
109 | } | ||
110 | programs { | ||
111 | program { | ||
112 | name: "click_sample1"; | ||
113 | signal: "mouse,down,1"; | ||
114 | source: "sample_bg"; | ||
115 | action: PLAY_SAMPLE "sound_name1" 1.0; | ||
116 | } | ||
117 | program { | ||
118 | name: "click_sample2"; | ||
119 | signal: "mouse,down,2"; | ||
120 | source: "sample_bg"; | ||
121 | action: PLAY_SAMPLE "sound_name5" 1.0; | ||
122 | } | ||
123 | program { | ||
124 | name: "click_sample3"; | ||
125 | signal: "mouse,down,3"; | ||
126 | source: "sample_bg"; | ||
127 | action: PLAY_SAMPLE "sound_name6" 1.0; | ||
128 | } | ||
129 | program { | ||
130 | name: "click_tone"; | ||
131 | signal: "mouse,down,1"; | ||
132 | source: "tone_bg"; | ||
133 | action: PLAY_TONE "tone-name" 0.1; | ||
134 | } | ||
135 | } | ||
136 | } | ||
137 | } | ||
138 | } | ||
139 | #endif | ||
diff --git a/libraries/edje/src/examples/signals-messages.edc b/libraries/edje/src/examples/signals-messages.edc index 45d9c58..b251368 100644 --- a/libraries/edje/src/examples/signals-messages.edc +++ b/libraries/edje/src/examples/signals-messages.edc | |||
@@ -105,10 +105,10 @@ collections { | |||
105 | if ((type == MSG_INT_SET) && (id == MSG_COLOR)) { | 105 | if ((type == MSG_INT_SET) && (id == MSG_COLOR)) { |
106 | new r, g, b, a; | 106 | new r, g, b, a; |
107 | 107 | ||
108 | r = getarg(3); | 108 | r = getarg(2); |
109 | g = getarg(4); | 109 | g = getarg(3); |
110 | b = getarg(5); | 110 | b = getarg(4); |
111 | a = getarg(6); | 111 | a = getarg(5); |
112 | 112 | ||
113 | set_color_class("cc", r, g, b, a); | 113 | set_color_class("cc", r, g, b, a); |
114 | } | 114 | } |