Skip to content

Commit 4dde0d7

Browse files
taliseinkjellahl
authored andcommitted
Add bcrypt dependency. Fixes #64
1 parent 1e3bc4e commit 4dde0d7

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

libxml++/meson.build

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Input: xmlxx_build_dep, xmlxx_pcname, xmlxx_libversion, xmlxx_api_version,
44
# install_includedir, xmlxx_rc, xmlxx_libname, macos_darwin_versions,
5-
# xml2_is_subproject
5+
# xml2_is_subproject, winsock_dep, bcrypt_dep
66
# Output: source_h_files, xmlxx_own_dep
77

88
# There are no built source files in libxml++-2.6.
@@ -94,17 +94,19 @@ if is_msvc
9494
xmlxx_cpp_args += ['-D_WINDLL']
9595
endif
9696

97+
xmlxx_all_deps = [xmlxx_build_dep]
98+
9799
extra_xmlxx_objects = []
98100

99101
# Build the .rc file for Windows builds and link to it
100102
if host_machine.system() == 'windows'
101103
windows = import('windows')
102104
xmlxx_res = windows.compile_resources(xmlxx_rc)
103105
extra_xmlxx_objects += xmlxx_res
104-
endif
105106

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
108110
endif
109111

110112
extra_include_dirs = ['..']
@@ -125,5 +127,5 @@ xmlxx_library = library(xmlxx_libname,
125127
xmlxx_own_dep = declare_dependency(
126128
link_with: xmlxx_library,
127129
include_directories: extra_include_dirs,
128-
dependencies: xmlxx_build_dep
130+
dependencies: xmlxx_all_deps
129131
)

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ if not xml2_dep.found()
152152
thread_dep = dependency('threads', required: false)
153153
zlib_dep = dependency('zlib', required: false)
154154
winsock_dep = cpp_compiler.find_library('ws2_32', required: false)
155+
bcrypt_dep = cpp_compiler.find_library('bcrypt', required: false)
155156
cmake_build_type = get_option('buildtype')
156157
if get_option('buildtype') == 'debugoptimized'
157158
cmake_build_type = 'RelWithDebInfo'

0 commit comments

Comments
 (0)