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

[DDA Port] Various improvements to CMake builds #3208

Merged
merged 22 commits into from
Sep 23, 2023

Conversation

olanti-p
Copy link
Contributor

@olanti-p olanti-p commented Sep 22, 2023

Summary

SUMMARY: Build "[DDA Port] Various improvements to CMake builds"

Purpose of change

Working towards #3113

Describe the solution

DDA PRs ported, or used as base, or had commits cherry-picked from:

Also hacked in CMake style autofix workflow, dunno if it'd work.

We have a lot of divergences due to our own hacking of CMake build, some things may break.

Describe alternatives you've considered

Figuring out how to do cmake on windows and osx by my own.

Testing

The game builds and runs on linux...
There are more extensive changes to come, I don't think it's worth to test extensively yet.
I also don't have an OSX machine available at the moment, so OSX changes are picked "blindly".

Additional context

That style change PR is one big merge conflict :(

Kasper Rasmussen and others added 19 commits September 22, 2023 03:44
Cherry-picked from commit de1a6ccc325e0682983f3f19446822e4c8e5a514
* format cmake files to adhere to linting rules

* cmake linting workflow/action

Cherry-picked from a149ceb00807a323cd7eba5fa7a3a7c8b3b0b1b2
Cherry-picked from commit 84165ee535561773058130402510657b3621edf1
Cherry-picked from commit 7e588b20ec89abf6de6f674975f814803d9c5e7e
`PREFIX` is a reserved word in CMake and breaks compiler and library detection
when set.  Using `CMAKE_INSTALL_PREFIX` instead resolves this.

Cherry-picked from commit: 7cbcecb18f3c9f91160a0ec45a04d61221096670
Cherry-picked from commit: db8f0d3de2f69c4b355afc9a6153da8abeb63f54
Cherry-picked from commit: 45f6a3b77fd07563a4625b1f313d2c4cb797db0d
Cherry-picked from commit ff4db050877c4cdcb9ae2e5b247eb4f70c1d3eb4
Cherry-picked from commit: 256ef3388407e66b9edaac91ef5993a89511fad7
Cherry-picked from commit: f9008b743357fd0eeed206437d284864783015a1
Cherry-picked from commit: 69a29a0c8ca772ba4ac7b27fefbc7fc48895258e
@github-actions github-actions bot added translation src changes related to source code. JSON related to game datas in JSON format. tests changes related to tests labels Sep 22, 2023
@scarf005 scarf005 self-requested a review September 22, 2023 13:41
@olanti-p olanti-p marked this pull request as ready for review September 22, 2023 22:08
@scarf005 scarf005 self-assigned this Sep 23, 2023
@scarf005 scarf005 mentioned this pull request Sep 23, 2023
Comment on lines +1222 to +1230
./CMakeLists.txt \
./data/CMakeLists.txt \
./lang/CMakeLists.txt \
./src/chkjson/CMakeLists.txt \
./src/CMakeLists.txt \
./src/version.cmake \
./tests/CMakeLists.txt \
./tools/clang-tidy-plugin/CMakeLists.txt \
./tools/format/CMakeLists.txt \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe these could be globbed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They should be, or maybe even formatted with the deno formatting workflow somehow, but this was the fastest hack I could come up with.

Copy link
Member

@scarf005 scarf005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

13:51:07.995 INFO : Randomness seeded to: 0

randomness always gets seeded to 0, other than that all looks good, build and tests pass in linux


except these, but for some reason i was always getting same errors
image

@scarf005 scarf005 merged commit c8deaa7 into cataclysmbnteam:upload Sep 23, 2023
@olanti-p olanti-p deleted the modernize-cmake branch September 25, 2023 15:48
@olanti-p olanti-p mentioned this pull request Nov 14, 2023
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JSON related to game datas in JSON format. src changes related to source code. tests changes related to tests translation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants