cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a73ca351de75ae39743db6bbe1a89243988ba970

commit a73ca351de75ae39743db6bbe1a89243988ba970
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Wed Apr 13 17:27:31 2016 -0700

    autotools: track dependencies for partial sub build.
---
 m4/efl.m4 | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/m4/efl.m4 b/m4/efl.m4
index ce04bb5..ea686b7 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

-- 


Reply via email to