feat(create): add C++ module scaffold with App/ and Gui/ targets (#251) #262
Reference in New Issue
Block a user
Delete Branch "feat/cpp-module-scaffold"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Establish
src/Mod/Create/App/andsrc/Mod/Create/Gui/as the home for Kindred-specific C++ features (e.g. FlipPocket in Phase 2).Scaffold only — no features implemented yet.
New files
CreateGlobal.h— export macros (CreateExport,CreateGuiExport)App/AppCreate.cpp—PyMOD_INIT_FUNC(CreateApp)entry pointApp/AppCreatePy.cpp—Py::ExtensionModule<Module>Python module objectApp/CMakeLists.txt— shared lib target linkingFreeCADAppApp/PreCompiled.h— minimal precompiled headerGui/AppCreateGui.cpp—PyMOD_INIT_FUNC(CreateGui)entry pointGui/AppCreateGuiPy.cpp—Py::ExtensionModule<Module>Python module objectGui/CMakeLists.txt— shared lib target linkingCreate+FreeCADGuiGui/PreCompiled.h— minimal precompiled headerModified files
CMakeLists.txt— addedadd_subdirectory(App)and conditionaladd_subdirectory(Gui)Follows the Assembly module pattern. Existing Python
Init.py/InitGui.pybootstrap unchanged.Closes #251.