diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-08-04 16:44:52 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-08-09 15:39:12 +0800 |
commit | ba463ebba852b332f20338b9f31ebf97cc72f6aa (patch) | |
tree | a2d0131ae7a04141c0616bd2ff0db074459587d7 | |
parent | c5ee728c20b2d04aa69f21feefcbdd8c6ca0ba36 (diff) | |
download | atk-ba463ebba852b332f20338b9f31ebf97cc72f6aa.tar.gz |
meson: Build .rc file on Windows
Like the Visual Studio projects and autotools builds on Windows, include
the .rc file for Windows builds, so that people can see the version info
of the ATK DLL more easily.
https://bugzilla.gnome.org/show_bug.cgi?id=785802
-rw-r--r-- | atk/atk.rc.in | 2 | ||||
-rw-r--r-- | atk/meson.build | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/atk/atk.rc.in b/atk/atk.rc.in index 3bc0cb3..b572cca 100644 --- a/atk/atk.rc.in +++ b/atk/atk.rc.in @@ -17,7 +17,7 @@ VS_VERSION_INFO VERSIONINFO VALUE "FileDescription", "atk" VALUE "FileVersion", "@ATK_VERSION@.0" VALUE "InternalName", "libatk-1.0-@LT_CURRENT_MINUS_AGE@" - VALUE "LegalCopyright", "Copyright © Sun Microsystems Inc." + VALUE "LegalCopyright", "Copyright Sun Microsystems Inc." VALUE "OriginalFilename", "libatk-1.0-@LT_CURRENT_MINUS_AGE@.dll" VALUE "ProductName", "atk" VALUE "ProductVersion", "@ATK_VERSION@" diff --git a/atk/meson.build b/atk/meson.build index 014001a..b014009 100644 --- a/atk/meson.build +++ b/atk/meson.build @@ -77,6 +77,7 @@ atk_version_conf.set('ATK_MINOR_VERSION', atk_minor_version) atk_version_conf.set('ATK_MICRO_VERSION', atk_micro_version) atk_version_conf.set('ATK_BINARY_AGE', atk_binary_age) atk_version_conf.set('ATK_INTERFACE_AGE', atk_interface_age) +atk_version_conf.set('LT_CURRENT_MINUS_AGE', '0') atk_version_h = configure_file(input: 'atkversion.h.in', output: 'atkversion.h', @@ -108,6 +109,16 @@ atk_cflags = [ '-DATK_LOCALEDIR="@0@"'.format(join_paths(atk_datadir, 'locale')), ] +if host_system == 'windows' + atk_win_rc = configure_file( + input: 'atk.rc.in', + output: 'atk.rc', + configuration: atk_version_conf, + ) + atk_win_res = import('windows').compile_resources(atk_win_rc) + atk_sources += atk_win_res +endif + atk_inc = include_directories('.') libatk = shared_library('atk-@0@'.format(atk_api_version), |