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/efl.m4 | |
parent | ba4796d1b2d9b86c09d0a9d463fefcb8f253e75d (diff) |
autotools: track dependencies for partial sub build.
Diffstat (limited to '')
-rw-r--r-- | m4/efl.m4 | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -374,6 +374,29 @@ m4_popdef([UP])dnl | |||
374 | m4_popdef([DOWN])dnl | 374 | m4_popdef([DOWN])dnl |
375 | ]) | 375 | ]) |
376 | 376 | ||
377 | dnl EFL_LIBS_SUBBUILD(TARGET, DEPENDENCIES) | ||
378 | dnl Make TARGET contain all DEPENDENCIES relative to SUBDIR build | ||
379 | AC_DEFUN([EFL_LIBS_SUBBUILD], | ||
380 | [dnl | ||
381 | $1="" | ||
382 | _SUBDIR="../../" | ||
383 | |||
384 | for 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}" | ||
395 | done | ||
396 | |||
397 | AC_SUBST([$1]) | ||
398 | ]) | ||
399 | |||
377 | dnl EFL_LIB_END(PKG) | 400 | dnl EFL_LIB_END(PKG) |
378 | dnl finishes the setup of an EFL library | 401 | dnl finishes the setup of an EFL library |
379 | AC_DEFUN([EFL_LIB_END], | 402 | AC_DEFUN([EFL_LIB_END], |
@@ -393,6 +416,10 @@ m4_defn([UP])_CFLAGS="${EFLALL_COV_CFLAGS} ${EFLALL_CFLAGS} ${m4_defn([UP])_CFLA | |||
393 | requirements_pc_[]m4_defn([DOWN])="${requirements_pc_[]m4_defn([DOWN])} ${requirements_pc_eflall}" | 416 | requirements_pc_[]m4_defn([DOWN])="${requirements_pc_[]m4_defn([DOWN])} ${requirements_pc_eflall}" |
394 | requirements_pc_deps_[]m4_defn([DOWN])="${requirements_pc_deps_[]m4_defn([DOWN])} ${requirements_pc_deps_eflall}" | 417 | requirements_pc_deps_[]m4_defn([DOWN])="${requirements_pc_deps_[]m4_defn([DOWN])} ${requirements_pc_deps_eflall}" |
395 | 418 | ||
419 | EFL_LIBS_SUBBUILD(m4_defn([UP])_SUBBUILD_LIBS, ${m4_defn([UP])_LIBS}) | ||
420 | EFL_LIBS_SUBBUILD(m4_defn([UP])_SUBBUILD_INTERNAL_LIBS, ${m4_defn([UP])_INTERNAL_LIBS}) | ||
421 | EFL_LIBS_SUBBUILD(USE_[]m4_defn([UP])_SUBBUILD_LIBS, "USE_[]m4_defn([UP])_LIBS") | ||
422 | |||
396 | AC_MSG_NOTICE([Finished $1 checks])dnl | 423 | AC_MSG_NOTICE([Finished $1 checks])dnl |
397 | m4_popdef([UP])dnl | 424 | m4_popdef([UP])dnl |
398 | m4_popdef([DOWN])dnl | 425 | m4_popdef([DOWN])dnl |