Files
2026-08-13 09:31:12 +08:00

38 lines
1.1 KiB
Bash

#!/bin/bash
if ! type "include" >/dev/null 2>&1; then
include() {
. "$(cd "$(dirname "$1")" && pwd)/${2}"
}
fi
include "${BASH_SOURCE[0]}" ../pragma_once.bash
if ! pragma_once ${BASH_SOURCE[0]}; then
return 0
fi
include "${BASH_SOURCE[0]}" ../attach/export.bash
include "${BASH_SOURCE[0]}" ../patch/export.bash
include "${BASH_SOURCE[0]}" ../libc/export.bash
include "${BASH_SOURCE[0]}" ../base/export.bash
# shellcheck source=../attach/export.bash
# shellcheck source=../patch/export.bash
# shellcheck source=../libc/export.bash
# shellcheck source=../base/export.bash
CBT_dep=""
CBT_ver=""
CBT_relative_cmake_pos=""
cmake_list_targets() {
local base_src_dir
ensure_repo_version base_src_dir "${CBT_dep}" "${CBT_ver}"
local src_dir="${base_src_dir}${CBT_relative_cmake_pos}"
local name="${CBT_dep}_${CBT_ver}"
local build_dir="${_ae_root_}/0_cmake_build_dir/${name}"
mkdir -p "${build_dir}"
local cmake="${_ae_root_}/opt/cmake/bin/cmake"
local configure_cmd="${cmake} -S ${src_dir} -B ${build_dir}"
local list_cmd="${cmake} --build ${build_dir} --target help"
exec_record_fast_fail "${configure_cmd}"
exec_record_fast_fail "${list_cmd}"
}