mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
build: Disable deprecated symbols during development cycles
And add a configure switch to toggle them.
This commit is contained in:
parent
4382e6588c
commit
a7fc76a1c5
@ -28,12 +28,9 @@ AM_CPPFLAGS = \
|
||||
-DCLUTTER_DATADIR=\""$(datadir)"\" \
|
||||
-DCLUTTER_LOCALEDIR=\""$(localedir)"\" \
|
||||
-DCLUTTER_COMPILATION=1 \
|
||||
-DCLUTTER_DISABLE_DEPRECATED \
|
||||
-DCOGL_DISABLE_DEPRECATED \
|
||||
-DCOGL_ENABLE_EXPERIMENTAL_API \
|
||||
-DG_DISABLE_DEPRECATED \
|
||||
-DG_DISABLE_SINGLE_INCLUDES \
|
||||
-DG_LOG_DOMAIN=\"Clutter\" \
|
||||
$(CLUTTER_DEPRECATED_CFLAGS) \
|
||||
$(CLUTTER_DEBUG_CFLAGS) \
|
||||
$(CLUTTER_PROFILE_CFLAGS) \
|
||||
$(NULL)
|
||||
|
33
configure.ac
33
configure.ac
@ -687,6 +687,38 @@ AS_CASE([$enable_debug],
|
||||
|
||||
AC_SUBST(CLUTTER_DEBUG_CFLAGS)
|
||||
|
||||
dnl === Enable deprecation guards ==================================================
|
||||
|
||||
m4_define([deprecated_default],
|
||||
[m4_if(m4_eval(clutter_minor_version % 2),
|
||||
[1],
|
||||
[no],
|
||||
[yes])])
|
||||
|
||||
AC_ARG_ENABLE([deprecated],
|
||||
[AS_HELP_STRING([--enable-deprecated=@<:@no/yes@:>@],
|
||||
[Whether deprecated symbols should be disabled when compiling Clutter])],
|
||||
[],
|
||||
[enable_deprecated=deprecated_default])
|
||||
|
||||
AS_CASE([$enable_deprecated],
|
||||
|
||||
[no],
|
||||
[
|
||||
CLUTTER_DEPRECATED_CFLAGS="-DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DCOGL_DISABLE_DEPRECATED -DCLUTTER_DISABLE_DEPRECATED"
|
||||
],
|
||||
|
||||
[yes],
|
||||
[
|
||||
CLUTTER_DEPRECATED_CFLAGS=""
|
||||
],
|
||||
|
||||
[AC_MSG_ERROR([Unknown argument for --enable-deprecated])]
|
||||
)
|
||||
|
||||
AC_SUBST([CLUTTER_DEPRECATED_CFLAGS])
|
||||
|
||||
|
||||
dnl === Conformance test suite ================================================
|
||||
|
||||
AC_ARG_ENABLE([conformance],
|
||||
@ -955,6 +987,7 @@ echo " Clutter debug level: ${enable_debug}"
|
||||
echo " Compiler flags: ${CFLAGS} ${MAINTAINER_CFLAGS}"
|
||||
echo " Profiling enabled: ${enable_profile}"
|
||||
echo " Enable coverage tests: ${enable_gcov}"
|
||||
echo " Enable deprecated symbols: ${enable_deprecated}"
|
||||
|
||||
# Documentation
|
||||
echo ""
|
||||
|
Loading…
Reference in New Issue
Block a user