满庭芳·源流归一
结论:LinuxCNC rs274ngc 源码移植边界继续收拢。已将 rs274ngc 头文件纳入 manifest 跟踪,core 编译组仍只包含可编译源文件;启用 CNC_SIM_ENABLE_LINUXCNC_RS274_BACKEND 时 API 默认使用 LinuxCNC rs274 后端;M428/M429/M430 与 5axis/TRT/TDR/RTCP 相关路径继续保持来自 LinuxCNC 源码或 remap 配置的薄桥接。 验证:./test-linuxcnc-source-syntax.sh;./test-linuxcnc-api-native.sh;./test-native.sh;./test-linuxcnc-source-link.sh。
This commit is contained in:
@@ -5,41 +5,7 @@ cd "$(dirname "$0")"
|
||||
|
||||
filter=${1:-}
|
||||
|
||||
awk '
|
||||
/set\(linuxcnc_wasm_safe_probe_shims/ {
|
||||
in_list = 1
|
||||
next
|
||||
}
|
||||
in_list && /^[[:space:]]*\)/ {
|
||||
exit
|
||||
}
|
||||
in_list {
|
||||
line = $0
|
||||
sub(/^[[:space:]]*/, "", line)
|
||||
sub(/[[:space:]]*$/, "", line)
|
||||
if (line == "") {
|
||||
next
|
||||
}
|
||||
sub(/^\$\{CMAKE_CURRENT_SOURCE_DIR\}\//, "core/", line)
|
||||
print line
|
||||
}
|
||||
' core/CMakeLists.txt | while IFS= read -r source; do
|
||||
if [[ ! -f "$source" ]]; then
|
||||
echo "missing wasm-safe shim source: $source" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ -n "$filter" && "$(basename "$source")" != "$filter" ]]; then
|
||||
continue
|
||||
fi
|
||||
printf '%s\n' "$source"
|
||||
done | {
|
||||
found=0
|
||||
while IFS= read -r source; do
|
||||
found=1
|
||||
printf '%s\n' "$source"
|
||||
done
|
||||
if [[ -n "$filter" && "$found" -eq 0 ]]; then
|
||||
echo "missing wasm-safe shim in CMake list: $filter" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
./list-cmake-set-sources.sh linuxcnc_wasm_safe_probe_shims | ./list-filtered-existing-paths.sh \
|
||||
"$filter" \
|
||||
"missing wasm-safe shim source" \
|
||||
"missing wasm-safe shim in CMake list"
|
||||
|
||||
Reference in New Issue
Block a user