diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2018-08-30 16:14:34 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2018-08-30 16:16:36 +0100 |
commit | 453c85215cb7f562866b0daef6a9b24a6957bf73 (patch) | |
tree | e04dc50d82c7dd77fad9ff1f43a391b2460b019c /pango/meson.build | |
parent | 2b93691f331115b7a18747163a5ec38e99392788 (diff) | |
download | pango-453c85215cb7f562866b0daef6a9b24a6957bf73.tar.gz |
build: Generate pkg-config files
Instead of using templates, ask Meson to generate the pkgconfig files
for us. This ensures that the generated files are:
- always valid
- always up to date with the build
- only built when needed without convoluted checks
Diffstat (limited to 'pango/meson.build')
-rw-r--r-- | pango/meson.build | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pango/meson.build b/pango/meson.build index 537b6bca..f8b484a5 100644 --- a/pango/meson.build +++ b/pango/meson.build @@ -153,6 +153,16 @@ libpango_dep = declare_dependency( sources: pango_dep_sources, ) +pkgconfig.generate(libpango, + name: 'Pango', + description: 'Internationalized text handling', + version: meson.project_version(), + filebase: 'pango', + subdirs: pango_api_name, + requires: gobject_dep, + install_dir: join_paths(pango_libdir, 'pkgconfig'), +) + # FreeType if build_pangoft2 pangoft2_headers = [ @@ -233,6 +243,16 @@ if build_pangoft2 dependencies: pango_deps + [ libpango_dep ], sources: pangoft2_dep_sources, ) + + pkgconfig.generate(libpangoft2, + name: 'Pango FT2 and Pango Fc', + description: 'Freetype 2.0 and fontconfig font support for Pango', + version: meson.project_version(), + filebase: 'pangoft2', + subdirs: pango_api_name, + requires: [ 'pango', freetype2_pc, fontconfig_pc ], + install_dir: join_paths(pango_libdir, 'pkgconfig'), + ) else # For usage as a subproject libpangoft2_dep = dependency('', required : false) @@ -292,6 +312,16 @@ if xft_dep.found() dependencies: pango_deps + [ libpango_dep, libpangoft2_dep ], sources: pangoxft_dep_sources, ) + + pkgconfig.generate(libpangoxft, + name: 'Pango Xft', + description: 'Xft font support for Pango', + version: meson.project_version(), + filebase: 'pangoxft', + subdirs: pango_api_name, + requires: [ 'pangoft2', 'xft' ], + install_dir: join_paths(pango_libdir, 'pkgconfig'), + ) else # For usage as a subproject libpangoxft_dep = dependency('', required: false) @@ -347,6 +377,16 @@ if host_system == 'windows' include_directories: root_inc, dependencies: pango_deps + [ libpango_dep ], ) + + pkgconfig.generate(libpangowin32, + name: 'Pango Win32', + description: 'Win32 GDI font support for Pango', + version: meson.project_version(), + filebase: 'pangowin32', + subdirs: pango_api_name, + requires: 'pango', + install_dir: join_paths(pango_libdir, 'pkgconfig'), + ) else # For usage as a subproject libpangowin32_dep = dependency('', required: false) @@ -446,6 +486,16 @@ if cairo_dep.found() dependencies: pango_deps + [ libpango_dep ], sources: pangocairo_dep_sources, ) + + pkgconfig.generate(libpangocairo, + name: 'Pango Cairo', + description: 'Cairo rendering support for Pango', + version: meson.project_version(), + filebase: 'pangocairo', + subdirs: pango_api_name, + requires: [ 'pango', cairo_pc ], + install_dir: join_paths(pango_libdir, 'pkgconfig'), + ) else # For usage as a subproject libpangocairo_dep = dependency('', required: false) |