mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 12:50:20 +01:00
[configure.ac.bulid] Break feature config into smaller hooks
This commit is contained in:
parent
3ed9787f43
commit
ee97873e0d
1 changed files with 22 additions and 16 deletions
|
|
@ -348,24 +348,9 @@ enabled_cairo_private += $(cairo_$1_private)
|
|||
enabled_cairo_sources += $(cairo_$1_sources)
|
||||
endif
|
||||
'
|
||||
dnl Collect warning message for enabled unsupported backends
|
||||
AS_IF([test "x$use_$1" = xyes -a "x]cr_feature_default[" = xno],
|
||||
[
|
||||
CAIRO_WARNING_MESSAGE="$CAIRO_WARNING_MESSAGE
|
||||
m4_text_wrap([The ]cr_feature_name[ feature is still under active development and is included in this release only as a preview. It does NOT fully work yet and incompatible changes may yet be made to ]cr_feature_name[ specific API.], [--- ],, 72)
|
||||
"
|
||||
])
|
||||
|
||||
dnl Collect warning message for disabled recommended backends
|
||||
AS_IF([test "x$use_$1" != xyes -a "x]cr_feature_default[" = xyes],
|
||||
[
|
||||
CAIRO_WARNING_MESSAGE="$CAIRO_WARNING_MESSAGE
|
||||
m4_text_wrap([It is strictly recommended that you do NOT disable the ]cr_feature_name[ backend.], [+++ ],, 72)
|
||||
"
|
||||
])
|
||||
|
||||
])
|
||||
|
||||
|
||||
dnl ===========================================================================
|
||||
dnl
|
||||
dnl Report
|
||||
|
|
@ -374,6 +359,27 @@ dnl
|
|||
dnl Accumulator for warning messages
|
||||
CAIRO_FEATURE_VARS_REGISTER([WARNING_MESSAGE])
|
||||
|
||||
dnl Collect warning message for enabled unsupported backends
|
||||
CAIRO_FEATURE_HOOK_REGISTER(no,*,
|
||||
[
|
||||
CAIRO_FEATURE_IF_ENABLED($1,
|
||||
[
|
||||
CAIRO_WARNING_MESSAGE="$CAIRO_WARNING_MESSAGE]m4_newline[m4_text_wrap([The ]cr_feature_name[ feature is still under active development and is included in this release only as a preview. It does NOT fully work yet and incompatible changes may yet be made to ]cr_feature_name[ specific API.], [--- ],, 78)
|
||||
"
|
||||
])
|
||||
])
|
||||
|
||||
dnl Collect warning message for disabled recommended backends
|
||||
CAIRO_FEATURE_HOOK_REGISTER(yes,*,
|
||||
[
|
||||
CAIRO_FEATURE_IF_ENABLED($1,
|
||||
[],[
|
||||
CAIRO_WARNING_MESSAGE="$CAIRO_WARNING_MESSAGE]m4_newline[m4_text_wrap([It is strictly recommended that you do NOT disable the ]cr_feature_name[ backend.], [+++ ],, 78)
|
||||
"
|
||||
])
|
||||
])
|
||||
|
||||
|
||||
AC_DEFUN([CAIRO_REPORT],
|
||||
[
|
||||
V="$CAIRO_VERSION_MAJOR.$CAIRO_VERSION_MINOR.$CAIRO_VERSION_MICRO"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue