-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libboost-uuid: Customize build (link to bcrypt on Windows)
Fixes #2
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |