From f8fde3d5606713f4625b9d18e9ce50de86b2166b Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Fri, 11 Jan 2013 03:57:29 +0000 Subject: [PATCH] efl: fix out-of-tree build of examples. edje and embryo include files are in source dir, not build. codegen example must have dependency to build in correct order :-/ SVN revision: 82605 --- src/Makefile_Edje.am | 1 + src/Makefile_Embryo.am | 2 +- src/bin/edje/edje_cc_out.c | 2 +- src/bin/embryo/embryo_cc_sc1.c | 2 +- src/examples/ecore/Makefile.am | 2 ++ src/examples/edje/Makefile.am | 3 +++ 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Makefile_Edje.am b/src/Makefile_Edje.am index b2895817c2..199f0d8bde 100644 --- a/src/Makefile_Edje.am +++ b/src/Makefile_Edje.am @@ -35,6 +35,7 @@ EDJE_COMMON_CPPFLAGS = \ -DPACKAGE_LIB_DIR=\"$(libdir)\" \ -DPACKAGE_DATA_DIR=\"$(datadir)/edje\" \ -DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \ +-DPACKAGE_SRC_DIR=\"`pwd`/$(top_srcdir)\" \ -DEFL_EDJE_BUILD \ @EFL_COV_CFLAGS@ \ @EDJE_CFLAGS@ \ diff --git a/src/Makefile_Embryo.am b/src/Makefile_Embryo.am index ab224d50d6..8d07096f30 100644 --- a/src/Makefile_Embryo.am +++ b/src/Makefile_Embryo.am @@ -61,7 +61,7 @@ bin_embryo_embryo_cc_CPPFLAGS = \ -DPACKAGE_BIN_DIR=\"$(bindir)\" \ -DPACKAGE_LIB_DIR=\"$(libdir)\" \ -DPACKAGE_DATA_DIR=\"$(datadir)/embryo\" \ --DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \ +-DPACKAGE_SRC_DIR=\"`pwd`/$(top_srcdir)\" \ @EMBRYO_CFLAGS@ \ @USE_EVIL_CFLAGS@ diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c index bdd213bfc8..e3dd3d76d5 100644 --- a/src/bin/edje/edje_cc_out.c +++ b/src/bin/edje/edje_cc_out.c @@ -1294,7 +1294,7 @@ data_write_scripts(Eet_File *ef) "%s/src/bin/embryo/embryo_cc" BIN_EXT, PACKAGE_BUILD_DIR); snprintf(inc_path, sizeof(inc_path), - "%s/data/edje/include", PACKAGE_BUILD_DIR); + "%s/data/edje/include", PACKAGE_SRC_DIR); if (!ecore_file_exists(embryo_cc_path)) embryo_cc_path[0] = '\0'; } diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c index f941041182..c8d534b47d 100644 --- a/src/bin/embryo/embryo_cc_sc1.c +++ b/src/bin/embryo/embryo_cc_sc1.c @@ -583,7 +583,7 @@ parseoptions(int argc, char **argv, char *iname, char *oname, if (getenv("EFL_RUN_IN_TREE")) { struct stat st; - snprintf(str, sizeof(str), "%s/data/embryo/", PACKAGE_BUILD_DIR); + snprintf(str, sizeof(str), "%s/data/embryo/", PACKAGE_SRC_DIR); if (stat(str, &st) != 0) str[0] = '\0'; } diff --git a/src/examples/ecore/Makefile.am b/src/examples/ecore/Makefile.am index 3f8627303f..12a6e11eea 100644 --- a/src/examples/ecore/Makefile.am +++ b/src/examples/ecore/Makefile.am @@ -6,6 +6,8 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src/lib/evas \ -I$(top_srcdir)/src/lib/ecore \ -I$(top_srcdir)/src/lib/ecore_input \ +-I$(top_srcdir)/src/lib/ecore_file \ +-I$(top_srcdir)/src/lib/ecore_imf \ -I$(top_srcdir)/src/lib/ecore_con \ -I$(top_srcdir)/src/lib/ecore_evas \ -I$(top_srcdir)/src/lib/ecore_audio \ diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am index e392dea50f..518e2eb5ea 100644 --- a/src/examples/edje/Makefile.am +++ b/src/examples/edje/Makefile.am @@ -113,6 +113,7 @@ EXTRA_DIST = $(DIST_EDCS) $(DATA_FILES) AM_CPPFLAGS = \ -I. \ +-I$(builddir) \ -I$(top_srcdir)/src/lib/eina \ -I$(top_builddir)/src/lib/eina \ -I$(top_srcdir)/src/lib/eo \ @@ -147,6 +148,8 @@ codegen_example_generated.h codegen_example_generated.c codegen_example_generated.h: codegen.edj $(AM_V_GEN)$(EDJE_CODEGEN) $(EDJE_CODEGEN_FLAGS) codegen.edj example_group $(builddir)/codegen_example_generated.c $(builddir)/codegen_example_generated.h +edje-codegen-example.$(OBJEXT): $(CODEGEN_GENERATED) + edje_codegen_example_SOURCES = \ edje-codegen-example.c nodist_edje_codegen_example_SOURCES = \