From 7cc983b941dd0905b1ff0ea6bc97d2954af8c951 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 25 Oct 2021 07:50:40 +0200 Subject: [PATCH] [DEV] uptate new lutin declaration model --- .gitignore | 5 +++ GLD_ejson-sample.json | 41 ++++++++++++++++++++++ GLD_ejson-test.json | 27 +++++++++++++++ GLD_ejson.json | 68 ++++++++++++++++++++++++++++++++++++ lutin_ejson-sample.py | 38 -------------------- lutin_ejson-test.py | 46 ------------------------ lutin_ejson.py | 81 ------------------------------------------- 7 files changed, 141 insertions(+), 165 deletions(-) create mode 100644 GLD_ejson-sample.json create mode 100644 GLD_ejson-test.json create mode 100644 GLD_ejson.json delete mode 100644 lutin_ejson-sample.py delete mode 100644 lutin_ejson-test.py delete mode 100644 lutin_ejson.py diff --git a/.gitignore b/.gitignore index 0d20b64..405ec0c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,6 @@ +__pycache__ +.bck +out +target +build *.pyc diff --git a/GLD_ejson-sample.json b/GLD_ejson-sample.json new file mode 100644 index 0000000..bc7bd0d --- /dev/null +++ b/GLD_ejson-sample.json @@ -0,0 +1,41 @@ +{ + "type":"BINARY", + "sub-type":"SAMPLE", + "group-id":"com.atria-soft", + "description":"e-json sample", + "license":"MPL-2", + "license-file":"file://../../LICENCE.txt", + "maintainer":"file://../../authors.txt", + "author":"file://../../authors.txt", + "version":"file://../../version.txt", + "code-quality":"MEDIUM", + + "source": [ + "sample/main.cpp", + "sample/read.cpp", + "sample/write.cpp" + ], + "dependency": [ + "ejson", + "test-debug" + ], + "copy": [ + { + "file":"sample/read.json" + } + ], + "path":[ + "." + ], + "flag": { + "language": "c++", + "value": [ + "-DPROJECT_NAME=\"{{{project.name}}}\"", + "-DAPPL_VERSION=\"{{{project.version}}}\"" + ] + }, + "package":{ + "SECTION": "Game", + "PRIORITY": "optional" + } +} \ No newline at end of file diff --git a/GLD_ejson-test.json b/GLD_ejson-test.json new file mode 100644 index 0000000..36fffa4 --- /dev/null +++ b/GLD_ejson-test.json @@ -0,0 +1,27 @@ +{ + "type":"BINARY", + "sub-type":"TEST", + "group-id":"com.atria-soft", + "description":"e-json test application", + "license":"MPL-2", + "license-file":"file://../../LICENCE.txt", + "maintainer":"file://../../authors.txt", + "author":"file://../../authors.txt", + "version":"file://../../version.txt", + "code-quality":"MEDIUM", + + "source": [ + "test/test.cpp", + "test/testCommon.cpp", + "test/testDocument.cpp", + "test/testBoolean.cpp", + "test/testNull.cpp", + "test/testNumber.cpp", + "test/testAll.cpp" + ], + "dependency": [ + "ejson", + "etest", + "test-debug" + ] +} \ No newline at end of file diff --git a/GLD_ejson.json b/GLD_ejson.json new file mode 100644 index 0000000..c1487ee --- /dev/null +++ b/GLD_ejson.json @@ -0,0 +1,68 @@ +{ + "type":"LIBRARY", + "group-id":"com.atria-soft", + "description":"Json parser and generator", + "license":"MPL-2", + "license-file":"file://LICENCE.txt", + "maintainer":"file://authors.txt", + "author":"file://authors.txt", + "version":"file://version.txt", + "code-quality":"MEDIUM", + + "source": [ + "ejson/debug.cpp", + "ejson/FilePos.cpp", + "ejson/valueType.cpp", + "ejson/Document.cpp", + "ejson/Array.cpp", + "ejson/Boolean.cpp", + "ejson/Null.cpp", + "ejson/Number.cpp", + "ejson/String.cpp", + "ejson/Object.cpp", + "ejson/Value.cpp", + "ejson/internal/Document.cpp", + "ejson/internal/Array.cpp", + "ejson/internal/Boolean.cpp", + "ejson/internal/Null.cpp", + "ejson/internal/Number.cpp", + "ejson/internal/String.cpp", + "ejson/internal/Object.cpp", + "ejson/internal/Value.cpp" + ], + "header": [ + "ejson/FilePos.hpp", + "ejson/ejson.hpp", + "ejson/valueType.hpp", + "ejson/Document.hpp", + "ejson/Array.hpp", + "ejson/Boolean.hpp", + "ejson/Null.hpp", + "ejson/Number.hpp", + "ejson/String.hpp", + "ejson/Object.hpp", + "ejson/Value.hpp", + "ejson/iterator.hpp", + "ejson/details/iterator.hxx", + "ejson/internal/Document.hpp", + "ejson/internal/Array.hpp", + "ejson/internal/Boolean.hpp", + "ejson/internal/Null.hpp", + "ejson/internal/Number.hpp", + "ejson/internal/String.hpp", + "ejson/internal/Object.hpp", + "ejson/internal/Value.hpp" + ], + "path":[ + "." + ], + "compilation-version": { + "language": "c++", + "version": 2017 + }, + "dependency": [ + "elog", + "etk", + "ememory" + ] +} \ No newline at end of file diff --git a/lutin_ejson-sample.py b/lutin_ejson-sample.py deleted file mode 100644 index 8aca99b..0000000 --- a/lutin_ejson-sample.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/python -import realog.debug as debug -import lutin.tools as tools - -def get_type(): - return "BINARY" - -def get_sub_type(): - return "SAMPLE" - -def get_desc(): - return "e-json sample" - -def get_licence(): - return "MPL-2" - -def get_compagny_type(): - return "com" - -def get_compagny_name(): - return "atria-soft" - -def get_maintainer(): - return ["Mr DUPIN Edouard "] - -def configure(target, my_module): - my_module.add_src_file([ - 'sample/main.cpp', - 'sample/read.cpp', - 'sample/write.cpp' - ]) - my_module.add_depend([ - 'ejson', - 'test-debug' - ]) - my_module.copy_path('sample/read.json') - return True - diff --git a/lutin_ejson-test.py b/lutin_ejson-test.py deleted file mode 100644 index 6d26fd6..0000000 --- a/lutin_ejson-test.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/python -import realog.debug as debug -import lutin.tools as tools - - -def get_type(): - return "BINARY" - -def get_sub_type(): - return "TEST" - -def get_name(): - return "e-json-test" - -def get_desc(): - return "e-json test application" - -def get_licence(): - return "MPL-2" - -def get_compagny_type(): - return "com" - -def get_compagny_name(): - return "atria-soft" - -def get_maintainer(): - return ["Mr DUPIN Edouard "] - -def configure(target, my_module): - my_module.add_src_file([ - 'test/test.cpp', - 'test/testCommon.cpp', - 'test/testDocument.cpp', - 'test/testBoolean.cpp', - 'test/testNull.cpp', - 'test/testNumber.cpp', - 'test/testAll.cpp', - ]) - my_module.add_depend([ - 'ejson', - 'etest', - 'test-debug' - ]) - return True - diff --git a/lutin_ejson.py b/lutin_ejson.py deleted file mode 100644 index 9be98d6..0000000 --- a/lutin_ejson.py +++ /dev/null @@ -1,81 +0,0 @@ -#!/usr/bin/python -import realog.debug as debug -import lutin.tools as tools - - -def get_type(): - return "LIBRARY" - -def get_desc(): - return "Json parser and generator" - -def get_licence(): - return "MPL-2" - -def get_compagny_type(): - return "com" - -def get_compagny_name(): - return "atria-soft" - -def get_maintainer(): - return "authors.txt" - -def get_version(): - return "version.txt" - -def configure(target, my_module): - my_module.add_depend([ - 'elog', - 'etk', - 'ememory' - ]) - my_module.add_extra_flags() - my_module.add_src_file([ - 'ejson/debug.cpp', - 'ejson/FilePos.cpp', - 'ejson/valueType.cpp', - 'ejson/Document.cpp', - 'ejson/Array.cpp', - 'ejson/Boolean.cpp', - 'ejson/Null.cpp', - 'ejson/Number.cpp', - 'ejson/String.cpp', - 'ejson/Object.cpp', - 'ejson/Value.cpp', - 'ejson/internal/Document.cpp', - 'ejson/internal/Array.cpp', - 'ejson/internal/Boolean.cpp', - 'ejson/internal/Null.cpp', - 'ejson/internal/Number.cpp', - 'ejson/internal/String.cpp', - 'ejson/internal/Object.cpp', - 'ejson/internal/Value.cpp' - ]) - my_module.add_header_file([ - 'ejson/FilePos.hpp', - 'ejson/ejson.hpp', - 'ejson/valueType.hpp', - 'ejson/Document.hpp', - 'ejson/Array.hpp', - 'ejson/Boolean.hpp', - 'ejson/Null.hpp', - 'ejson/Number.hpp', - 'ejson/String.hpp', - 'ejson/Object.hpp', - 'ejson/Value.hpp', - 'ejson/iterator.hpp', - 'ejson/details/iterator.hxx', - 'ejson/internal/Document.hpp', - 'ejson/internal/Array.hpp', - 'ejson/internal/Boolean.hpp', - 'ejson/internal/Null.hpp', - 'ejson/internal/Number.hpp', - 'ejson/internal/String.hpp', - 'ejson/internal/Object.hpp', - 'ejson/internal/Value.hpp' - ]) - my_module.add_path(".") - return True - -