forked from open-source-parsers/jsoncpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup versioning strategy relanding (open-source-parsers#989) (open…
…-source-parsers#997) * Cleanup versioning strategy Currently, versioning is a mess. CMake and Meson have seperate build version number storage locations, with no way of knowing you need to have both. Plus, due to recent revisions the amalgamate script is broken unless you build first, and may still be broken afterwards. This PR fixes some issues with versioning, and adds comments clarifying what has to be done when doing a release. * Run clang format * Update SOVERSION....
- Loading branch information
Showing
12 changed files
with
81 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,6 @@ | |
/libs/ | ||
/doc/doxyfile | ||
/dist/ | ||
#/version | ||
#/include/json/version.h | ||
|
||
# MSVC project files: | ||
*.sln | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
\section _intro Introduction | ||
|
||
<a HREF="http://www.json.org/">JSON (JavaScript Object Notation)</a> | ||
is a lightweight data-interchange format. | ||
is a lightweight data-interchange format. | ||
|
||
Here is an example of JSON data: | ||
\verbatim | ||
|
@@ -23,14 +23,14 @@ Here is an example of JSON data: | |
{ | ||
// Default encoding for text | ||
"encoding" : "UTF-8", | ||
|
||
// Plug-ins loaded at start-up | ||
"plug-ins" : [ | ||
"python", | ||
"c++", // trailing comment | ||
"ruby" | ||
], | ||
|
||
// Tab indent size | ||
// (multi-line comment) | ||
"indent" : { /*embedded comment*/ "length" : 3, "use_space": true } | ||
|
@@ -67,7 +67,7 @@ const Json::Value plugins = root["plug-ins"]; | |
// Iterate over the sequence elements. | ||
for ( int index = 0; index < plugins.size(); ++index ) | ||
loadPlugIn( plugins[index].asString() ); | ||
|
||
// Try other datatypes. Some are auto-convertible to others. | ||
foo::setIndentLength( root["indent"].get("length", 3).asInt() ); | ||
foo::setIndentUseSpace( root["indent"].get("use_space", true).asBool() ); | ||
|
@@ -124,15 +124,15 @@ reader->parse(start, stop, &value2, &errs); | |
\endcode | ||
|
||
\section _pbuild Build instructions | ||
The build instructions are located in the file | ||
The build instructions are located in the file | ||
<a HREF="https://github.com/open-source-parsers/jsoncpp/blob/master/README.md">README.md</a> in the top-directory of the project. | ||
|
||
The latest version of the source is available in the project's GitHub repository: | ||
<a HREF="https://github.com/open-source-parsers/jsoncpp/"> | ||
jsoncpp</a> | ||
|
||
\section _news What's New? | ||
The description of latest changes can be found in | ||
The description of latest changes can be found in | ||
<a HREF="https://github.com/open-source-parsers/jsoncpp/wiki/NEWS"> | ||
the NEWS wiki | ||
</a>. | ||
|
@@ -152,7 +152,7 @@ The description of latest changes can be found in | |
\section _license License | ||
See file <a href="https://github.com/open-source-parsers/jsoncpp/blob/master/LICENSE"><code>LICENSE</code></a> in the top-directory of the project. | ||
|
||
Basically JsonCpp is licensed under MIT license, or public domain if desired | ||
Basically JsonCpp is licensed under MIT license, or public domain if desired | ||
and recognized in your jurisdiction. | ||
|
||
\author Baptiste Lepilleur <[email protected]> (originator) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
file(GLOB INCLUDE_FILES "json/*.h") | ||
install(FILES | ||
${INCLUDE_FILES} | ||
${PROJECT_BINARY_DIR}/include/json/version.h | ||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/json) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
#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 contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.