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

Use CMake for building #18

Open
suve opened this issue Dec 23, 2022 · 0 comments
Open

Use CMake for building #18

suve opened this issue Dec 23, 2022 · 0 comments

Comments

@suve
Copy link
Owner

suve commented Dec 23, 2022

The current setup with a hand-written configure script that generates a Makefile is quite rudimentary, unfriendly for newcomers and very hard to integrate into other build systems (most notably Gradle, which is used for Android builds).

Migrating the game to CMake seems like a good idea.

  • It is a popular and well-understood build system (even if it has its own flaws).
  • CMake integrates nicely with Gradle. This would make it possible to simplify Android builds so that everything can be done via Gradle / Android Studio, without the need for the current hodgepodge of shell scripts.

Foreseeable problems:

  • CMake, out-of-the-box, does not have Pascal support. Some extra CMake scripting would be needed for adding Pascal support.
  • Support for different target OS / processors is needed. Currently, this is handled by simply passing some flags to the configure script, e.g. --flags="-Tandroid -Paarch64" when building for Android on 64-bit ARM.
  • Apart from code compilation, the build process also includes asset optimization. This would also need to be preserved in the CMake scripting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant