tbox
A glib-like multi-platform c library
Latest version: 1.8.2
Add to xmake.lua
add_requires("tbox 1.8.2")Learn how to add and link packages with Xmake →
Information
- Recipe updated
- 2026-10-07T02:02:45.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
charset- Enable the charset module. · Type: boolean · Default: false
coroutine- Enable the coroutine module. · Type: boolean · Default: false
database- Enable the database module. · Type: boolean · Default: false
float- Enable or disable the float type. · Type: boolean · Default: true
force-utf8- Forcely regard all tb_char* as utf-8. · Type: boolean · Default: false
hash- Enable the hash module. · Type: boolean · Default: false
mbedtls- Enable the mbedtls package. · Type: boolean · Default: false
micro- Compile micro core library for the embed system. · Type: boolean · Default: false
mysql- Enable the mysql package. · Type: boolean · Default: false
object- Enable the object module. · Type: boolean · Default: false
openssl- Enable the openssl package. · Type: boolean · Default: false
pcre- Enable the pcre package. · Type: boolean · Default: false
pcre2- Enable the pcre2 package. · Type: boolean · Default: false
polarssl- Enable the polarssl package. · Type: boolean · Default: false
regex- Enable the regex module. · Type: boolean · Default: false
sqlite3- Enable the sqlite3 package. · Type: boolean · Default: false
xml- Enable the xml module. · Type: boolean · Default: false
zip- Enable the zip module. · Type: boolean · Default: false
zlib- Enable the zlib package. · Type: boolean · Default: false
Versions
- v1.6.2
- v1.6.3
- v1.6.4
- v1.6.5
- v1.6.6
- v1.6.7
- v1.6.9
- v1.7.1
- v1.7.4
- v1.7.5
- v1.7.6
- v1.8.0
- v1.8.1
- v1.8.2
Dependencies
No dependencies declared.
Install with xrepo
Install the package independently of a project and inspect its available configuration.
install
xrepo install "tbox 1.8.2"show info
xrepo info "tbox"Link a library to your target
Declare the requirement, then attach the library to the target that uses it.
xmake.lua
add_requires("tbox 1.8.2")
target("demo")
set_kind("binary")
add_files("src/*.cpp")
add_packages("tbox")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 "tbox 1.8.2" shell