-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Cleanup versioning strategy #989
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef JSON_VERSION_H_INCLUDED | ||
#define JSON_VERSION_H_INCLUDED | ||
|
||
// Note: version must be updated in three places when doing a release. This | ||
// annoying process ensures that amalgamate, CMake, and meson all report the | ||
// correct version. | ||
// 1. /meson.build | ||
// 2. /include/json/version.h | ||
// 3. /CMakeLists.txt | ||
// IMPORTANT: also update the SOVERSION!! | ||
|
||
#define JSONCPP_VERSION_STRING "1.9.2" | ||
#define JSONCPP_VERSION_MAJOR 1 | ||
#define JSONCPP_VERSION_MINOR 9 | ||
#define JSONCPP_VERSION_PATCH 2 | ||
#define JSONCPP_VERSION_QUALIFIER | ||
#define JSONCPP_VERSION_HEXA \ | ||
((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | \ | ||
(JSONCPP_VERSION_PATCH << 8)) | ||
|
||
#ifdef JSONCPP_USING_SECURE_MEMORY | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's this stuff about |
||
#undef JSONCPP_USING_SECURE_MEMORY | ||
#endif | ||
#define JSONCPP_USING_SECURE_MEMORY 0 | ||
// If non-zero, the library zeroes any memory that it has allocated before | ||
// it frees its memory. | ||
|
||
#endif // JSON_VERSION_H_INCLUDED |
This file was deleted.
This file was deleted.
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.
CMake's file command can read a variable from a file.
I don't know how to do it in meson.
I guess a worst-case would be invoking cat.
I don't know meson. It feels like we should be able to do this though!
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'll spend some time this week looking into that, I definitely agree with you.