aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-04-13 17:27:31 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-04-14 15:52:50 -0700
commita73ca351de75ae39743db6bbe1a89243988ba970 (patch)
tree0f8396f322dfb473d142ea59a8629e38dfb1015f /m4
parentEo base: Improve documentation. (diff)
downloadefl-a73ca351de75ae39743db6bbe1a89243988ba970.tar.gz
autotools: track dependencies for partial sub build.
Diffstat (limited to 'm4')
-rw-r--r--m4/efl.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/m4/efl.m4 b/m4/efl.m4
index ce04bb5c7c..ea686b7e4c 100644
--- a/m4/efl.m4
+++ b/m4/efl.m4
@@ -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