Skip to content

Commit

Permalink
libboost-uuid: Customize build (link to bcrypt on Windows)
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
francoisk committed Jul 29, 2024
1 parent f5f8b85 commit 5e3ba3e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions downstream/libs/uuid/include/boost/buildfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
intf_libs = # Interface dependencies.
#import xxxx_libs += libhello%lib{hello}

lib{boost-uuid}: {hxx ixx txx}{**} $intf_libs

# Export options.
#
out_pfx = [dir_path] $out_root/include/
src_pfx = [dir_path] $src_root/include/

lib{boost-uuid}:
{
cxx.export.poptions = "-I$out_pfx" "-I$src_pfx"
cxx.export.libs = $intf_libs
}

# BEGIN MANUAL CUSTOMIZATION
#

if ($cxx.target.class == 'windows')
cxx.export.libs += ($cxx.target.system == 'mingw32' ? -lbcrypt : bcrypt.lib)

#
# END MANUAL CUSTOMIZATION

# Install into the boost/ subdirectory of, say, /usr/include/
# recreating subdirectories.
#
{hxx ixx txx}{*}:
{
install = include/boost/
install.subdirs = true
}

0 comments on commit 5e3ba3e

Please sign in to comment.