mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2026-10-24 00:49:00 +03:00
Use template library RC file
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
#include <winver.h>
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION @GLIB_MAJOR_VERSION@,@GLIB_MINOR_VERSION@,@GLIB_MICRO_VERSION@,0
|
||||
PRODUCTVERSION @GLIB_MAJOR_VERSION@,@GLIB_MINOR_VERSION@,@GLIB_MICRO_VERSION@,0
|
||||
FILEFLAGSMASK 0
|
||||
FILEFLAGS 0
|
||||
FILEOS VOS__WINDOWS32
|
||||
FILETYPE VFT_DLL
|
||||
FILESUBTYPE VFT2_UNKNOWN
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904B0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "The GLib developer community"
|
||||
VALUE "FileDescription", "Gio"
|
||||
VALUE "FileVersion", "@GLIB_VERSION@.0"
|
||||
VALUE "InternalName", "libgio-2.0-@LT_CURRENT_MINUS_AGE@"
|
||||
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@"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
@@ -474,13 +474,21 @@ else
|
||||
)
|
||||
|
||||
if glib_build_shared
|
||||
gio_win_rc = configure_file(
|
||||
input: 'gio.rc.in',
|
||||
gio_rc_conf = configuration_data({
|
||||
'NAME': 'GIO',
|
||||
'FILENAME': (cc.get_argument_syntax() == 'msvc' ? '' : 'lib') + 'gio-' + glib_api_version + '-' + soversion.to_string() + '.dll',
|
||||
'DESCRIPTION': 'Gio is a library providing general purpose I/O, networking, IPC, settings, and other high level application functionality',
|
||||
})
|
||||
gio_rc_conf.merge_from(rc_conf_base)
|
||||
lib_rc = configure_file(
|
||||
input: lib_rc_in,
|
||||
output: 'gio.rc',
|
||||
configuration: glibconfig_conf,
|
||||
configuration: gio_rc_conf,
|
||||
)
|
||||
gio_win_res = windows.compile_resources(gio_win_rc)
|
||||
win32_sources += [gio_win_res]
|
||||
win32_sources += [windows.compile_resources(lib_rc,
|
||||
# Workaround for https://github.com/llvm/llvm-project/issues/63426
|
||||
args: ['-c', '65001'],
|
||||
)]
|
||||
endif
|
||||
|
||||
gio_win32_include_headers = files(
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
#include <winver.h>
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION @GLIB_MAJOR_VERSION@,@GLIB_MINOR_VERSION@,@GLIB_MICRO_VERSION@,0
|
||||
PRODUCTVERSION @GLIB_MAJOR_VERSION@,@GLIB_MINOR_VERSION@,@GLIB_MICRO_VERSION@,0
|
||||
FILEFLAGSMASK 0
|
||||
FILEFLAGS 0
|
||||
FILEOS VOS__WINDOWS32
|
||||
FILETYPE VFT_DLL
|
||||
FILESUBTYPE VFT2_UNKNOWN
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904B0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "The GLib developer community"
|
||||
VALUE "FileDescription", "GLib"
|
||||
VALUE "FileVersion", "@GLIB_VERSION@.0"
|
||||
VALUE "InternalName", "libglib-2.0-@LT_CURRENT_MINUS_AGE@"
|
||||
VALUE "LegalCopyright", "Copyright 1995-2011 Peter Mattis, Spencer Kimball, Josh MacDonald and others."
|
||||
VALUE "OriginalFilename", "libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll"
|
||||
VALUE "ProductName", "GLib"
|
||||
VALUE "ProductVersion", "@GLIB_VERSION@"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
@@ -355,14 +355,23 @@ platform_deps = []
|
||||
|
||||
if host_system == 'windows'
|
||||
if glib_build_shared
|
||||
glib_win_rc = configure_file(
|
||||
input: 'glib.rc.in',
|
||||
glib_rc_conf = configuration_data({
|
||||
'NAME': 'GLib',
|
||||
'FILENAME': (cc.get_argument_syntax() == 'msvc' ? '' : 'lib') + 'glib-' + glib_api_version + '-' + soversion.to_string() + '.dll',
|
||||
'DESCRIPTION': 'GLib is a general-purpose, portable utility library',
|
||||
})
|
||||
glib_rc_conf.merge_from(rc_conf_base)
|
||||
lib_rc = configure_file(
|
||||
input: lib_rc_in,
|
||||
output: 'glib.rc',
|
||||
configuration: glibconfig_conf,
|
||||
configuration: glib_rc_conf,
|
||||
)
|
||||
glib_win_res = windows.compile_resources(glib_win_rc)
|
||||
glib_sources += [glib_win_res]
|
||||
glib_sources += [windows.compile_resources(lib_rc,
|
||||
# Workaround for https://github.com/llvm/llvm-project/issues/63426
|
||||
args: ['-c', '65001'],
|
||||
)]
|
||||
endif
|
||||
|
||||
glib_sources += files('gwin32.c', 'gspawn-win32.c', 'giowin32.c')
|
||||
platform_deps = [winsock2, cc.find_library('winmm')]
|
||||
if cc.get_id() == 'msvc' or cc.get_id() == 'clang-cl'
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
#include <winver.h>
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION @GLIB_MAJOR_VERSION@,@GLIB_MINOR_VERSION@,@GLIB_MICRO_VERSION@,0
|
||||
PRODUCTVERSION @GLIB_MAJOR_VERSION@,@GLIB_MINOR_VERSION@,@GLIB_MICRO_VERSION@,0
|
||||
FILEFLAGSMASK 0
|
||||
FILEFLAGS 0
|
||||
FILEOS VOS__WINDOWS32
|
||||
FILETYPE VFT_DLL
|
||||
FILESUBTYPE VFT2_UNKNOWN
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904B0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "The GLib developer community"
|
||||
VALUE "FileDescription", "GModule"
|
||||
VALUE "FileVersion", "@GLIB_VERSION@.0"
|
||||
VALUE "InternalName", "libgmodule-2.0-@LT_CURRENT_MINUS_AGE@"
|
||||
VALUE "LegalCopyright", "Copyright 1998-2011 Tim Janik and others."
|
||||
VALUE "OriginalFilename", "libgmodule-2.0-@LT_CURRENT_MINUS_AGE@.dll"
|
||||
VALUE "ProductName", "GLib"
|
||||
VALUE "ProductVersion", "@GLIB_VERSION@"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
@@ -79,13 +79,21 @@ gmodule_visibility_h = custom_target(
|
||||
gmodule_sources = [gmodule_c, gmodule_visibility_h, gmodule_deprecated_c]
|
||||
|
||||
if host_system == 'windows' and glib_build_shared
|
||||
gmodule_win_rc = configure_file(
|
||||
input: 'gmodule.rc.in',
|
||||
gmodule_rc_conf = configuration_data({
|
||||
'NAME': 'GModule',
|
||||
'FILENAME': (cc.get_argument_syntax() == 'msvc' ? '' : 'lib') + 'gmodule-' + glib_api_version + '-' + soversion.to_string() + '.dll',
|
||||
'DESCRIPTION': 'Portable API for dynamically loading modules',
|
||||
})
|
||||
gmodule_rc_conf.merge_from(rc_conf_base)
|
||||
lib_rc = configure_file(
|
||||
input: lib_rc_in,
|
||||
output: 'gmodule.rc',
|
||||
configuration: glibconfig_conf,
|
||||
configuration: gmodule_rc_conf,
|
||||
)
|
||||
gmodule_win_res = windows.compile_resources(gmodule_win_rc)
|
||||
gmodule_sources += [gmodule_win_res]
|
||||
gmodule_sources += [windows.compile_resources(lib_rc,
|
||||
# Workaround for https://github.com/llvm/llvm-project/issues/63426
|
||||
args: ['-c', '65001'],
|
||||
)]
|
||||
endif
|
||||
|
||||
libgmodule = library('gmodule-2.0',
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
#include <winver.h>
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION @GLIB_MAJOR_VERSION@,@GLIB_MINOR_VERSION@,@GLIB_MICRO_VERSION@,0
|
||||
PRODUCTVERSION @GLIB_MAJOR_VERSION@,@GLIB_MINOR_VERSION@,@GLIB_MICRO_VERSION@,0
|
||||
FILEFLAGSMASK 0
|
||||
FILEFLAGS 0
|
||||
FILEOS VOS__WINDOWS32
|
||||
FILETYPE VFT_DLL
|
||||
FILESUBTYPE VFT2_UNKNOWN
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904B0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "The GLib developer community"
|
||||
VALUE "FileDescription", "GObject"
|
||||
VALUE "FileVersion", "@GLIB_VERSION@.0"
|
||||
VALUE "InternalName", "libgobject-2.0-@LT_CURRENT_MINUS_AGE@"
|
||||
VALUE "LegalCopyright", "Copyright 1998-2011 Tim Janik, Red Hat, Inc. and others"
|
||||
VALUE "OriginalFilename", "libgobject-2.0-@LT_CURRENT_MINUS_AGE@.dll"
|
||||
VALUE "ProductName", "GLib"
|
||||
VALUE "ProductVersion", "@GLIB_VERSION@"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
@@ -61,13 +61,21 @@ gobject_sources += files(
|
||||
)
|
||||
|
||||
if host_system == 'windows' and glib_build_shared
|
||||
gobject_win_rc = configure_file(
|
||||
input: 'gobject.rc.in',
|
||||
gobject_rc_conf = configuration_data({
|
||||
'NAME': 'GObject',
|
||||
'FILENAME': (cc.get_argument_syntax() == 'msvc' ? '' : 'lib') + 'gobject-' + glib_api_version + '-' + soversion.to_string() + '.dll',
|
||||
'DESCRIPTION': 'The base type system and object class',
|
||||
})
|
||||
gobject_rc_conf.merge_from(rc_conf_base)
|
||||
lib_rc = configure_file(
|
||||
input: lib_rc_in,
|
||||
output: 'gobject.rc',
|
||||
configuration: glibconfig_conf,
|
||||
configuration: gobject_rc_conf,
|
||||
)
|
||||
gobject_win_res = windows.compile_resources(gobject_win_rc)
|
||||
gobject_sources += [gobject_win_res]
|
||||
gobject_sources += [windows.compile_resources(lib_rc,
|
||||
# Workaround for https://github.com/llvm/llvm-project/issues/63426
|
||||
args: ['-c', '65001'],
|
||||
)]
|
||||
endif
|
||||
|
||||
if enable_dtrace
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
#include <winver.h>
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION @GLIB_MAJOR_VERSION@,@GLIB_MINOR_VERSION@,@GLIB_MICRO_VERSION@,0
|
||||
PRODUCTVERSION @GLIB_MAJOR_VERSION@,@GLIB_MINOR_VERSION@,@GLIB_MICRO_VERSION@,0
|
||||
FILEFLAGSMASK 0
|
||||
FILEFLAGS 0
|
||||
FILEOS VOS__WINDOWS32
|
||||
FILETYPE VFT_DLL
|
||||
FILESUBTYPE VFT2_UNKNOWN
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904B0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "The GLib developer community"
|
||||
VALUE "FileDescription", "GThread"
|
||||
VALUE "FileVersion", "@GLIB_VERSION@.0"
|
||||
VALUE "InternalName", "libgthread-2.0-@LT_CURRENT_MINUS_AGE@"
|
||||
VALUE "LegalCopyright", "Copyright 1995-2011 Peter Mattis, Spencer Kimball, Josh MacDonald, Sebastian Wilhelmi and others."
|
||||
VALUE "OriginalFilename", "libgthread-2.0-@LT_CURRENT_MINUS_AGE@.dll"
|
||||
VALUE "ProductName", "GLib"
|
||||
VALUE "ProductVersion", "@GLIB_VERSION@"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
@@ -3,13 +3,21 @@
|
||||
|
||||
gthread_sources = ['gthread-impl.c']
|
||||
if host_system == 'windows' and glib_build_shared
|
||||
gthread_win_rc = configure_file(
|
||||
input: 'gthread.rc.in',
|
||||
gthread_rc_conf = configuration_data({
|
||||
'NAME': 'GThread',
|
||||
'FILENAME': (cc.get_argument_syntax() == 'msvc' ? '' : 'lib') + 'gthread-' + glib_api_version + '-' + soversion.to_string() + '.dll',
|
||||
'DESCRIPTION': 'Portable threading API',
|
||||
})
|
||||
gthread_rc_conf.merge_from(rc_conf_base)
|
||||
lib_rc = configure_file(
|
||||
input: lib_rc_in,
|
||||
output: 'gthread.rc',
|
||||
configuration: glibconfig_conf,
|
||||
configuration: gthread_rc_conf,
|
||||
)
|
||||
gthread_win_res = windows.compile_resources(gthread_win_rc)
|
||||
gthread_sources += [gthread_win_res]
|
||||
gthread_sources += [windows.compile_resources(lib_rc,
|
||||
# Workaround for https://github.com/llvm/llvm-project/issues/63426
|
||||
args: ['-c', '65001'],
|
||||
)]
|
||||
endif
|
||||
|
||||
libgthread = library('gthread-2.0',
|
||||
|
||||
Reference in New Issue
Block a user