Files
Web_FreeCAD_Bitbybit/config/emscripten-freecad-candidate-toolchain.cmake
wangdequan f97eae4153
Some checks failed
real-verification / chrome (push) Has been cancelled
real-verification / freecad-oracle (push) Has been cancelled
real-verification / wasm (push) Has been cancelled
feat: add candidate FreeCAD naming SDK and attachment oracles
Build and verify the candidate-only FreeCAD naming bridge and OCCT worker path, including three-stage StringHasher restoration. Add Datum, ShapeBinder, attachment-mode, and PartDesign structure oracles plus offline SDK build plans and CI boundary checks.
2026-08-13 17:16:07 -04:00

14 lines
730 B
CMake

# Candidate-only wrapper around the pinned Emscripten 3.1.69 platform file.
include("/usr/share/emscripten/cmake/Modules/Platform/Emscripten.cmake")
# FreeCAD declares Base/App/Part as SHARED. For this candidate, collect their
# wasm object files as static archives and link shared dependencies separately.
set(CMAKE_SHARED_LIBRARY_SUFFIX ".a")
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_AR> rcs <TARGET> <OBJECTS>")
set(CMAKE_CXX_CREATE_SHARED_LIBRARY "<CMAKE_AR> rcs <TARGET> <OBJECTS>")
# FreeCAD's native compiler setup uses the CMake UNIX boolean to add
# --undefined,dynamic_lookup. Emscripten emits SHARED as a relocatable object,
# so that native-only linker branch must stay disabled for this candidate.
set(UNIX FALSE)