@@ -93,12 +93,20 @@ src_untracked_sigcxx = project_source_root / untracked_sigcxx
93
93
handle_built_files = project_source_root / ' tools' / ' handle-built-files.py'
94
94
95
95
extra_sigc_cppflags = []
96
+ extra_sigc_objects = []
96
97
97
98
# Make sure we are exporting the symbols from the DLL
98
99
if is_msvc
99
100
extra_sigc_cppflags += [' -DSIGC_BUILD' , ' -D_WINDLL' ]
100
101
endif
101
102
103
+ # Build the .rc file for Windows builds and link to it
104
+ if host_machine .system() == ' windows'
105
+ windows = import (' windows' )
106
+ sigc_res = windows.compile_resources(sigc_rc)
107
+ extra_sigc_objects += sigc_res
108
+ endif
109
+
102
110
if maintainer_mode
103
111
104
112
# Maintainer mode. Generate .h and .cc files from .m4 files in macros/ directories.
@@ -158,6 +166,7 @@ if maintainer_mode
158
166
extra_include_dirs = [' ..' ]
159
167
sigcxx_library = library (sigcxx_pcname,
160
168
source_cc_files, built_cc_file_targets, built_h_file_targets,
169
+ extra_sigc_objects,
161
170
version : sigcxx_libversion,
162
171
cpp_args : extra_sigc_cppflags,
163
172
include_directories : extra_include_dirs,
@@ -200,6 +209,7 @@ else # not maintainer_mode
200
209
extra_include_dirs = [ ' ..' , ' ..' / ' untracked' ]
201
210
sigcxx_library = library (sigcxx_pcname,
202
211
source_cc_files, untracked_built_cc_files,
212
+ extra_sigc_objects,
203
213
version : sigcxx_libversion,
204
214
cpp_args : extra_sigc_cppflags,
205
215
include_directories : extra_include_dirs,
0 commit comments