diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-06-16 07:16:01 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-06-22 13:57:26 -0400 |
commit | 7533b8e13551774b6adc385a36e87f637b7c97e1 (patch) | |
tree | 13819cb7b471865c44fe8f02dc93062f63780c7c /pango | |
parent | 1bcf743b9e9aab8e0a085fdb415fb379423861ed (diff) | |
download | pango-7533b8e13551774b6adc385a36e87f637b7c97e1.tar.gz |
Add PANGO_RENDERING_CAIRO
To check something before including pangocairo.h
Diffstat (limited to 'pango')
-rw-r--r-- | pango/meson.build | 3 | ||||
-rw-r--r-- | pango/pango-features.h.meson | 2 | ||||
-rw-r--r-- | pango/pango-utils.h | 8 |
3 files changed, 12 insertions, 1 deletions
diff --git a/pango/meson.build b/pango/meson.build index cfefc641..78514ec9 100644 --- a/pango/meson.build +++ b/pango/meson.build @@ -170,6 +170,9 @@ pango_features_conf.set('PANGO_VERSION_MINOR', pango_minor_version) pango_features_conf.set('PANGO_VERSION_MICRO', pango_micro_version) pango_features_conf.set('PANGO_API_VERSION', pango_api_version) pango_features_conf.set('PANGO_CURRENT_MINUS_AGE', '0') +if cairo_dep.found() + pango_features_conf.set('PANGO_RENDERING_CAIRO', 1) +endif pango_features_h = configure_file( input: 'pango-features.h.meson', diff --git a/pango/pango-features.h.meson b/pango/pango-features.h.meson index d39343c8..d0043ff3 100644 --- a/pango/pango-features.h.meson +++ b/pango/pango-features.h.meson @@ -5,3 +5,5 @@ #mesondefine PANGO_VERSION_MICRO #define PANGO_VERSION_STRING "@PANGO_VERSION_MAJOR@.@PANGO_VERSION_MINOR@.@PANGO_VERSION_MICRO@" +# +#mesondefine PANGO_RENDERING_CAIRO diff --git a/pango/pango-utils.h b/pango/pango-utils.h index 75c082d3..0fd5507f 100644 --- a/pango/pango-utils.h +++ b/pango/pango-utils.h @@ -37,9 +37,15 @@ void pango_find_paragraph_boundary (const char *text, int *paragraph_delimiter_index, int *next_paragraph_start); -/* Pango version checking */ +/** + * PANGO_RENDERING_CAIRO: + * + * Defined to 1 at compile time if Pango was built with cairo support. + */ /* Encode a Pango version as an integer */ +/* Pango version checking */ + /** * PANGO_VERSION_ENCODE: * @major: the major component of the version number |