Windows: Do not link DLL specific resources when doing a static build

Fixes: #2585
This commit is contained in:
Xavier Claessens
2022-01-26 09:46:38 -05:00
parent 51e6e4fc2f
commit 9159e84ce5
3 changed files with 13 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ gobject_sources = files(
'gvaluetypes.c',
)
if host_system == 'windows'
if host_system == 'windows' and get_option('default_library') == 'shared'
gobject_win_rc = configure_file(
input: 'gobject.rc.in',
output: 'gobject.rc',