mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
meson: build Windows resource files
configure_file() forces utf-8 atm but .rc files are not utf-8. To work around the issue just remove the only non-ASCII char. https://bugzilla.gnome.org/show_bug.cgi?id=784995
This commit is contained in:
committed by
Christoph Reiter
parent
0e7b82abb9
commit
aa7c5cbdcb
@@ -17,7 +17,7 @@ VS_VERSION_INFO VERSIONINFO
|
||||
VALUE "FileDescription", "Gio"
|
||||
VALUE "FileVersion", "@GLIB_VERSION@.0"
|
||||
VALUE "InternalName", "libgio-2.0-@LT_CURRENT_MINUS_AGE@"
|
||||
VALUE "LegalCopyright", "Copyright <20> 2006-2011 Red Hat, Inc. and others."
|
||||
VALUE "LegalCopyright", "Copyright 2006-2011 Red Hat, Inc. and others."
|
||||
VALUE "OriginalFilename", "libgio-2.0-@LT_CURRENT_MINUS_AGE@.dll"
|
||||
VALUE "ProductName", "GLib"
|
||||
VALUE "ProductVersion", "@GLIB_VERSION@"
|
||||
|
@@ -390,6 +390,14 @@ else
|
||||
'gwin32outputstream.c',
|
||||
)
|
||||
|
||||
gio_win_rc = configure_file(
|
||||
input: 'gio.rc.in',
|
||||
output: 'gio.rc',
|
||||
configuration: glibconfig_conf,
|
||||
)
|
||||
gio_win_res = windows.compile_resources(gio_win_rc)
|
||||
win32_sources += [gio_win_res]
|
||||
|
||||
gio_win32_include_headers = files(
|
||||
'gwin32inputstream.h',
|
||||
'gwin32outputstream.h',
|
||||
@@ -529,14 +537,6 @@ gio_sources += portal_sources
|
||||
gio_sources += local_sources
|
||||
|
||||
MISSING_STUFF = '''
|
||||
if OS_WIN32_AND_DLL_COMPILATION
|
||||
gio_win32_res = gio-win32-res.o
|
||||
gio_win32_res_ldflag = -Wl,$(gio_win32_res)
|
||||
endif
|
||||
|
||||
gio-win32-res.o: gio.rc
|
||||
'$(WINDRES) gio.rc $@
|
||||
|
||||
# This is read by gobject-introspection/misc/ and gtk-doc
|
||||
gio-public-headers.txt: Makefile
|
||||
'$(AM_V_GEN) echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
|
||||
|
Reference in New Issue
Block a user