mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:27:34 +00:00
Ports: Improve variable names in .hosted_defs.sh
- SERENITY_ROOT is being kept around for compatibility reasons, and will be removed gradually - SERENITY_INSTALL_ROOT points to DESTDIR but will be preferred over that in the future - SERENITY_SOURCE_DIR points to the root folder of the repository. Let's keep the root terminology in the directory structure sort of sense out of here
This commit is contained in:
parent
ddcd149224
commit
152c54a00a
1 changed files with 8 additions and 3 deletions
|
@ -1,14 +1,19 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
export SERENITY_ROOT="$(realpath "${SCRIPT}/../")"
|
export SERENITY_SOURCE_DIR="$(realpath "${SCRIPT}/../")"
|
||||||
export SERENITY_BUILD_DIR="${SERENITY_ROOT}/Build/${SERENITY_ARCH}"
|
export SERENITY_BUILD_DIR="${SERENITY_SOURCE_DIR}/Build/${SERENITY_ARCH}"
|
||||||
export CC="${SERENITY_ARCH}-pc-serenity-gcc"
|
export CC="${SERENITY_ARCH}-pc-serenity-gcc"
|
||||||
export CXX="${SERENITY_ARCH}-pc-serenity-g++"
|
export CXX="${SERENITY_ARCH}-pc-serenity-g++"
|
||||||
export AR="${SERENITY_ARCH}-pc-serenity-ar"
|
export AR="${SERENITY_ARCH}-pc-serenity-ar"
|
||||||
export RANLIB="${SERENITY_ARCH}-pc-serenity-ranlib"
|
export RANLIB="${SERENITY_ARCH}-pc-serenity-ranlib"
|
||||||
export PATH="${SERENITY_ROOT}/Toolchain/Local/${SERENITY_ARCH}/bin:${PATH}"
|
export PATH="${SERENITY_SOURCE_DIR}/Toolchain/Local/${SERENITY_ARCH}/bin:${PATH}"
|
||||||
export PKG_CONFIG_DIR=""
|
export PKG_CONFIG_DIR=""
|
||||||
export PKG_CONFIG_SYSROOT_DIR="${SERENITY_BUILD_DIR}/Root"
|
export PKG_CONFIG_SYSROOT_DIR="${SERENITY_BUILD_DIR}/Root"
|
||||||
export PKG_CONFIG_LIBDIR="${PKG_CONFIG_SYSROOT_DIR}/usr/lib/pkgconfig/:${PKG_CONFIG_SYSROOT_DIR}/usr/local/lib/pkgconfig"
|
export PKG_CONFIG_LIBDIR="${PKG_CONFIG_SYSROOT_DIR}/usr/lib/pkgconfig/:${PKG_CONFIG_SYSROOT_DIR}/usr/local/lib/pkgconfig"
|
||||||
|
|
||||||
|
# To be removed.
|
||||||
|
export SERENITY_ROOT="$(realpath "${SCRIPT}/../")"
|
||||||
|
|
||||||
enable_ccache
|
enable_ccache
|
||||||
|
|
||||||
DESTDIR="${SERENITY_BUILD_DIR}/Root"
|
DESTDIR="${SERENITY_BUILD_DIR}/Root"
|
||||||
|
export SERENITY_INSTALL_ROOT="$DESTDIR"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue