[DEV] uptate new lutin declaration model

This commit is contained in:
Edouard DUPIN 2021-10-25 08:02:51 +02:00
parent df1cba3622
commit 89e3b7250b
6 changed files with 102 additions and 83 deletions

5
.gitignore vendored
View File

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

56
GLD_estyle-test.json Normal file
View File

@ -0,0 +1,56 @@
{
"type":"BINARY",
"sub-type":"TEST",
"group-id":"com.atria-soft",
"description":"Stylizer for C++ test",
"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/main.cpp",
"test/testBlock.cpp",
"test/testClass.cpp",
"test/testComment.cpp",
"test/testDoWhile.cpp",
"test/testElse.cpp",
"test/testFor.cpp",
"test/testFunction.cpp",
"test/testIf.cpp",
"test/testNamespace.cpp",
"test/testPreprocessor.cpp",
"test/testStruct.cpp",
"test/testSwitch.cpp",
"test/testTemplate.cpp",
"test/testType.cpp",
"test/testVariable.cpp",
"test/testWhile.cpp"
],
"header": [
"algue/base64.hpp",
"algue/sha1.hpp",
"algue/sha512.hpp",
"algue/md5.hpp"
],
"path":[
"test"
],
"compilation-version": {
"language": "c++",
"version": 2017
},
"dependency": [
"estyle",
"etest",
"test-debug"
],
"copy":[
{
"path":"data/*",
"to":"test"
}
]
}

40
GLD_estyle.json Normal file
View File

@ -0,0 +1,40 @@
{
"type":"LIBRARY",
"group-id":"com.atria-soft",
"description":"style checker/updater for C++",
"license":"MPL-2",
"license-file":"file://LICENCE.txt",
"maintainer":"file://authors.txt",
"author":"file://authors.txt",
"version":"file://version.txt",
"code-quality":"MEDIUM",
"source": [
"estyle/debug.cpp",
"estyle/estyle.cpp",
"estyle/GroupProperty.cpp",
"estyle/Generator.cpp",
"estyle/lexer/Lexer.cpp",
"estyle/lexer/tocken.cpp"
],
"header": [
"estyle/debug.hpp",
"estyle/estyle.hpp",
"estyle/GroupProperty.hpp",
"estyle/Generator.hpp",
"estyle/lexer/Lexer.hpp",
"estyle/lexer/tocken.hpp"
],
"path":[
"."
],
"compilation-version": {
"language": "c++",
"version": 2017
},
"dependency": [
"etk",
"eproperty",
"cxx"
]
}

View File

@ -1,45 +0,0 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
def get_type():
return "BINARY"
def get_sub_type():
return "TEST"
def get_name():
return "estyle-test"
def get_desc():
return "Stylizer for C++ test"
def configure(target, my_module):
my_module.add_depend(['estyle', 'etest', 'test-debug'])
# add extra compilation flags :
my_module.add_extra_flags()
# add sources files
my_module.add_src_file([
'test/main.cpp',
'test/testBlock.cpp',
'test/testClass.cpp',
'test/testComment.cpp',
'test/testDoWhile.cpp',
'test/testElse.cpp',
'test/testFor.cpp',
'test/testFunction.cpp',
'test/testIf.cpp',
'test/testNamespace.cpp',
'test/testPreprocessor.cpp',
'test/testStruct.cpp',
'test/testSwitch.cpp',
'test/testTemplate.cpp',
'test/testType.cpp',
'test/testVariable.cpp',
'test/testWhile.cpp',
])
my_module.add_path("test")
my_module.copy_path('data/*','test')
return my_module

View File

@ -1,37 +0,0 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
def get_type():
return "LIBRARY"
def get_name():
return "estyle"
def get_desc():
return "style checker/updater for C++"
def configure(target, my_module):
my_module.add_depend(['etk', 'eproperty', 'cxx'])
# add extra compilation flags :
my_module.add_extra_flags()
# add sources files
my_module.add_src_file([
'estyle/debug.cpp',
'estyle/estyle.cpp',
'estyle/GroupProperty.cpp',
'estyle/Generator.cpp',
'estyle/lexer/Lexer.cpp',
'estyle/lexer/tocken.cpp',
])
my_module.add_header_file([
'estyle/debug.hpp',
'estyle/estyle.hpp',
'estyle/GroupProperty.hpp',
'estyle/Generator.hpp',
'estyle/lexer/Lexer.hpp',
'estyle/lexer/tocken.hpp',
])
return my_module

View File

@ -1 +1 @@
0.1.0-dev 0.1.0-dev