diff options
author | Panagiotis Vasilopoulos <hello@alwayslivid.com> | 2021-04-19 20:43:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-19 22:43:54 +0200 |
commit | 152c54a00a573f70d798f0d61f965be789a3e116 (patch) | |
tree | 59689cca0eebe086b0c91c5933dc0ac7a0f56c2a /Ports | |
parent | ddcd14922465ca3775f1cb2f4b8cb24d2e03ea02 (diff) | |
download | serenity-152c54a00a573f70d798f0d61f965be789a3e116.zip |
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
Diffstat (limited to 'Ports')
-rw-r--r-- | Ports/.hosted_defs.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Ports/.hosted_defs.sh b/Ports/.hosted_defs.sh index 64691c5097..ffab6a67b5 100644 --- a/Ports/.hosted_defs.sh +++ b/Ports/.hosted_defs.sh @@ -1,14 +1,19 @@ #!/usr/bin/env bash -export SERENITY_ROOT="$(realpath "${SCRIPT}/../")" -export SERENITY_BUILD_DIR="${SERENITY_ROOT}/Build/${SERENITY_ARCH}" +export SERENITY_SOURCE_DIR="$(realpath "${SCRIPT}/../")" +export SERENITY_BUILD_DIR="${SERENITY_SOURCE_DIR}/Build/${SERENITY_ARCH}" export CC="${SERENITY_ARCH}-pc-serenity-gcc" export CXX="${SERENITY_ARCH}-pc-serenity-g++" export AR="${SERENITY_ARCH}-pc-serenity-ar" 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_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" + +# To be removed. +export SERENITY_ROOT="$(realpath "${SCRIPT}/../")" + enable_ccache DESTDIR="${SERENITY_BUILD_DIR}/Root" +export SERENITY_INSTALL_ROOT="$DESTDIR" |