* give the possibility to set edje_cc (useful when cross compiling)
* clean .edj files
Next part: use eina_prefix to select edj and png files
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@68130
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
)
AM_CONDITIONAL([EDJE_AMALGAMATION], [test "x${do_amalgamation}" = "xyes"])
+EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
+
EFL_ENABLE_BIN([edje-cc])
EFL_ENABLE_BIN([edje-decc])
EFL_ENABLE_BIN([edje-recc])
[
if test "x${enableval}" = "xyes" ; then
build_examples="yes"
- edje_cc=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc
- # put in here the dependencies for Edje' examples. They are
- # meant to be 'real world' usage examples, thus one will be
- # using higher level libraries on these programs
- AC_SUBST(edje_cc)
else
build_examples="no"
fi
AS_IF([test "x$have_[]m4_defn([DOWN])" = "xyes"], [$2], [$3])
])
+
+
+dnl Macro that check if a binary is built or not
+
+dnl Usage: EFL_WITH_BIN(package, binary, default_value)
+dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user)
+
+AC_DEFUN([EFL_WITH_BIN],
+[
+
+m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl
+
+dnl configure option
+
+AC_ARG_WITH([$2],
+ [AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=$3@:>@])],
+ [_efl_with_binary=${withval}],
+ [_efl_with_binary=$(pkg-config --variable=prefix $1)/bin/$3])
+
+DOWN=${_efl_with_binary}
+AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])
+
+with_binary_[]m4_defn([DOWN])=${_efl_with_binary}
+
+AC_SUBST(DOWN)
+
+])
MAINTAINERCLEANFILES = Makefile.in
+EDJE_CC = @edje_cc@
+EDJE_CC_FLAGS_VERBOSE_0 =
+EDJE_CC_FLAGS_VERBOSE_1 = -v
+EDJE_CC_FLAGS = $(EDJE_CC_FLAGS_$(V)) -id $(srcdir) -fd $(srcdir)
+
examplesdir = $(datadir)/$(PACKAGE)/examples
if ENABLE_MULTISENSE
$(MULTISENSE_EDC_FILE)
.edc.edj:
- $(edje_cc) -v -fd $(srcdir) -id $(srcdir) $(SND_DIR) $< $(builddir)/$(@F)
+ $(EDJE_CC) $(EDJE_CC_FLAGS) $(SND_DIR) $< $(builddir)/$(@F)
+
EDJS = $(EDCS:%.edc=%.edj)
files_DATA += $(EDJS)
examples_PROGRAMS = \
+ edje-animations \
edje-basic \
- edje-swallow \
- edje-text \
- edje-table \
edje-box \
edje-box2 \
- edje-drag\
- edje-signals-messages \
edje-color-class \
+ edje-drag\
edje-perspective \
- edje-animations \
+ edje-signals-messages \
+ edje-swallow \
+ edje-table \
+ edje-text \
sigtest
LDADD = $(top_builddir)/src/lib/libedje.la @EDJE_LIBS@
endif
+
+clean-local:
+ rm -f *.edj