diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-08-04 15:33:06 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-08-17 15:14:54 +0800 |
commit | c1a8ca5c6536246cb094a1d1eda149a3740e5521 (patch) | |
tree | 03235d2a4bc144ff582b9f01eac013659f9fa18a /gdk-pixbuf | |
parent | 480e4834115a10b3f81615527803c5601ff18c77 (diff) | |
download | gdk-pixbuf-c1a8ca5c6536246cb094a1d1eda149a3740e5521.tar.gz |
build: Build the .rc file on Windows
Like the autotools and Visual Studio builds, include the .rc file in the
main GDK-Pixbuf DLL so that people can determine its version info
more easily. Determine current - age as we did in the autotools builds.
https://bugzilla.gnome.org/show_bug.cgi?id=785767
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/meson.build | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdk-pixbuf/meson.build b/gdk-pixbuf/meson.build index f15ad2bdb..209c2c45f 100644 --- a/gdk-pixbuf/meson.build +++ b/gdk-pixbuf/meson.build @@ -43,6 +43,8 @@ gdkpixbuf_features_conf.set('GDK_PIXBUF_MAJOR', gdk_pixbuf_version_major) gdkpixbuf_features_conf.set('GDK_PIXBUF_MINOR', gdk_pixbuf_version_minor) gdkpixbuf_features_conf.set('GDK_PIXBUF_MICRO', gdk_pixbuf_version_micro) gdkpixbuf_features_conf.set('GDK_PIXBUF_VERSION', meson.project_version()) +gdkpixbuf_features_conf.set('GDK_PIXBUF_API_VERSION', gdk_pixbuf_api_version) +gdkpixbuf_features_conf.set('LT_CURRENT_MINUS_AGE', current_minus_age) gdk_pixbuf_features_h = configure_file(input: 'gdk-pixbuf-features.h.in', output: 'gdk-pixbuf-features.h', @@ -89,6 +91,16 @@ gdkpixbuf_enums = gnome.mkenums('gdk-pixbuf-enum-types', install_dir: join_paths(gdk_pixbuf_includedir, gdk_pixbuf_api_path)) gdkpixbuf_enum_h = gdkpixbuf_enums[1] +if host_system == 'windows' + gdk_pixbuf_win_rc = configure_file( + input: 'gdk_pixbuf.rc.in', + output: 'gdk_pixbuf.rc', + configuration: gdkpixbuf_features_conf, + ) + gdk_pixbuf_win_res = import('windows').compile_resources(gdk_pixbuf_win_rc) + gdkpixbuf_sources += gdk_pixbuf_win_res +endif + # Check if we need to build loaders as built-in functionality included_loaders_cflags = [] included_loaders_deps = [] |