[DEV] uptate new lutin declaration model

This commit is contained in:
Edouard DUPIN 2021-10-25 07:50:40 +02:00
parent a378647fef
commit 7cc983b941
7 changed files with 141 additions and 165 deletions

5
.gitignore vendored
View File

@ -1 +1,6 @@
__pycache__
.bck
out
target
build
*.pyc

41
GLD_ejson-sample.json Normal file
View File

@ -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"
}
}

27
GLD_ejson-test.json Normal file
View File

@ -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"
]
}

68
GLD_ejson.json Normal file
View File

@ -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"
]
}

View File

@ -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 <yui.heero@gmail.com>"]
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

View File

@ -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 <yui.heero@gmail.com>"]
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

View File

@ -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