diff --git a/gio/meson.build b/gio/meson.build index 9b3c5bab3..39d2f4d15 100644 --- a/gio/meson.build +++ b/gio/meson.build @@ -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', diff --git a/gmodule/meson.build b/gmodule/meson.build index bbe0a08c0..c7f2651da 100644 --- a/gmodule/meson.build +++ b/gmodule/meson.build @@ -80,7 +80,7 @@ gmodule_visibility_h = custom_target( gmodule_sources = [gmodule_c, gmodule_visibility_h, gmodule_deprecated_c] -if host_system == 'windows' +if host_system == 'windows' and glib_build_shared gmodule_win_rc = configure_file( input: 'gmodule.rc.in', output: 'gmodule.rc', diff --git a/gthread/meson.build b/gthread/meson.build index 612626315..06ed9f7fb 100644 --- a/gthread/meson.build +++ b/gthread/meson.build @@ -2,7 +2,7 @@ # has been moved into glib now gthread_sources = ['gthread-impl.c'] -if host_system == 'windows' +if host_system == 'windows' and glib_build_shared gthread_win_rc = configure_file( input: 'gthread.rc.in', output: 'gthread.rc',