[Windows workflow] Compile engine once, link prebuilt for project
halx99 opened this issue · comments
Build engine once, linking by every projects
Use steps:
- 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
- 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