diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2016-04-13 17:27:31 -0700 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2016-04-14 15:52:50 -0700 |
commit | a73ca351de75ae39743db6bbe1a89243988ba970 (patch) | |
tree | 0f8396f322dfb473d142ea59a8629e38dfb1015f /m4 | |
parent | ba4796d1b2d9b86c09d0a9d463fefcb8f253e75d (diff) | |
download | efl-a73ca351de75ae39743db6bbe1a89243988ba970.tar.gz |
autotools: track dependencies for partial sub build.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/efl.m4 | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -374,6 +374,29 @@ m4_popdef([UP])dnl m4_popdef([DOWN])dnl ]) +dnl EFL_LIBS_SUBBUILD(TARGET, DEPENDENCIES) +dnl Make TARGET contain all DEPENDENCIES relative to SUBDIR build +AC_DEFUN([EFL_LIBS_SUBBUILD], +[dnl +$1="" +_SUBDIR="../../" + +for dep in $2; do + case $dep in + lib*.la) + _DEPENDENCY=$_SUBDIR$dep + ;; + *) + _DEPENDENCY=$dep + ;; + esac + + $1=${$1}" ${_DEPENDENCY}" +done + +AC_SUBST([$1]) +]) + dnl EFL_LIB_END(PKG) dnl finishes the setup of an EFL library AC_DEFUN([EFL_LIB_END], @@ -393,6 +416,10 @@ m4_defn([UP])_CFLAGS="${EFLALL_COV_CFLAGS} ${EFLALL_CFLAGS} ${m4_defn([UP])_CFLA requirements_pc_[]m4_defn([DOWN])="${requirements_pc_[]m4_defn([DOWN])} ${requirements_pc_eflall}" requirements_pc_deps_[]m4_defn([DOWN])="${requirements_pc_deps_[]m4_defn([DOWN])} ${requirements_pc_deps_eflall}" +EFL_LIBS_SUBBUILD(m4_defn([UP])_SUBBUILD_LIBS, ${m4_defn([UP])_LIBS}) +EFL_LIBS_SUBBUILD(m4_defn([UP])_SUBBUILD_INTERNAL_LIBS, ${m4_defn([UP])_INTERNAL_LIBS}) +EFL_LIBS_SUBBUILD(USE_[]m4_defn([UP])_SUBBUILD_LIBS, "USE_[]m4_defn([UP])_LIBS") + AC_MSG_NOTICE([Finished $1 checks])dnl m4_popdef([UP])dnl m4_popdef([DOWN])dnl |