Skip to content

Commit 4383b1c

Browse files
taliseinkjellahl
authored andcommitted
Add bcrypt dependency. Fixes #64
1 parent 353f8b3 commit 4383b1c

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++-3.0.
@@ -92,17 +92,19 @@ if is_msvc
9292
xmlxx_cpp_args += ['-D_WINDLL']
9393
endif
9494

95+
xmlxx_all_deps = [xmlxx_build_dep]
96+
9597
extra_xmlxx_objects = []
9698

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

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
106108
endif
107109

108110
extra_include_dirs = ['..']
@@ -123,5 +125,5 @@ xmlxx_library = library(xmlxx_libname,
123125
xmlxx_own_dep = declare_dependency(
124126
link_with: xmlxx_library,
125127
include_directories: extra_include_dirs,
126-
dependencies: xmlxx_build_dep
128+
dependencies: xmlxx_all_deps
127129
)

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)