mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
The toolchain file sets this, which makes it impossible to override via the -D option; it just looks like it works because we always use the same prefix as the toolchain. To actually override it post-configure one has to use cmake --install in combination with --prefix.
28 lines
616 B
Bash
Executable File
28 lines
616 B
Bash
Executable File
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port='mbedtls'
|
|
version='4.2.0'
|
|
useconfigure='true'
|
|
files=(
|
|
"https://github.com/Mbed-TLS/mbedtls/releases/download/mbedtls-${version}/mbedtls-${version}.tar.bz2#2bed9d713b4668f76553b097e72b8aa30bc8f112a940d7ae228d524bbde6ffea"
|
|
)
|
|
configopts=(
|
|
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
|
'-DCMAKE_BUILD_TYPE=Release'
|
|
'-DUSE_SHARED_MBEDTLS_LIBRARY=ON'
|
|
'-DENABLE_PROGRAMS=OFF'
|
|
'-DENABLE_TESTING=OFF'
|
|
'-GNinja'
|
|
)
|
|
|
|
configure() {
|
|
run cmake "${configopts[@]}" .
|
|
}
|
|
|
|
build() {
|
|
run ninja
|
|
}
|
|
|
|
install() {
|
|
run ninja install
|
|
}
|