File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 16
16
/* Micro version number of libxml++. */
17
17
#mesondefine LIBXMLXX_MICRO_VERSION
18
18
19
+ #mesondefine LIBXMLXX_STATIC
20
+
19
21
// Enable DLL-specific stuff only when not building a static library
20
22
#if !defined(__CYGWIN__) && (defined(__MINGW32__) || defined(_MSC_VER)) && !defined(LIBXMLXX_STATIC)
21
23
# define LIBXMLPP_DLL 1
Original file line number Diff line number Diff line change @@ -325,10 +325,12 @@ endif
325
325
326
326
# Static library?
327
327
library_build_type = get_option (' default_library' )
328
+ pkg_conf_data.set(' LIBXMLXX_STATIC' , library_build_type == ' static' )
329
+
328
330
329
331
if cpp_compiler.get_argument_syntax() == ' msvc'
330
- if library_build_type == ' static ' or library_build_type == ' both'
331
- error (' Static builds are not supported by MSVC-style builds' )
332
+ if library_build_type == ' both'
333
+ error (' Dynamic+ Static builds are not supported by MSVC-style builds' )
332
334
endif
333
335
endif
334
336
You can’t perform that action at this time.
0 commit comments