2021-04-03 03:53:41 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-04-19 20:43:54 +00:00
|
|
|
export SERENITY_SOURCE_DIR="$(realpath "${SCRIPT}/../")"
|
|
|
|
export SERENITY_BUILD_DIR="${SERENITY_SOURCE_DIR}/Build/${SERENITY_ARCH}"
|
2021-04-03 03:53:41 +00:00
|
|
|
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"
|
2021-04-27 15:09:38 +00:00
|
|
|
export PATH="${SERENITY_SOURCE_DIR}/Toolchain/Local/${SERENITY_ARCH}/bin:${HOST_PATH}"
|
2021-04-11 14:20:53 +00:00
|
|
|
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"
|
2021-04-19 20:43:54 +00:00
|
|
|
|
2021-04-20 00:51:04 +00:00
|
|
|
# To be deprecated soon.
|
2021-04-19 20:43:54 +00:00
|
|
|
export SERENITY_ROOT="$(realpath "${SCRIPT}/../")"
|
|
|
|
|
2021-04-18 07:13:16 +00:00
|
|
|
enable_ccache
|
2021-04-14 18:32:43 +00:00
|
|
|
|
|
|
|
DESTDIR="${SERENITY_BUILD_DIR}/Root"
|
2021-04-19 20:43:54 +00:00
|
|
|
export SERENITY_INSTALL_ROOT="$DESTDIR"
|