-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
First step of dynamically updating the version from cmake #2610
base: next
Are you sure you want to change the base?
Conversation
Showing how the current versioning works, but I will need help about the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am all for centralizing the version info!
But I think we can't get rid of some hard-coded version numbers.
Not all commits have a tag assigned. If you build on next
without having a tag, it fails to set the macros, right?
The version number macros need to be set. Because people use them to distinguish between pre-v5, v5, v6 etc. So they can build their project with different Capstone versions.
ae122aa
to
c2fcace
Compare
c2fcace
to
11d709d
Compare
@Rot127 I commented out the cmake to configure pkgconfig.mk, this will only dynamically the version information for the capstone.h file. Figure I can keep the template in the meantime for your use when you work on getting the bindings working. |
Thanks! I will review this one after Lunar New year. (So hopefully after the |
Your checklist for this pull request
Detailed description
Update Capstone such that Python binding versioning can be obtained from the CMake file, this would save time to just pass the version into CMake rather than manually update the version via commit.
Essentially, can we automate this step done for each release?
5526125
...
Test plan
1- Confirm that creating the Debian Package works as intended
2- Confirm that version.h and pkgconfig.mk file are correctly filled out. Not sure what exactly to check with the Python bindings though
...
Closing issues
closes #2609
...