mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
gio, gmodule, gthread: compile windows resources only in shared build
When linking static libraries, multiple resources is an error unless handled in a special way. glib and gobject do not have this problem, as they already only include resources when building a shared lib.
This commit is contained in:
@@ -458,13 +458,15 @@ else
|
||||
'gwin32sid.h',
|
||||
)
|
||||
|
||||
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]
|
||||
if glib_build_shared
|
||||
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]
|
||||
endif
|
||||
|
||||
gio_win32_include_headers = files(
|
||||
'gregistrysettingsbackend.h',
|
||||
|
Reference in New Issue
Block a user