Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
halx99 opened this issue Dec 31, 2021 · 2 comments
Closed

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

halx99 opened this issue Dec 31, 2021 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request wdw
Milestone

Comments

@halx99
Copy link
Collaborator

halx99 commented Dec 31, 2021

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

@halx99 halx99 added this to the 1.0 milestone Dec 31, 2021
@halx99 halx99 added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Dec 31, 2021
@halx99 halx99 changed the title Compile engine once, link prebuilt for project [Windows dev workflow] Compile engine once, link prebuilt for project Dec 31, 2021
@halx99 halx99 added the wdw label Dec 31, 2021
halx99 added a commit that referenced this issue Feb 20, 2022
Add new cmake variable:

- AX_PREBUILT_DIR: specific engine build directory relative to ADXE_ROOT, such as "-DAX_PREBUILT_DIR=build_x86"
@halx99 halx99 closed this as completed Feb 20, 2022
@halx99
Copy link
Collaborator Author

halx99 commented Feb 20, 2022

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

@aismann
Copy link
Contributor

aismann commented Feb 20, 2022

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?

@halx99 halx99 pinned this issue Feb 24, 2022
@halx99 halx99 changed the title [Windows dev workflow] Compile engine once, link prebuilt for project [Windows workflow] Compile engine once, link prebuilt for project Feb 24, 2022
@halx99 halx99 added the documentation Improvements or additions to documentation label Feb 26, 2022
@halx99 halx99 unpinned this issue Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request wdw
Projects
None yet
Development

No branches or pull requests

2 participants