Skip to content

Commit 9cd037a

Browse files
Disable libsimulator plugins
1 parent 85f59f0 commit 9cd037a

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

tools/build-companion.sh

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,21 @@ if [[ -z ${OUTDIR} ]]; then
1414
OUTDIR="$(pwd)/output"
1515
fi
1616

17+
if [[ ! -d "${OUTDIR}" ]]; then
18+
mkdir -p "${OUTDIR}"
19+
fi
20+
1721
QUIET_FLAGS=""
1822
if [[ "$CMAKE_GENERATOR" == "Ninja" ]]; then
19-
QUIET_FLAGS="-- --quiet"
23+
QUIET_FLAGS="-- --quiet"
2024
else
21-
# Assume Makefile generator for non-Ninja builds
22-
COMMON_OPTIONS="-DCMAKE_RULE_MESSAGES=OFF"
25+
# Assume Makefile generator for non-Ninja builds
26+
COMMON_OPTIONS="-DCMAKE_RULE_MESSAGES=OFF"
2327
fi
2428

25-
COMMON_OPTIONS="${COMMON_OPTIONS} -DCMAKE_BUILD_TYPE=Release -DCMAKE_MESSAGE_LOG_LEVEL=WARNING -Wno-dev -DGVARS=YES -DHELI=YES -DLUA=YES"
29+
COMMON_OPTIONS="${COMMON_OPTIONS} -DCMAKE_BUILD_TYPE=Release -DCMAKE_MESSAGE_LOG_LEVEL=WARNING -Wno-dev"
2630
if [ "$(uname)" = "Darwin" ]; then
27-
COMMON_OPTIONS="${COMMON_OPTIONS} -DCMAKE_OSX_DEPLOYMENT_TARGET='10.15'"
31+
COMMON_OPTIONS="${COMMON_OPTIONS} -DCMAKE_OSX_DEPLOYMENT_TARGET='10.15'"
2832
fi
2933

3034
# Generate EDGETX_VERSION_SUFFIX if not already set
@@ -104,7 +108,9 @@ run_pipeline() {
104108
fi
105109
;;
106110
"final")
107-
if ! execute_with_output "🔧 Final config" "cmake --build . --target native-configure ${cmake_opts}" "$log_file" "$show_details"; then
111+
BUILD_OPTIONS="${COMMON_OPTIONS} -DEdgeTX_SUPERBUILD:BOOL=0 -DNATIVE_BUILD:BOOL=1"
112+
clean_build && mkdir -p native/plugins
113+
if ! execute_with_output "🔧 Final config" "cmake -S ${SRCDIR} -B native --toolchain cmake/toolchain/native.cmake ${BUILD_OPTIONS}" "$log_file" "$show_details"; then
108114
output_error_log "$log_file" "Final Configuration"
109115
return 1
110116
fi
@@ -203,16 +209,16 @@ build_plugin() {
203209
}
204210

205211
declare -a simulator_plugins=(
206-
x9lite x9lites x9d x9dp x9dp2019 x9e
207-
x7 x7access
208-
t8 t12 t12max tx12 tx12mk2 t15 t16 t18 t20 t20v2
209-
xlite xlites
210-
x10 x10express x12s
211-
zorro tx16s tx15
212-
commando8 boxer pocket mt12 gx12
213-
tlite tpro tprov2 tpros bumblebee lr3pro t14
214-
nv14 el18 pl18 pl18ev pl18u st16 pa01
215-
f16 v14 v16
212+
# x9lite x9lites x9d x9dp x9dp2019 x9e
213+
# x7 x7access
214+
# t8 t12 t12max tx12 tx12mk2 t15 t16 t18 t20 t20v2
215+
# xlite xlites
216+
# x10 x10express x12s
217+
# zorro tx16s tx15
218+
# commando8 boxer pocket mt12 gx12
219+
# tlite tpro tprov2 tpros bumblebee lr3pro t14
220+
# nv14 el18 pl18 pl18ev pl18u st16 pa01
221+
# f16 v14 v16
216222
)
217223

218224
get_platform_config

0 commit comments

Comments
 (0)