2
2
3
3
# Input: xmlxx_build_dep, xmlxx_pcname, xmlxx_libversion, xmlxx_api_version,
4
4
# install_includedir, xmlxx_rc, xmlxx_libname, macos_darwin_versions,
5
- # xml2_is_subproject
5
+ # xml2_is_subproject, winsock_dep, bcrypt_dep
6
6
# Output: source_h_files, xmlxx_own_dep
7
7
8
8
# There are no built source files in libxml++-3.0.
@@ -92,17 +92,19 @@ if is_msvc
92
92
xmlxx_cpp_args += [' -D_WINDLL' ]
93
93
endif
94
94
95
+ xmlxx_all_deps = [xmlxx_build_dep]
96
+
95
97
extra_xmlxx_objects = []
96
98
97
99
# Build the .rc file for Windows builds and link to it
98
100
if host_machine .system() == ' windows'
99
101
windows = import (' windows' )
100
102
xmlxx_res = windows.compile_resources(xmlxx_rc)
101
103
extra_xmlxx_objects += xmlxx_res
102
- endif
103
104
104
- if xml2_is_subproject
105
- xmlxx_build_dep += winsock_dep
105
+ if xml2_is_subproject
106
+ xmlxx_all_deps += [winsock_dep, bcrypt_dep]
107
+ endif
106
108
endif
107
109
108
110
extra_include_dirs = [' ..' ]
@@ -123,5 +125,5 @@ xmlxx_library = library(xmlxx_libname,
123
125
xmlxx_own_dep = declare_dependency (
124
126
link_with : xmlxx_library,
125
127
include_directories : extra_include_dirs,
126
- dependencies : xmlxx_build_dep
128
+ dependencies : xmlxx_all_deps
127
129
)
0 commit comments