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++-2.6.
@@ -94,17 +94,19 @@ if is_msvc
94
94
xmlxx_cpp_args += [' -D_WINDLL' ]
95
95
endif
96
96
97
+ xmlxx_all_deps = [xmlxx_build_dep]
98
+
97
99
extra_xmlxx_objects = []
98
100
99
101
# Build the .rc file for Windows builds and link to it
100
102
if host_machine .system() == ' windows'
101
103
windows = import (' windows' )
102
104
xmlxx_res = windows.compile_resources(xmlxx_rc)
103
105
extra_xmlxx_objects += xmlxx_res
104
- endif
105
106
106
- if xml2_is_subproject
107
- xmlxx_build_dep += winsock_dep
107
+ if xml2_is_subproject
108
+ xmlxx_all_deps += [winsock_dep, bcrypt_dep]
109
+ endif
108
110
endif
109
111
110
112
extra_include_dirs = [' ..' ]
@@ -125,5 +127,5 @@ xmlxx_library = library(xmlxx_libname,
125
127
xmlxx_own_dep = declare_dependency (
126
128
link_with : xmlxx_library,
127
129
include_directories : extra_include_dirs,
128
- dependencies : xmlxx_build_dep
130
+ dependencies : xmlxx_all_deps
129
131
)
0 commit comments