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

chore: switch build system to cmake #31

Merged
merged 3 commits into from
Apr 5, 2024
Merged

chore: switch build system to cmake #31

merged 3 commits into from
Apr 5, 2024

Conversation

thunder-coding
Copy link
Member

There are multiple benefits of using CMake over Autotools like:

  • CMake is much more modern and requires much less lines of code as
    compared to doing the same thing in autotools
  • Autotools is years of bad decisions, generating a long 50k+ lines of
    bash script to generate the Makefiles definitely isn't a good idea and
    is really slow as well as makes debugging the build process very
    difficult
  • Existing projects using termux-elf-cleaner using CMake should benefit
    from this.

Copy link
Member

@Grimler91 Grimler91 left a comment

Choose a reason for hiding this comment

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

Considering recent events I agree that this is a good idea. I have some comments regarding tests part, but otherwise LGTM, thanks for working on this!

tests/test.sh Outdated Show resolved Hide resolved
tests/threads.at Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
There are multiple benefits of using CMake over Autotools like:
- CMake is much more modern and requires much less lines of code as
  compared to doing the same thing in autotools
- Autotools is years of bad decisions, generating a long 50k+ lines of
  bash script to generate the Makefiles definitely isn't a good idea and
  is really slow as well as makes debugging the build process very
  difficult
- Existing projects using termux-elf-cleaner using CMake should benefit
  from this.
@thunder-coding
Copy link
Member Author

Merging this, will do a new 3.0.0 release after doing a bit of rewrite to make the overall code more readible. The command line parser is mess especially, will try to replace it with a more readible one

@thunder-coding thunder-coding merged commit 8449d0f into master Apr 5, 2024
1 check passed
@thunder-coding thunder-coding deleted the cmake branch April 5, 2024 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants