summaryrefslogtreecommitdiff
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
parentba4796d1b2d9b86c09d0a9d463fefcb8f253e75d (diff)
autotools: track dependencies for partial sub build.
-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
374m4_popdef([DOWN])dnl 374m4_popdef([DOWN])dnl
375]) 375])
376 376
377dnl EFL_LIBS_SUBBUILD(TARGET, DEPENDENCIES)
378dnl Make TARGET contain all DEPENDENCIES relative to SUBDIR build
379AC_DEFUN([EFL_LIBS_SUBBUILD],
380[dnl
381$1=""
382_SUBDIR="../../"
383
384for dep in $2; do
385 case $dep in
386 lib*.la)
387 _DEPENDENCY=$_SUBDIR$dep
388 ;;
389 *)
390 _DEPENDENCY=$dep
391 ;;
392 esac
393
394 $1=${$1}" ${_DEPENDENCY}"
395done
396
397AC_SUBST([$1])
398])
399
377dnl EFL_LIB_END(PKG) 400dnl EFL_LIB_END(PKG)
378dnl finishes the setup of an EFL library 401dnl finishes the setup of an EFL library
379AC_DEFUN([EFL_LIB_END], 402AC_DEFUN([EFL_LIB_END],
@@ -393,6 +416,10 @@ m4_defn([UP])_CFLAGS="${EFLALL_COV_CFLAGS} ${EFLALL_CFLAGS} ${m4_defn([UP])_CFLA
393requirements_pc_[]m4_defn([DOWN])="${requirements_pc_[]m4_defn([DOWN])} ${requirements_pc_eflall}" 416requirements_pc_[]m4_defn([DOWN])="${requirements_pc_[]m4_defn([DOWN])} ${requirements_pc_eflall}"
394requirements_pc_deps_[]m4_defn([DOWN])="${requirements_pc_deps_[]m4_defn([DOWN])} ${requirements_pc_deps_eflall}" 417requirements_pc_deps_[]m4_defn([DOWN])="${requirements_pc_deps_[]m4_defn([DOWN])} ${requirements_pc_deps_eflall}"
395 418
419EFL_LIBS_SUBBUILD(m4_defn([UP])_SUBBUILD_LIBS, ${m4_defn([UP])_LIBS})
420EFL_LIBS_SUBBUILD(m4_defn([UP])_SUBBUILD_INTERNAL_LIBS, ${m4_defn([UP])_INTERNAL_LIBS})
421EFL_LIBS_SUBBUILD(USE_[]m4_defn([UP])_SUBBUILD_LIBS, "USE_[]m4_defn([UP])_LIBS")
422
396AC_MSG_NOTICE([Finished $1 checks])dnl 423AC_MSG_NOTICE([Finished $1 checks])dnl
397m4_popdef([UP])dnl 424m4_popdef([UP])dnl
398m4_popdef([DOWN])dnl 425m4_popdef([DOWN])dnl