Eolian: Added an helper to call eolian_gen from within the project.
authorTom Hacohen <tom@stosb.com>
Tue, 11 Feb 2014 15:25:41 +0000 (15:25 +0000)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Mon, 3 Mar 2014 12:09:54 +0000 (14:09 +0200)
configure.ac
src/Makefile_Eolian.am

index a35930a34c23af4418885ccb0a4a8a7965942233..2a8f2d486f7fe29208a07d47c9c207ee140e730e 100644 (file)
@@ -145,6 +145,7 @@ AC_SUBST(dbusservicedir)
 
 efl_deprecated_option="no"
 EFL_WITH_BIN([edje], [edje-cc])
+EFL_WITH_BIN([eolian], [eolian-gen])
 
 
 #### Default values
index 5403ec94f79435ec981a9d16be540473cc575c70..4a51d13c0bd9afe030860fd01e2a129af8934986 100644 (file)
@@ -39,4 +39,16 @@ bin_eolian_eolian_gen_LDADD = @USE_EOLIAN_LIBS@
 bin_eolian_eolian_gen_DEPENDENCIES = @USE_EOLIAN_INTERNAL_LIBS@
 
 
+### Helper for other modules using Eolian
+
+if HAVE_EOLIAN_GEN
+EOLIAN_GEN = @eolian_gen@
+else
+EOLIAN_GEN = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/eolian/eolian_gen${EXEEXT}
+endif
+
+AM_V_EOL = $(am__v_EOL_@AM_V@)
+am__v_EOL_ = $(am__v_EOL_@AM_DEFAULT_V@)
+am__v_EOL_0 = @echo "  EOLIAN   " $@;
+
 EXTRA_DIST += lib/eolian/eo_lexer.rl