Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1820,6 +1820,13 @@ file(GLOB DAS_BUILTIN_HEADERS ${PROJECT_SOURCE_DIR}/src/builtin/*.h)
install(FILES ${DAS_BUILTIN_HEADERS}
DESTINATION include/daScript/builtin
)
# The generated binding tables: the shipped aot_builtin_ast.h includes ast_gen.inc, so without it
# an SDK consumer's AOT translation unit that touches the ast module fails to compile.
install(FILES
${PROJECT_SOURCE_DIR}/include/daScript/builtin/ast_gen.inc
${PROJECT_SOURCE_DIR}/include/daScript/builtin/debugapi_gen.inc
DESTINATION include/daScript/builtin
)

# libDaScriptNano ships as sources, not as a built library: an embedder cross-
# compiles it for their own target with their own flags, which is the whole
Expand Down
15 changes: 15 additions & 0 deletions ci/smoke_test_bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,21 @@ for entry in "${SHIPPED_EXE_TESTS[@]}"; do
fi
done

echo
echo "Shipped headers' includes:"
# A shipped header that includes a file the install rule leaves out compiles in the tree and
# fails in every SDK consumer; each pair below is a shipped header and a file it includes.
for pair in "include/daScript/simulate/aot_builtin_ast.h:include/daScript/builtin/ast_gen.inc"; do
header="${pair%%:*}"; inc="${pair##*:}"
if [[ -f "$BUNDLE/$header" && -f "$BUNDLE/$inc" ]]; then
printf ' %-52s OK\n' "$inc"
PASS=$((PASS + 1))
else
printf ' %-52s MISSING (included by %s)\n' "$inc" "$header"
FAIL=$((FAIL + 1))
fi
done

echo
echo "Runtime launch:"
run_check "mcp.das (empty stdin)" bash -c \
Expand Down
Loading