Skip to content

[Windows workflow] Compile engine once, link prebuilt for project #564

@halx99

Description

@halx99

Build engine once, linking by every projects

Use steps:

  1. Build engine firstly
cd axmol
cmake -B build_x86 -A Win32 -DAX_BUILD_TESTS=OFF
cmake --build build_x86 --config Debug
cmake --build build_x86 --config Release
  1. create new project and build with engine prebuilt libs
axmol new -p org.axmol.hellocpp -d D:\dev\projects\ -l cpp --portrait HelloCpp
cd /d D:\dev\projects\HelloCpp
cmake -B build_x86 -A Win32 "-DAX_PREBUILT_DIR=build_x86"
cmake --build build_x86 --config Debug --target HelloCpp
REM run the HelloCpp.exe
run.bat

Notes:

The app build architecture must match with axmol engine build dir

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestwdw

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions