35 lines
1.2 KiB
Bash
Executable File
35 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# LinuxCNC source basis: native source-link support objects come from the
|
|
# LinuxCNC-built RS274 Python bindings and support sources listed in
|
|
# linuxcnc-rs274-source-files.txt, including emcops, dummyemcstat, and stat_msg.
|
|
linuxcnc_root=${LINUXCNC_ROOT:-../linuxcnc}
|
|
filter=${1:-}
|
|
preflight_cache_dir=${CNC_SIM_PREFLIGHT_CACHE_DIR:-build/linuxcnc-helper-preflight-cache}
|
|
|
|
LINUXCNC_ROOT="$linuxcnc_root" ./check-linuxcnc-inputs-cached.sh --cache-dir "$preflight_cache_dir" --root-only
|
|
|
|
objects=(
|
|
src/objects/emc/rs274ngc/interpmodule.o
|
|
src/objects/emc/rs274ngc/canonmodule.o
|
|
src/objects/emc/rs274ngc/pyarrays.o
|
|
src/objects/emc/rs274ngc/pyblock.o
|
|
src/objects/emc/rs274ngc/pyemctypes.o
|
|
src/objects/emc/rs274ngc/pyinterp1.o
|
|
src/objects/emc/rs274ngc/pyparamclass.o
|
|
src/objects/emc/nml_intf/emcops.o
|
|
src/objects/emc/sai/dummyemcstat.o
|
|
src/objects/libnml/nml/stat_msg.o
|
|
)
|
|
|
|
for object in "${objects[@]}"; do
|
|
printf '%s\n' "$linuxcnc_root/$object"
|
|
done | ./list-filtered-existing-paths.sh \
|
|
"$filter" \
|
|
"missing LinuxCNC support object" \
|
|
"missing LinuxCNC support object in list" \
|
|
"build LinuxCNC first or set LINUXCNC_ROOT to a built tree"
|