Fix generation path to theme, for enventor library.

In case when enventor library initialized by another application,
function elm_app_data_get_dir() return data dir of the parent
application.
Now on precompilation stage (automake) path to enventor theme
will be added to internal usage. It make no dependencies from
parent application.

@fix T1285
This commit is contained in:
Mykyta Biliavskyi 2015-06-03 18:55:34 +00:00 committed by ChunEon Park
parent 00a7e03432
commit d6d69eb6c7
3 changed files with 7 additions and 3 deletions

View File

@ -110,6 +110,9 @@ EFL_WITH_BIN([eolian-cxx], [eolian-cxx], [eolian_cxx])
AM_CONDITIONAL([HAVE_EOLIAN_GEN], [true])
AM_CONDITIONAL([HAVE_EOLIAN_CXX], [true])
ENVENTOR_DEFINE=" -DENVENTOR_THEME_PATH=\\\"${datadir}/enventor/themes/\\\" "
AC_SUBST([ENVENTOR_DEFINE])
AC_CONFIG_FILES([
Makefile
src/Makefile

View File

@ -14,7 +14,8 @@ AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-I$(top_srcdir)/src/bin \
-I$(top_srcdir)/src/include \
@ENVENTOR_CFLAGS@
@ENVENTOR_CFLAGS@ \
@ENVENTOR_DEFINE@
lib_LTLIBRARIES = libenventor.la

View File

@ -94,8 +94,8 @@ enventor_init(int argc, char **argv)
_enventor_log_dom = EINA_LOG_DOMAIN_GLOBAL;
}
snprintf(EDJE_PATH, sizeof(EDJE_PATH), "%s/themes/enventor.edj",
elm_app_data_dir_get());
snprintf(EDJE_PATH, sizeof(EDJE_PATH), "%s/enventor.edj",
ENVENTOR_THEME_PATH);
srand(time(NULL));