[DEV] uptate new lutin declaration model

This commit is contained in:
Edouard DUPIN 2021-10-25 07:53:45 +02:00
parent 86ad1bc56c
commit 42644d4424
7 changed files with 104 additions and 136 deletions

5
.gitignore vendored
View File

@ -1,3 +1,8 @@
__pycache__
.bck
out
target
build
# Compiled Object files
*.slo
*.lo

19
GLD_esignal-sample.json Normal file
View File

@ -0,0 +1,19 @@
{
"type":"BINARY",
"sub-type":"SAMPLE",
"group-id":"com.atria-soft",
"description":"e-signal sample 1",
"license":"MPL-2",
"license-file":"file://LICENCE.txt",
"maintainer":"file://authors.txt",
"author":"file://authors.txt",
"version":"file://version.txt",
"source": [
"sample/sampleAll.cpp"
],
"dependency": [
"esignal",
"test-debug"
]
}

27
GLD_esignal-test.json Normal file
View File

@ -0,0 +1,27 @@
{
"type":"BINARY",
"sub-type":"TEST",
"group-id":"com.atria-soft",
"description":"e-signal test software",
"license":"MPL-2",
"license-file":"file://LICENCE.txt",
"maintainer":"file://authors.txt",
"author":"file://authors.txt",
"version":"file://version.txt",
"source": [
"test/main.cpp",
"test/declareSignals.cpp",
"test/test_signal_counter.cpp",
"test/test_signal_class_func.cpp",
"test/test_signal_recursive.cpp",
"test/test_signal_shared_ptr_func.cpp",
"test/test_signal_static_func.cpp",
"test/test_isignal.cpp"
],
"dependency": [
"esignal",
"etest",
"test-debug"
]
}

53
GLD_esignal.json Normal file
View File

@ -0,0 +1,53 @@
{
"type":"LIBRARY",
"group-id":"com.atria-soft",
"description":"esignal is signal management for all class",
"license":"MPL-2",
"license-file":"file://LICENCE.txt",
"maintainer":"file://authors.txt",
"author":"file://authors.txt",
"version":"file://version.txt",
"source": [
"esignal/debug.cpp",
"esignal/Connection.cpp",
"esignal/InterfaceData.cpp",
"esignal/Base.cpp",
"esignal/details/Signal.cpp"
],
"header": [
"esignal/debug.hpp",
"esignal/Interface.hpp",
"esignal/InterfaceData.hpp",
"esignal/Base.hpp",
"esignal/Signal.hpp",
"esignal/Connection.hpp",
"esignal/details/Signal.hxx"
],
"path":[
"."
],
"compilation-version": {
"language": "c++",
"version": 2011
},
"dependency": [
"etk",
"ememory",
{
"name": "echrono",
"optional": true,
"export": false,
"flag": {
"language": "c++",
"value": "-DESIGNAL_BUILD_WITH_ECHRONO"
}
}
],
"flag": {
"language": "c++",
"value": [
"-DESIGNAL_VERSION=\"{{{project.version}}}\""
]
}
}

View File

@ -1,35 +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-signal sample 1"
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 configure(target, my_module):
my_module.add_src_file([
'sample/sampleAll.cpp'
])
my_module.add_depend([
'esignal',
'test-debug'
])
return True

View File

@ -1,44 +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_desc():
return "e-signal test software"
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 configure(target, my_module):
my_module.add_src_file([
'test/main.cpp',
'test/declareSignals.cpp',
'test/test_signal_counter.cpp',
'test/test_signal_class_func.cpp',
'test/test_signal_recursive.cpp',
'test/test_signal_shared_ptr_func.cpp',
'test/test_signal_static_func.cpp',
'test/test_isignal.cpp'
])
my_module.add_depend([
'esignal',
'etest',
'test-debug'
])
return True

View File

@ -1,57 +0,0 @@
#!/usr/bin/python
import lutin.tools as tools
import realog.debug as debug
def get_type():
return "LIBRARY"
def get_desc():
return "esignal is signal management for all class"
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_extra_flags()
my_module.add_src_file([
'esignal/debug.cpp',
'esignal/Connection.cpp',
'esignal/InterfaceData.cpp',
'esignal/Base.cpp',
'esignal/details/Signal.cpp',
])
my_module.add_header_file([
'esignal/debug.hpp',
'esignal/Interface.hpp',
'esignal/InterfaceData.hpp',
'esignal/Base.hpp',
'esignal/Signal.hpp',
'esignal/Connection.hpp',
'esignal/details/Signal.hxx',
])
my_module.compile_version("c++", 2011)
my_module.add_depend([
'etk',
'ememory'
])
my_module.add_path(".")
my_module.add_flag('c++', [
"-DESIGNAL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
])
my_module.add_optionnal_depend('echrono', compilation_flags=["c++", "-DESIGNAL_BUILD_WITH_ECHRONO"])
my_module.add_tools(['esignal-test'])
return True