boost
Collection of portable C++ source libraries.
Latest version: 1.92.0
Add to xmake.lua
add_requires("boost 1.92.0")Learn how to add and link packages with Xmake →
Information
- License
- BSL-1.0
- Recipe updated
- 2026-09-06T23:36:29.000Z
Platforms
- android: armeabi, armeabi-v7a, arm64-v8a, riscv64, x86, x86_64, mips, mip64
- msys: i386, x86_64
- mingw: i386, x86_64, arm, arm64
- windows: x86, x64, arm, arm64, arm64ec
- linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
- bsd: i386, x86_64, arm, arm64, ppc, ppc64, ppc64el, riscv64, sparc64
- harmony: armeabi-v7a, arm64-v8a, x86, x86_64
- cross: i386, x86_64, arm, armv7, arm64, mips, mips64, mips64el, riscv, riscv64, loong64, s390x, ppc, ppc64, ppc64el, sh4, sparc64
- wasm: wasm32, wasm64
- iphoneos: arm64, x86_64
- macosx: x86_64, arm64
Options
all- Enable all library modules support. · Type: boolean · Default: false
asio- Enable asio library. · Type: boolean · Default: false
atomic- Enable atomic library. · Type: boolean · Default: false
bzip2- Enable bzip2 for iostreams · Type: boolean · Default: false
charconv- Enable charconv library. · Type: boolean · Default: false
chrono- Enable chrono library. · Type: boolean · Default: false
cmake- Use cmake build system (>= 1.86) · Type: boolean · Default: true
cobalt- Enable cobalt library. · Type: boolean · Default: false
config- Enable config library. · Type: boolean · Default: false
container- Enable container library. · Type: boolean · Default: false
context- Enable context library. · Type: boolean · Default: false
contract- Enable contract library. · Type: boolean · Default: false
coroutine- Enable coroutine library. · Type: boolean · Default: false
date_time- Enable date_time library. · Type: boolean · Default: false
exception- Enable exception library. · Type: boolean · Default: false
fiber- Enable fiber library. · Type: boolean · Default: false
filesystem- Enable filesystem library. · Type: boolean · Default: true
graph- Enable graph library. · Type: boolean · Default: false
graph_parallel- Enable graph_parallel library. · Type: boolean · Default: false
header_only- Enable header only modules · Type: boolean · Default: false
icu- Enable icu for regex/locale · Type: boolean · Default: false
iostreams- Enable iostreams library. · Type: boolean · Default: false
json- Enable json library. · Type: boolean · Default: false
locale- Enable locale library. · Type: boolean · Default: false
log- Enable log library. · Type: boolean · Default: false
lzma- Enable lzma for iostreams · Type: boolean · Default: false
math- Enable math library. · Type: boolean · Default: false
mpi- Enable mpi library. · Type: boolean · Default: false
multi- Enable multi-thread support (only for b2) · Type: boolean · Default: true
nowide- Enable nowide library. · Type: boolean · Default: false
openssl- Enable openssl for mysql/redis · Type: boolean · Default: false
process- Enable process library. · Type: boolean · Default: false
program_options- Enable program_options library. · Type: boolean · Default: false
python- Enable python library. · Type: boolean · Default: false
pyver- python version x.y, etc. 3.10 (only for b2) · Default: 3.10
random- Enable random library. · Type: boolean · Default: false
regex- Enable regex library. · Type: boolean · Default: false
serialization- Enable serialization library. · Type: boolean · Default: false
spirit- Enable spirit library. · Type: boolean · Default: false
stacktrace- Enable stacktrace library. · Type: boolean · Default: false
system- Enable system library. · Type: boolean · Default: false
test- Enable test library. · Type: boolean · Default: false
thread- Enable thread library. · Type: boolean · Default: false
timer- Enable timer library. · Type: boolean · Default: false
type_erasure- Enable type_erasure library. · Type: boolean · Default: false
url- Enable url library. · Type: boolean · Default: false
uuid- Enable uuid library. · Type: boolean · Default: false
wave- Enable wave library. · Type: boolean · Default: false
zlib- Enable zlib for iostreams · Type: boolean · Default: false
zstd- Enable zstd for iostreams · Type: boolean · Default: false
Versions
- 1.70.0
- 1.72.0
- 1.73.0
- 1.74.0
- 1.75.0
- 1.76.0
- 1.77.0
- 1.78.0
- 1.79.0
- 1.80.0
- 1.81.0
- 1.82.0
- 1.83.0
- 1.84.0
- 1.85.0
- 1.86.0
- 1.87.0
- 1.88.0
- 1.89.0
- 1.90.0
- 1.91.0-1
- 1.92.0
Dependencies
No dependencies declared.
Used by (46)
Packages declaring this dependency; requirements can vary by platform and configuration.
Install with xrepo
Install the package independently of a project and inspect its available configuration.
install
xrepo install "boost 1.92.0"show info
xrepo info "boost"Link a library to your target
Declare the requirement, then attach the library to the target that uses it.
xmake.lua
add_requires("boost 1.92.0")
target("demo")
set_kind("binary")
add_files("src/*.cpp")
add_packages("boost")Open a package environment
Open a shell with the environment exported by this package. Use the executable names documented by the package.
enter shell
xrepo env -b "boost 1.92.0" shell