axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)

Home Page:https://axmol.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

halx99 opened this issue · comments

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

Maybe add a CMakeOptions.md is better, there a other unified options needs docs, see relative issue:
#578

Maybe add a CMakeOptions.md is better, there a other unified options needs docs, see relative issue: #578

Good idea.
Only a link to this CMakeOptions.md on readme or wiki is usefull.
What are you mean?