Skip to content

Commit

Permalink
Project renamed and moved to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Chlumsky committed Dec 3, 2021
0 parents commit 9db431f
Show file tree
Hide file tree
Showing 71 changed files with 5,289 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/build/
/linux_build/
/test/
/generate-configuration-parser.bat
/run-cmake.bat
/install.bat
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

cmake_minimum_required(VERSION 3.15)

project(json-cpp-gen LANGUAGES CXX)

set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

file(GLOB_RECURSE JSON_CPP_GEN_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "src/*.h" "generated/*.h")
file(GLOB_RECURSE JSON_CPP_GEN_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "src/*.cpp" "generated/*.cpp")

add_executable(json-cpp-gen ${JSON_CPP_GEN_HEADERS} ${JSON_CPP_GEN_SOURCES})
target_compile_features(json-cpp-gen PUBLIC cxx_std_11)
if (MSVC)
target_compile_definitions(json-cpp-gen PUBLIC _CRT_SECURE_NO_WARNINGS)
endif()
25 changes: 25 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

JSON-CPP-GEN
Copyright (c) 2021 Viktor Chlumsky

This software is provided under a dual license:

- For GitHub Sponsors of Chlumsky, with an active monthly subscription
to the second available tier or higher, the software and its output
is provided under the MIT license (https://mit-license.org/).

- For everyone else, the software may only be used for non-commercial
purposes and cannot be redistributed. Its output may also only be used
for non-commercial purposes but may be modified or redistributed as long
as the "generated by" attribution notice and URL is retained.

The software is provided "as-is", without warranty of any kind, express or
implied, including but not limited to the warranties of merchantability,
fitness for a particular purpose and noninfringement. In no event shall
the authors or copyright holders be liable for any claim, damages or other
liability, whether in an action of contract, tort or otherwise, arising from,
out of or in connection with the software or the use or other dealings
in the software.

The above copyright notice and licensing information must be included
in all copies or substantial portions of the software.
26 changes: 26 additions & 0 deletions configuration-parser-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"inputs": [
"src/NameFormat.h",
"src/Configuration.h"
],
"settings": {
"jsonIOMode": "NULL_TERMINATED_STRING",
"keyFormat": "ANY",
"enumFormat": "ANY",
"noThrow": false,
"verboseErrors": true,
"strictSyntaxCheck": true,
"checkMissingKeys": false,
"checkRepeatingKeys": false,
"ignoreExtraKeys": true,
"checkIntegerOverflow": true
},
"parsers": [ {
"name": "ConfigurationParser",
"types": [
"Configuration"
],
"headerOutput": "generated/ConfigurationParser.h",
"sourceOutput": "generated/ConfigurationParser.cpp"
} ]
}
Loading

0 comments on commit 9db431f

Please sign in to comment.