Continuing work.
This commit is contained in:
parent
78f28316cc
commit
630bd0ac7e
4 changed files with 199 additions and 110 deletions
175
config/functions
175
config/functions
|
@ -194,52 +194,117 @@ setup_pkg_config_host() {
|
|||
unset PKG_CONFIG_ALLOW_SYSTEM_LIBS
|
||||
}
|
||||
|
||||
# args: linker, default availability yes/no
|
||||
linker_allowed() {
|
||||
if flag_enabled "$1" "$2"; then
|
||||
# bfd is always available, others need to be enabled with <LINKER>_SUPPORT="yes"
|
||||
local linker_support="${1^^}_SUPPORT"
|
||||
if [ "$1" = "bfd" ] || [ "${!linker_support}" = "yes" ]; then
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
# return target linker to use for a package
|
||||
get_target_linker() {
|
||||
# all known linkers, in descending order of priority
|
||||
# those are candidates for explicit opt-in via PKG_BUILD_FLAGS
|
||||
local all_linkers="mold gold bfd"
|
||||
|
||||
# linkers to choose from unless disabled via PKG_BUILD_FLAGS
|
||||
local linker_candidates="${DEFAULT_LINKER:-bfd} ${all_linkers}"
|
||||
|
||||
local linker
|
||||
|
||||
# check if package prefers a specific linker
|
||||
for linker in ${all_linkers}; do
|
||||
if linker_allowed "${linker}" "no"; then
|
||||
echo "${linker}"
|
||||
return
|
||||
fi
|
||||
done
|
||||
|
||||
# select linker which isn't disabled by PKG_BUILD_FLAGS
|
||||
for linker in ${linker_candidates}; do
|
||||
if linker_allowed "${linker}" "yes"; then
|
||||
echo "${linker}"
|
||||
return
|
||||
fi
|
||||
done
|
||||
|
||||
# none of our linkers matched, use the compiler's default linker
|
||||
echo "compiler_default"
|
||||
}
|
||||
|
||||
setup_toolchain() {
|
||||
if [ "$LTO_SUPPORT" = "yes" ]; then
|
||||
if flag_enabled "lto-parallel" "no"; then
|
||||
TARGET_CFLAGS+=" ${FLAGS_OPTIM_LTO_PARALLEL} ${FLAGS_OPTIM_LTO_NO_FAT}"
|
||||
TARGET_CXXFLAGS+=" ${FLAGS_OPTIM_LTO_PARALLEL} ${FLAGS_OPTIM_LTO_NO_FAT}"
|
||||
TARGET_LDFLAGS+=" ${LDFLAGS_OPTIM_LTO_COMMON} ${FLAGS_OPTIM_LTO_PARALLEL}"
|
||||
TARGET_CFLAGS+=" $FLAGS_OPTIM_LTO_PARALLEL $FLAGS_OPTIM_LTO_NO_FAT"
|
||||
TARGET_CXXFLAGS+=" $FLAGS_OPTIM_LTO_PARALLEL $FLAGS_OPTIM_LTO_NO_FAT"
|
||||
TARGET_LDFLAGS+=" $LDFLAGS_OPTIM_LTO_COMMON $FLAGS_OPTIM_LTO_PARALLEL"
|
||||
elif flag_enabled "lto-fat" "no"; then
|
||||
TARGET_CFLAGS+=" ${FLAGS_OPTIM_LTO_NO_PARALLEL} ${FLAGS_OPTIM_LTO_FAT}"
|
||||
TARGET_CXXFLAGS+=" ${FLAGS_OPTIM_LTO_NO_PARALLEL} ${FLAGS_OPTIM_LTO_FAT}"
|
||||
TARGET_LDFLAGS+=" ${LDFLAGS_OPTIM_LTO_COMMON} ${FLAGS_OPTIM_LTO_NO_PARALLEL}"
|
||||
TARGET_CFLAGS+=" $FLAGS_OPTIM_LTO_NO_PARALLEL $FLAGS_OPTIM_LTO_FAT"
|
||||
TARGET_CXXFLAGS+=" $FLAGS_OPTIM_LTO_NO_PARALLEL $FLAGS_OPTIM_LTO_FAT"
|
||||
TARGET_LDFLAGS+=" $LDFLAGS_OPTIM_LTO_COMMON $FLAGS_OPTIM_LTO_NO_PARALLEL"
|
||||
elif flag_enabled "lto" "no"; then
|
||||
TARGET_CFLAGS+=" ${FLAGS_OPTIM_LTO_NO_PARALLEL} ${FLAGS_OPTIM_LTO_NO_FAT}"
|
||||
TARGET_CXXFLAGS+=" ${FLAGS_OPTIM_LTO_NO_PARALLEL} ${FLAGS_OPTIM_LTO_NO_FAT}"
|
||||
TARGET_LDFLAGS+=" ${LDFLAGS_OPTIM_LTO_COMMON} ${FLAGS_OPTIM_LTO_NO_PARALLEL}"
|
||||
TARGET_CFLAGS+=" $FLAGS_OPTIM_LTO_NO_PARALLEL $FLAGS_OPTIM_LTO_NO_FAT"
|
||||
TARGET_CXXFLAGS+=" $FLAGS_OPTIM_LTO_NO_PARALLEL $FLAGS_OPTIM_LTO_NO_FAT"
|
||||
TARGET_LDFLAGS+=" $LDFLAGS_OPTIM_LTO_COMMON $FLAGS_OPTIM_LTO_NO_PARALLEL"
|
||||
fi
|
||||
fi
|
||||
|
||||
if flag_enabled "lto-off" "no"; then
|
||||
TARGET_CFLAGS+=" ${FLAGS_OPTIM_LTO_OFF}"
|
||||
TARGET_CXXFLAGS+=" ${FLAGS_OPTIM_LTO_OFF}"
|
||||
TARGET_LDFLAGS+=" ${FLAGS_OPTIM_LTO_OFF}"
|
||||
TARGET_CFLAGS+=" $FLAGS_OPTIM_LTO_OFF"
|
||||
TARGET_CXXFLAGS+=" $FLAGS_OPTIM_LTO_OFF"
|
||||
TARGET_LDFLAGS+=" $FLAGS_OPTIM_LTO_OFF"
|
||||
fi
|
||||
|
||||
# gold flag
|
||||
if flag_enabled "gold" "${GOLD_SUPPORT}" "only-disable"; then
|
||||
TARGET_LDFLAGS+=" ${LDFLAGS_OPTIM_GOLD}"
|
||||
local linker="$(get_target_linker)"
|
||||
local linker_opts="LDFLAGS_OPTIM_LINKER_${linker^^}"
|
||||
|
||||
TARGET_LDFLAGS+=" ${!linker_opts}"
|
||||
|
||||
# compiler optimization, descending priority: speed, size, default
|
||||
if [ "${BUILD_WITH_DEBUG}" = "yes" ]; then
|
||||
if [ "${SPLIT_DEBUG_INFO}" = "yes" -a "${linker}" = "gold" ]; then
|
||||
TARGET_CFLAGS+=" $CFLAGS_OPTIM_DEBUG_SPLIT"
|
||||
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_DEBUG_SPLIT"
|
||||
TARGET_LDFLAGS+=" $LDFLAGS_OPTIM_DEBUG_SPLIT"
|
||||
else
|
||||
TARGET_CFLAGS+=" $CFLAGS_OPTIM_DEBUG"
|
||||
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_DEBUG"
|
||||
TARGET_LDFLAGS+=" $LDFLAGS_OPTIM_DEBUG"
|
||||
fi
|
||||
elif flag_enabled "speed" "no"; then
|
||||
TARGET_CFLAGS+=" $CFLAGS_OPTIM_SPEED"
|
||||
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_SPEED"
|
||||
elif flag_enabled "size" "no"; then
|
||||
TARGET_CFLAGS+=" $CFLAGS_OPTIM_SIZE"
|
||||
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_SIZE"
|
||||
else
|
||||
TARGET_CFLAGS+=" $CFLAGS_OPTIM_DEFAULT"
|
||||
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_DEFAULT"
|
||||
fi
|
||||
|
||||
# position-independent code
|
||||
if flag_enabled "pic" "no"; then
|
||||
TARGET_CFLAGS+=" ${CFLAGS_OPTIM_PIC}"
|
||||
TARGET_CXXFLAGS+=" ${CXXFLAGS_OPTIM_PIC}"
|
||||
TARGET_LDFLAGS+=" ${LDFLAGS_OPTIM_PIC}"
|
||||
TARGET_CFLAGS+=" $CFLAGS_OPTIM_PIC"
|
||||
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_PIC"
|
||||
TARGET_LDFLAGS+=" $LDFLAGS_OPTIM_PIC"
|
||||
fi
|
||||
if flag_enabled "pic:host" "no"; then
|
||||
HOST_CFLAGS+=" ${CFLAGS_OPTIM_PIC}"
|
||||
HOST_CXXFLAGS+=" ${CXXFLAGS_OPTIM_PIC}"
|
||||
HOST_LDFLAGS+=" ${LDFLAGS_OPTIM_PIC}"
|
||||
HOST_CFLAGS+=" $CFLAGS_OPTIM_PIC"
|
||||
HOST_CXXFLAGS+=" $CXXFLAGS_OPTIM_PIC"
|
||||
HOST_LDFLAGS+=" $LDFLAGS_OPTIM_PIC"
|
||||
fi
|
||||
|
||||
# hardening support
|
||||
if flag_enabled "hardening" "${HARDENING_SUPPORT}"; then
|
||||
TARGET_CFLAGS+=" ${CFLAGS_OPTIM_HARDENING}"
|
||||
TARGET_CXXFLAGS+=" ${CXXFLAGS_OPTIM_HARDENING}"
|
||||
TARGET_CFLAGS+=" ${CPPFLAGS_OPTIM_HARDENING}"
|
||||
TARGET_LDFLAGS+=" ${LDFLAGS_OPTIM_HARDENING}"
|
||||
if flag_enabled "hardening" "$HARDENING_SUPPORT"; then
|
||||
TARGET_CFLAGS+=" $CFLAGS_OPTIM_HARDENING"
|
||||
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_HARDENING"
|
||||
TARGET_CFLAGS+=" $CPPFLAGS_OPTIM_HARDENING"
|
||||
TARGET_LDFLAGS+=" $LDFLAGS_OPTIM_HARDENING"
|
||||
fi
|
||||
|
||||
# parallel
|
||||
|
@ -416,6 +481,7 @@ setup_toolchain() {
|
|||
export BUILD_CXX="${CXX}"
|
||||
export _python_sysroot="${TOOLCHAIN}"
|
||||
export _python_prefix=/
|
||||
export _python_exec_prefix=/
|
||||
|
||||
# rust
|
||||
case "${MACHINE_HARDWARE_NAME}" in
|
||||
|
@ -437,17 +503,9 @@ setup_toolchain() {
|
|||
esac
|
||||
}
|
||||
|
||||
create_meson_conf() {
|
||||
local endian root properties
|
||||
case "$1" in
|
||||
target|init) root="${SYSROOT_PREFIX}/usr"
|
||||
;;
|
||||
host|bootstrap) root="${TOOLCHAIN}"
|
||||
;;
|
||||
esac
|
||||
|
||||
create_meson_conf_host() {
|
||||
local properties
|
||||
properties="PKG_MESON_PROPERTIES_${1^^}"
|
||||
|
||||
cat > $2 <<EOF
|
||||
[binaries]
|
||||
c = '${CC}'
|
||||
|
@ -463,12 +521,14 @@ cpu_family = '${TARGET_ARCH}'
|
|||
cpu = '${TARGET_SUBARCH}'
|
||||
endian = 'little'
|
||||
|
||||
[built-in options]
|
||||
$(python3 -c "import os; print('c_args = {}'.format([x for x in os.getenv('CFLAGS').split()]))")
|
||||
$(python3 -c "import os; print('c_link_args = {}'.format([x for x in os.getenv('LDFLAGS').split()]))")
|
||||
$(python3 -c "import os; print('cpp_args = {}'.format([x for x in os.getenv('CXXFLAGS').split()]))")
|
||||
$(python3 -c "import os; print('cpp_link_args = {}'.format([x for x in os.getenv('LDFLAGS').split()]))")
|
||||
|
||||
[properties]
|
||||
root = '${root}'
|
||||
$(python -c "import os; print('c_args = {}'.format([x for x in os.getenv('CFLAGS').split()]))")
|
||||
$(python -c "import os; print('c_link_args = {}'.format([x for x in os.getenv('LDFLAGS').split()]))")
|
||||
$(python -c "import os; print('cpp_args = {}'.format([x for x in os.getenv('CXXFLAGS').split()]))")
|
||||
$(python -c "import os; print('cpp_link_args = {}'.format([x for x in os.getenv('LDFLAGS').split()]))")
|
||||
root = '${TOOLCHAIN}'
|
||||
${!properties}
|
||||
EOF
|
||||
}
|
||||
|
@ -1033,15 +1093,40 @@ find_dir_path() {
|
|||
# p1: name of function to test for
|
||||
# return 0 if function exists, 1 if not
|
||||
pkg_call_exists() {
|
||||
[ "$(type -t ${1})" = "function" ] && return 0 || return 1
|
||||
PKG_CURRENT_CALL="${1}"
|
||||
if [ "$(type -t ${1})" = "function" ]; then
|
||||
PKG_CURRENT_CALL_TYPE="package.mk"
|
||||
return 0
|
||||
else
|
||||
PKG_CURRENT_CALL_TYPE="default"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
# p1: name of function to execute unconditionally
|
||||
# Optional variant of pkg_call_exists()
|
||||
# Clear PKG_CURRENT_CALL when function is not implemented.
|
||||
pkg_call_exists_opt() {
|
||||
if pkg_call_exists $1; then
|
||||
return 0
|
||||
else
|
||||
pkg_call_finish
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to be called is set by pkg_call_exists/pkg_call_exists_opt
|
||||
# Args: whatever the called function expects
|
||||
# testing the exit code value of this function is likely to break set -e fail-on-error behaviour
|
||||
pkg_call() {
|
||||
[ -n "${PKG_NAME}" ] || die "$(print_color CLR_ERROR "FAILURE: Cannot call ${1} package function when package is not known!")"
|
||||
[ -n "${PKG_CURRENT_CALL}" ] || die "$(print_color CLR_ERROR "PKG_CURRENT_CALL is not set!")"
|
||||
[ -n "${PKG_NAME}" ] || die "$(print_color CLR_ERROR "FAILURE: Cannot call ${PKG_CURRENT_CALL} package function when package is not known!")"
|
||||
|
||||
${1}
|
||||
${PKG_CURRENT_CALL} "${@}"
|
||||
pkg_call_finish
|
||||
}
|
||||
|
||||
pkg_call_finish() {
|
||||
PKG_CURRENT_CALL=""
|
||||
}
|
||||
|
||||
unset_functions() {
|
||||
|
|
|
@ -105,13 +105,14 @@ then
|
|||
fi
|
||||
|
||||
pre_configure_target() {
|
||||
export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-ffast-math||g")
|
||||
export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-Ofast|-O3|g")
|
||||
export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-O.|-O3|g")
|
||||
export TARGET_CFLAGS=$(echo ${TARGET_CFLAGS} | sed -e "s|-ffast-math||g")
|
||||
export TARGET_CFLAGS=$(echo ${TARGET_CFLAGS} | sed -e "s|-Ofast|-O3|g")
|
||||
export TARGET_CFLAGS=$(echo ${TARGET_CFLAGS} | sed -e "s|-O.|-O3|g")
|
||||
|
||||
export TARGET_LDFLAGS=$(echo ${TARGET_LDFLAGS} | sed -e "s|-ffast-math||g")
|
||||
export TARGET_LDFLAGS=$(echo ${TARGET_LDFLAGS} | sed -e "s|-Ofast|-O3|g")
|
||||
export TARGET_LDFLAGS=$(echo ${TARGET_LDFLAGS} | sed -e "s|-O.|-O3|g")
|
||||
|
||||
export LDFLAGS=$(echo ${LDFLAGS} | sed -e "s|-ffast-math||g")
|
||||
export LDFLAGS=$(echo ${LDFLAGS} | sed -e "s|-Ofast|-O3|g")
|
||||
export LDFLAGS=$(echo ${LDFLAGS} | sed -e "s|-O.|-O3|g")
|
||||
export TARGET_CFLAGS="${TARGET_CFLAGS} -fno-schedule-insns -fno-schedule-insns2 -Wno-format-truncation"
|
||||
export LC_ALL=en_US.UTF-8
|
||||
}
|
||||
|
|
|
@ -16,5 +16,5 @@ PKG_MESON_OPTS_TARGET="-Ddocs=false \
|
|||
-Ddbus_daemon=/usr/bin/dbus-daemon"
|
||||
|
||||
pre_configure_target() {
|
||||
LDFLAGS="${LDFLAGS} -lXi -lXext"
|
||||
TARGET_LDFLAGS="${TARGET_LDFLAGS} -lXi -lXext"
|
||||
}
|
||||
|
|
119
scripts/build
119
scripts/build
|
@ -85,7 +85,34 @@ else
|
|||
build_msg "CLR_BUILD" "BUILD" "${PKG_NAME} $(print_color "CLR_TARGET" "(${TARGET})")" "indent"
|
||||
fi
|
||||
|
||||
setup_toolchain ${TARGET}
|
||||
# setup configure scripts
|
||||
PKG_CONFIGURE_SCRIPT="${PKG_CONFIGURE_SCRIPT:-${PKG_BUILD}/configure}"
|
||||
PKG_CMAKE_SCRIPT="${PKG_CMAKE_SCRIPT:-${PKG_BUILD}/CMakeLists.txt}"
|
||||
PKG_MESON_SCRIPT="${PKG_MESON_SCRIPT:-${PKG_BUILD}/meson.build}"
|
||||
|
||||
# auto detect toolchain
|
||||
_auto_toolchain=""
|
||||
if [ -z "${PKG_TOOLCHAIN}" -o "${PKG_TOOLCHAIN}" = "auto" ]; then
|
||||
if [ -f "${PKG_MESON_SCRIPT}" ]; then
|
||||
PKG_TOOLCHAIN="meson"
|
||||
elif [ -f "${PKG_CMAKE_SCRIPT}" ]; then
|
||||
PKG_TOOLCHAIN="cmake"
|
||||
elif [ -f "${PKG_CONFIGURE_SCRIPT}" ]; then
|
||||
PKG_TOOLCHAIN="configure"
|
||||
elif [ -f "${PKG_BUILD}/Makefile" ]; then
|
||||
PKG_TOOLCHAIN="make"
|
||||
else
|
||||
die "Not possible to detect toolchain automatically. Add PKG_TOOLCHAIN= to package.mk"
|
||||
fi
|
||||
_auto_toolchain=" (auto-detect)"
|
||||
fi
|
||||
if ! listcontains "meson cmake cmake-make configure ninja make autotools manual" "${PKG_TOOLCHAIN}"; then
|
||||
die "$(print_color "CLR_ERROR" "ERROR:") unknown toolchain ${PKG_TOOLCHAIN}"
|
||||
fi
|
||||
build_msg "CLR_TOOLCHAIN" "TOOLCHAIN" "${PKG_TOOLCHAIN}${_auto_toolchain}"
|
||||
|
||||
# setup toolchain
|
||||
setup_toolchain ${TARGET} ${PKG_TOOLCHAIN}
|
||||
|
||||
# configure install directory
|
||||
if [ "${TARGET}" = "target" ]; then
|
||||
|
@ -135,6 +162,9 @@ TARGET_MESON_OPTS="--prefix=/usr \
|
|||
--libexecdir=/usr/lib \
|
||||
--localstatedir=/var \
|
||||
--buildtype=${MESON_BUILD_TYPE}"
|
||||
if [ ${BUILD_WITH_DEBUG} != yes ] && flag_enabled "strip" "yes"; then
|
||||
TARGET_MESON_OPTS+=" -Dstrip=true"
|
||||
fi
|
||||
|
||||
# configure HOST build defaults
|
||||
HOST_CONFIGURE_OPTS="--host=${HOST_NAME} \
|
||||
|
@ -170,41 +200,15 @@ BOOTSTRAP_CONFIGURE_OPTS="${HOST_CONFIGURE_OPTS}"
|
|||
BOOTSTRAP_CMAKE_OPTS="${HOST_CMAKE_OPTS}"
|
||||
BOOTSTRAP_MESON_OPTS="${HOST_MESON_OPTS}"
|
||||
|
||||
# setup configure scripts
|
||||
PKG_CONFIGURE_SCRIPT="${PKG_CONFIGURE_SCRIPT:-${PKG_BUILD}/configure}"
|
||||
PKG_CMAKE_SCRIPT="${PKG_CMAKE_SCRIPT:-${PKG_BUILD}/CMakeLists.txt}"
|
||||
PKG_MESON_SCRIPT="${PKG_MESON_SCRIPT:-${PKG_BUILD}/meson.build}"
|
||||
|
||||
# auto detect toolchain
|
||||
_auto_toolchain=""
|
||||
if [ -z "${PKG_TOOLCHAIN}" -o "${PKG_TOOLCHAIN}" = "auto" ]; then
|
||||
if [ -f "${PKG_MESON_SCRIPT}" ]; then
|
||||
PKG_TOOLCHAIN="meson"
|
||||
elif [ -f "${PKG_CMAKE_SCRIPT}" ]; then
|
||||
PKG_TOOLCHAIN="cmake"
|
||||
elif [ -f "${PKG_CONFIGURE_SCRIPT}" ]; then
|
||||
PKG_TOOLCHAIN="configure"
|
||||
elif [ -f "${PKG_BUILD}/Makefile" ]; then
|
||||
PKG_TOOLCHAIN="make"
|
||||
else
|
||||
die "Not possible to detect toolchain automatically. Add PKG_TOOLCHAIN= to package.mk"
|
||||
fi
|
||||
_auto_toolchain=" (auto-detect)"
|
||||
fi
|
||||
if ! listcontains "meson cmake cmake-make configure ninja make autotools manual" "${PKG_TOOLCHAIN}"; then
|
||||
die "$(print_color "CLR_ERROR" "ERROR:") unknown toolchain ${PKG_TOOLCHAIN}"
|
||||
fi
|
||||
build_msg "CLR_TOOLCHAIN" "TOOLCHAIN" "${PKG_TOOLCHAIN}${_auto_toolchain}"
|
||||
|
||||
# make autoreconf
|
||||
if [ "${PKG_TOOLCHAIN}" = "autotools" ]; then
|
||||
${SCRIPTS}/autoreconf "${PKG_NAME}" "${PARENT_PKG}"
|
||||
${SCRIPTS}/autoreconf "${PKG_NAME}" "${PARENT_PKG}" $(dirname "${PKG_CONFIGURE_SCRIPT}")
|
||||
fi
|
||||
|
||||
pkg_lock_status "ACTIVE" "${PKG_NAME}:${TARGET}" "build"
|
||||
|
||||
# include build template and build
|
||||
pkg_call_exists pre_build_${TARGET} && pkg_call pre_build_${TARGET}
|
||||
pkg_call_exists_opt pre_build_${TARGET} && pkg_call
|
||||
|
||||
# ensure ${PKG_BUILD} is there. (installer? PKG_URL="")
|
||||
mkdir -p "${PKG_BUILD}"
|
||||
|
@ -241,7 +245,6 @@ EOF
|
|||
export CXX=$(pwd)/libreelec-local-cxx
|
||||
fi
|
||||
|
||||
|
||||
# configure
|
||||
if [ -n "${PKG_DEPENDS_CONFIG}" -a -n "${PKG_INSTALL}" ]; then
|
||||
for pkg in ${PKG_DEPENDS_CONFIG}; do
|
||||
|
@ -267,60 +270,60 @@ else
|
|||
case "${PKG_TOOLCHAIN}:${TARGET}" in
|
||||
# meson builds
|
||||
"meson:target")
|
||||
create_meson_conf ${TARGET} ${MESON_CONF}
|
||||
echo "Executing (target): meson ${TARGET_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_TARGET} $(dirname ${PKG_MESON_SCRIPT})" | tr -s " "
|
||||
CC="${HOST_CC}" CXX="${HOST_CXX}" meson ${TARGET_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_TARGET} $(dirname ${PKG_MESON_SCRIPT})
|
||||
create_meson_conf_target ${TARGET} ${MESON_CONF}
|
||||
echo "Executing (target): meson setup ${TARGET_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_TARGET} ${PKG_MESON_SCRIPT%/*}" | tr -s " "
|
||||
CC="${HOST_CC}" CXX="${HOST_CXX}" meson setup ${TARGET_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_TARGET} ${PKG_MESON_SCRIPT%/*}
|
||||
;;
|
||||
"meson:host")
|
||||
create_meson_conf ${TARGET} ${MESON_CONF}
|
||||
echo "Executing (host): meson ${HOST_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_HOST} $(dirname ${PKG_MESON_SCRIPT})" | tr -s " "
|
||||
meson ${HOST_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_HOST} $(dirname ${PKG_MESON_SCRIPT})
|
||||
create_meson_conf_host ${TARGET} ${MESON_CONF}
|
||||
echo "Executing (host): meson setup ${HOST_MESON_OPTS} --native-file=${MESON_CONF} ${PKG_MESON_OPTS_HOST} ${PKG_MESON_SCRIPT%/*}" | tr -s " "
|
||||
meson setup ${HOST_MESON_OPTS} --native-file=${MESON_CONF} ${PKG_MESON_OPTS_HOST} ${PKG_MESON_SCRIPT%/*}
|
||||
;;
|
||||
"meson:init")
|
||||
create_meson_conf ${TARGET} ${MESON_CONF}
|
||||
echo "Executing (init): meson ${INIT_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_INIT} $(dirname ${PKG_MESON_SCRIPT})" | tr -s " "
|
||||
meson ${INIT_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_INIT} $(dirname ${PKG_MESON_SCRIPT})
|
||||
create_meson_conf_target ${TARGET} ${MESON_CONF}
|
||||
echo "Executing (init): meson setup ${INIT_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_INIT} ${PKG_MESON_SCRIPT%/*}" | tr -s " "
|
||||
meson setup ${INIT_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_INIT} ${PKG_MESON_SCRIPT%/*}
|
||||
;;
|
||||
"meson:bootstrap")
|
||||
create_meson_conf ${TARGET} ${MESON_CONF}
|
||||
echo "Executing (bootstrap): meson ${BOOTSTRAP_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_BOOTSTRAP} $(dirname ${PKG_MESON_SCRIPT})" | tr -s " "
|
||||
meson ${BOOTSTRAP_MESON_OPTS} --cross-file=${MESON_CONF} ${PKG_MESON_OPTS_BOOTSTRAP} $(dirname ${PKG_MESON_SCRIPT})
|
||||
create_meson_conf_host ${TARGET} ${MESON_CONF}
|
||||
echo "Executing (bootstrap): meson setup ${BOOTSTRAP_MESON_OPTS} ----native-file=${MESON_CONF} ${PKG_MESON_OPTS_BOOTSTRAP} ${PKG_MESON_SCRIPT%/*}" | tr -s " "
|
||||
meson setup ${BOOTSTRAP_MESON_OPTS} --native-file=${MESON_CONF} ${PKG_MESON_OPTS_BOOTSTRAP} ${PKG_MESON_SCRIPT%/*}
|
||||
;;
|
||||
|
||||
# cmake builds with ninja
|
||||
"cmake:target")
|
||||
echo "Executing (target): cmake ${CMAKE_GENERATOR_NINJA} ${TARGET_CMAKE_OPTS} ${PKG_CMAKE_OPTS_TARGET} $(dirname ${PKG_CMAKE_SCRIPT})" | tr -s " "
|
||||
cmake ${CMAKE_GENERATOR_NINJA} ${TARGET_CMAKE_OPTS} ${PKG_CMAKE_OPTS_TARGET} $(dirname ${PKG_CMAKE_SCRIPT})
|
||||
echo "Executing (target): cmake ${CMAKE_GENERATOR_NINJA} ${TARGET_CMAKE_OPTS} ${PKG_CMAKE_OPTS_TARGET} ${PKG_CMAKE_SCRIPT%/*}" | tr -s " "
|
||||
cmake ${CMAKE_GENERATOR_NINJA} ${TARGET_CMAKE_OPTS} ${PKG_CMAKE_OPTS_TARGET} ${PKG_CMAKE_SCRIPT%/*}
|
||||
;;
|
||||
"cmake:host")
|
||||
echo "Executing (host): cmake ${CMAKE_GENERATOR_NINJA} ${HOST_CMAKE_OPTS} ${PKG_CMAKE_OPTS_HOST} $(dirname ${PKG_CMAKE_SCRIPT})" | tr -s " "
|
||||
cmake ${CMAKE_GENERATOR_NINJA} ${HOST_CMAKE_OPTS} ${PKG_CMAKE_OPTS_HOST} $(dirname ${PKG_CMAKE_SCRIPT})
|
||||
echo "Executing (host): cmake ${CMAKE_GENERATOR_NINJA} ${HOST_CMAKE_OPTS} ${PKG_CMAKE_OPTS_HOST} ${PKG_CMAKE_SCRIPT%/*}" | tr -s " "
|
||||
cmake ${CMAKE_GENERATOR_NINJA} ${HOST_CMAKE_OPTS} ${PKG_CMAKE_OPTS_HOST} ${PKG_CMAKE_SCRIPT%/*}
|
||||
;;
|
||||
"cmake:init")
|
||||
echo "Executing (init): cmake ${CMAKE_GENERATOR_NINJA} ${INIT_CMAKE_OPTS} ${PKG_CMAKE_OPTS_INIT} $(dirname ${PKG_CMAKE_SCRIPT})" | tr -s " "
|
||||
cmake ${CMAKE_GENERATOR_NINJA} ${INIT_CMAKE_OPTS} ${PKG_CMAKE_OPTS_INIT} $(dirname ${PKG_CMAKE_SCRIPT})
|
||||
echo "Executing (init): cmake ${CMAKE_GENERATOR_NINJA} ${INIT_CMAKE_OPTS} ${PKG_CMAKE_OPTS_INIT} ${PKG_CMAKE_SCRIPT%/*}" | tr -s " "
|
||||
cmake ${CMAKE_GENERATOR_NINJA} ${INIT_CMAKE_OPTS} ${PKG_CMAKE_OPTS_INIT} ${PKG_CMAKE_SCRIPT%/*}
|
||||
;;
|
||||
"cmake:bootstrap")
|
||||
echo "Executing (bootstrap): cmake ${CMAKE_GENERATOR_NINJA} ${BOOTSTRAP_CMAKE_OPTS} ${PKG_CMAKE_OPTS_BOOTSTRAP} $(dirname ${PKG_CMAKE_SCRIPT})" | tr -s " "
|
||||
cmake ${CMAKE_GENERATOR_NINJA} ${BOOTSTRAP_CMAKE_OPTS} ${PKG_CMAKE_OPTS_BOOTSTRAP} $(dirname ${PKG_CMAKE_SCRIPT})
|
||||
echo "Executing (bootstrap): cmake ${CMAKE_GENERATOR_NINJA} ${BOOTSTRAP_CMAKE_OPTS} ${PKG_CMAKE_OPTS_BOOTSTRAP} ${PKG_CMAKE_SCRIPT%/*}" | tr -s " "
|
||||
cmake ${CMAKE_GENERATOR_NINJA} ${BOOTSTRAP_CMAKE_OPTS} ${PKG_CMAKE_OPTS_BOOTSTRAP} ${PKG_CMAKE_SCRIPT%/*}
|
||||
;;
|
||||
|
||||
# cmake builds with make
|
||||
"cmake-make:target")
|
||||
echo "Executing (target): cmake ${TARGET_CMAKE_OPTS} ${PKG_CMAKE_OPTS_TARGET} $(dirname ${PKG_CMAKE_SCRIPT})" | tr -s " "
|
||||
cmake ${TARGET_CMAKE_OPTS} ${PKG_CMAKE_OPTS_TARGET} $(dirname ${PKG_CMAKE_SCRIPT})
|
||||
echo "Executing (target): cmake ${TARGET_CMAKE_OPTS} ${PKG_CMAKE_OPTS_TARGET} ${PKG_CMAKE_SCRIPT%/*}" | tr -s " "
|
||||
cmake ${TARGET_CMAKE_OPTS} ${PKG_CMAKE_OPTS_TARGET} ${PKG_CMAKE_SCRIPT%/*}
|
||||
;;
|
||||
"cmake-make:host")
|
||||
echo "Executing (host): cmake ${HOST_CMAKE_OPTS} ${PKG_CMAKE_OPTS_HOST} $(dirname ${PKG_CMAKE_SCRIPT})" | tr -s " "
|
||||
cmake ${HOST_CMAKE_OPTS} ${PKG_CMAKE_OPTS_HOST} $(dirname ${PKG_CMAKE_SCRIPT})
|
||||
echo "Executing (host): cmake ${HOST_CMAKE_OPTS} ${PKG_CMAKE_OPTS_HOST} ${PKG_CMAKE_SCRIPT%/*}" | tr -s " "
|
||||
cmake ${HOST_CMAKE_OPTS} ${PKG_CMAKE_OPTS_HOST} ${PKG_CMAKE_SCRIPT%/*}
|
||||
;;
|
||||
"cmake-make:init")
|
||||
echo "Executing (init): cmake ${INIT_CMAKE_OPTS} ${PKG_CMAKE_OPTS_INIT} $(dirname ${PKG_CMAKE_SCRIPT})" | tr -s " "
|
||||
cmake ${INIT_CMAKE_OPTS} ${PKG_CMAKE_OPTS_INIT} $(dirname ${PKG_CMAKE_SCRIPT})
|
||||
echo "Executing (init): cmake ${INIT_CMAKE_OPTS} ${PKG_CMAKE_OPTS_INIT} ${PKG_CMAKE_SCRIPT%/*}" | tr -s " "
|
||||
cmake ${INIT_CMAKE_OPTS} ${PKG_CMAKE_OPTS_INIT} ${PKG_CMAKE_SCRIPT%/*}
|
||||
;;
|
||||
"cmake-make:bootstrap")
|
||||
echo "Executing (bootstrap): cmake ${BOOTSTRAP_CMAKE_OPTS} ${PKG_CMAKE_OPTS_BOOTSTRAP} $(dirname ${PKG_CMAKE_SCRIPT})" | tr -s " "
|
||||
cmake ${BOOTSTRAP_CMAKE_OPTS} ${PKG_CMAKE_OPTS_BOOTSTRAP} $(dirname ${PKG_CMAKE_SCRIPT})
|
||||
echo "Executing (bootstrap): cmake ${BOOTSTRAP_CMAKE_OPTS} ${PKG_CMAKE_OPTS_BOOTSTRAP} ${PKG_CMAKE_SCRIPT%/*}" | tr -s " "
|
||||
cmake ${BOOTSTRAP_CMAKE_OPTS} ${PKG_CMAKE_OPTS_BOOTSTRAP} ${PKG_CMAKE_SCRIPT%/*}
|
||||
;;
|
||||
|
||||
# configure builds
|
||||
|
|
Loading…
Reference in a new issue