build: Add infrastructure for inserting Requires.private into pkg-config files
This commit is contained in:
parent
a9e6137f47
commit
4afe793eed
2 changed files with 7 additions and 0 deletions
|
@ -5,6 +5,7 @@ includedir=@includedir@
|
|||
|
||||
apiversion=@CLUTTER_API_VERSION@
|
||||
requires=@CLUTTER_REQUIRES@
|
||||
requires_private=@CLUTTER_REQUIRES_PRIVATE@
|
||||
backends=@CLUTTER_BACKENDS@
|
||||
|
||||
# only kept for backward compatibility
|
||||
|
@ -20,3 +21,4 @@ Version: @VERSION@
|
|||
Libs: -L${libdir} -lclutter-${apiversion}
|
||||
Cflags: -I${includedir}/clutter-${apiversion}
|
||||
Requires: ${requires}
|
||||
Requires.private: ${requires_private}
|
||||
|
|
|
@ -958,6 +958,11 @@ CLUTTER_REQUIRES="$CLUTTER_BASE_PC_FILES $IMAGE_PC_FILES $BACKEND_PC_FILES"
|
|||
PKG_CHECK_MODULES(CLUTTER_DEPS, [$CLUTTER_REQUIRES])
|
||||
AC_SUBST(CLUTTER_REQUIRES)
|
||||
|
||||
|
||||
CLUTTER_REQUIRES_PRIVATE="$CLUTTER_BASE_PC_FILES_PRIVATE $IMAGE_PC_FILES_PRIVATE $BACKEND_PC_FILES_PRIVATE"
|
||||
PKG_CHECK_MODULES(CLUTTER_DEPS_PRIVATE, [$CLUTTER_REQUIRES_PRIVATE])
|
||||
AC_SUBST(CLUTTER_REQUIRES_PRIVATE)
|
||||
|
||||
CLUTTER_CFLAGS="$FLAVOUR_CFLAGS $CLUTTER_DEPS_CFLAGS $CLUTTER_PROFILE_CFLAGS $GLIB_CFLAGS"
|
||||
CLUTTER_LIBS="$FLAVOUR_LIBS $CLUTTER_DEPS_LIBS $CLUTTER_PROFILE_LDFLAGS $GLIB_LIBS"
|
||||
AC_SUBST(CLUTTER_CFLAGS)
|
||||
|
|
Loading…
Reference in a new issue