[gtk/gtk-3-24-meson: 89/89] meson/MSVC: Copy xxx-3.lib to xxx-3.0.lib upon post-install
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24-meson: 89/89] meson/MSVC: Copy xxx-3.lib to xxx-3.0.lib upon post-install
- Date: Wed, 10 Apr 2019 08:27:39 +0000 (UTC)
commit e8fa678b21042c7daab0a6b77ae0d67e794e65d9
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Apr 8 12:49:02 2019 +0800
meson/MSVC: Copy xxx-3.lib to xxx-3.0.lib upon post-install
This ensures that current Visual Studio project files and NMake
Makefiles (which do not use pkg-config files) do not break with the
Meson-built GTK-3.x libraries.
build-aux/meson/post-install.py | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/build-aux/meson/post-install.py b/build-aux/meson/post-install.py
index f526bc81bf..71edc4da80 100644
--- a/build-aux/meson/post-install.py
+++ b/build-aux/meson/post-install.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
import os
+import shutil
import sys
import subprocess
@@ -16,6 +17,14 @@ if 'DESTDIR' not in os.environ:
gtk_immodule_dir = os.path.join(gtk_moduledir, 'immodules')
gtk_printmodule_dir = os.path.join(gtk_moduledir, 'printbackends')
+ if os.name == 'nt':
+ for lib in ['gdk', 'gtk', 'gailutil']:
+ # Make copy for MSVC-built .lib files, e.g. xxx-3.lib->xxx-3.0.lib
+ installed_lib = os.path.join(gtk_libdir, lib + '-' + gtk_api_version.split('.')[0] + '.lib')
+ installed_lib_dst = os.path.join(gtk_libdir, lib + '-' + gtk_api_version + '.lib')
+ if os.path.isfile(installed_lib):
+ shutil.copyfile(installed_lib, installed_lib_dst)
+
print('Compiling GSettings schemas...')
subprocess.call(['glib-compile-schemas',
os.path.join(gtk_datadir, 'glib-2.0', 'schemas')])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]