[DEV] uptate new lutin declaration model

This commit is contained in:
Edouard DUPIN 2021-10-25 07:49:34 +02:00
parent ad46a3adeb
commit 634dfba75b
11 changed files with 190 additions and 285 deletions

5
.gitignore vendored
View File

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

22
GLD_egami-sample.json Normal file
View File

@ -0,0 +1,22 @@
{
"type":"BINARY",
"sub-type":"SAMPLE",
"group-id":"com.atria-soft",
"description":"Test software for egami",
"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": [
"egami",
"test-debug"
]
}

28
GLD_egami-test.json Normal file
View File

@ -0,0 +1,28 @@
{
"type":"BINARY",
"sub-type":"TEST",
"group-id":"com.atria-soft",
"description":"Test software for egami",
"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"
],
"dependency": [
"egami",
"etest",
"test-debug",
"algue"
],
"copy": [
{
"path":"data/*",
"to":""
}
]
}

91
GLD_egami.json Normal file
View File

@ -0,0 +1,91 @@
{
"type":"LIBRARY",
"group-id":"com.atria-soft",
"description":"Image generator from multiple image type",
"license":"MPL-2",
"license-file":"file://LICENCE.txt",
"maintainer":"file://authors.txt",
"author":"file://authors.txt",
"version":"file://version.txt",
"code-quality":"MEDIUM",
"source": [
"egami/Image.cpp",
"egami/ImageMono.cpp",
"egami/egami.cpp",
"egami/debug.cpp",
"egami/wrapperBMP.cpp",
"egami/wrapperEDF.cpp"
],
"header": [
"egami/Image.hpp",
"egami/ImageMono.hpp",
"egami/egami.hpp"
],
"path":[
"."
],
"compilation-version": {
"language": "c++",
"version": 2017
},
"flag": [
{
"language": "c++",
"value": [
"-DPROJECT_NAME=\"{{{project.name}}}\"",
"-DAPPL_VERSION=\"{{{project.version}}}\""
]
}
],
"dependency": [
"etk",
"edtaa3",
{
"name": "png",
"optional": true,
"export": true,
"flag": {
"language": "c++",
"value": "-DEGAMI_BUILD_PNG"
},
"source": "egami/wrapperPNG.cpp"
},{
"name": "esvg",
"optional": true,
"export": true,
"flag": {
"language": "c++",
"value": "-DEGAMI_BUILD_ESVG"
},
"source": "egami/wrapperSVG.cpp"
},{
"name": "jpeg",
"optional": true,
"export": true,
"flag": {
"language": "c++",
"value": "-DEGAMI_BUILD_JPEG"
},
"source": "egami/wrapperJPG.cpp"
},{
"name": "openjpeg",
"optional": true,
"export": true,
"flag": {
"language": "c++",
"value": "-DEGAMI_BUILD_JPEG2000"
},
"source": "egami/wrapperJPG2000.cpp"
},{
"name": "tiff",
"optional": true,
"export": true,
"flag": {
"language": "c++",
"value": "-DEGAMI_BUILD_TIFF"
},
"source": "egami/wrapperTIFF.cpp"
}
]
}

View File

@ -1,45 +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 "Test software for egami"
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_depend([
'egami',
'test-debug'
])
my_module.add_src_file([
'sample/main.cpp',
'sample/read.cpp',
'sample/write.cpp'
])
my_module.copy_path('data/*')
return True

View File

@ -1,45 +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 "Test software for egami"
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_depend([
'egami',
'etest',
'test-debug',
'algue',
])
my_module.add_src_file([
'test/main.cpp'
])
my_module.copy_path('data/*')
return True

View File

@ -1,88 +0,0 @@
#!/usr/bin/python
import realog.debug as debug
import lutin.tools as tools
def get_type():
return "LIBRARY"
def get_desc():
return "image generator from multiple image type"
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([
'egami/Image.cpp',
'egami/ImageMono.cpp',
'egami/egami.cpp',
'egami/debug.cpp',
'egami/wrapperBMP.cpp',
'egami/wrapperEDF.cpp'
])
my_module.add_header_file([
'egami/Image.hpp',
'egami/ImageMono.hpp',
'egami/egami.hpp',
])
my_module.add_depend([
'etk',
'edtaa3'
])
my_module.add_flag('c++', [
'-Wno-write-strings',
'-Wall'
])
my_module.add_optionnal_depend(
'png',
["c++", "-DEGAMI_BUILD_PNG"],
src_file=[
'egami/wrapperPNG.cpp',
]
)
my_module.add_optionnal_depend(
'esvg',
["c++", "-DEGAMI_BUILD_ESVG"],
src_file=[
'egami/wrapperSVG.cpp',
]
)
my_module.add_optionnal_depend(
'jpeg',
["c++", "-DEGAMI_BUILD_JPEG"],
src_file=[
'egami/wrapperJPG.cpp',
]
)
my_module.add_optionnal_depend(
'openjpeg',
["c++", "-DEGAMI_BUILD_JPEG2000"],
src_file=[
'egami/wrapperJPG2000.cpp',
]
)
my_module.add_optionnal_depend(
'tiff',
["c++", "-DEGAMI_BUILD_TIFF"],
src_file=[
'egami/wrapperTIFF.cpp',
]
)
my_module.add_path(".")
return True

View File

@ -0,0 +1,20 @@
{
"type":"BINARY",
"sub-type":"TOOL",
"group-id":"com.atria-soft",
"description":"Egami simple image cutter (bash tools)",
"license":"MPL-2",
"license-file":"file://../../LICENCE.txt",
"maintainer":"file://../../authors.txt",
"author":"file://../../authors.txt",
"version":"file://../../version.txt",
"code-quality":"MEDIUM",
"source": [
"appl/debug.cpp",
"appl/main.cpp"
],
"dependency": [
"egami"
]
}

View File

@ -1,46 +0,0 @@
#!/usr/bin/python
import realog.debug as debug
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_sub_type():
return "TOOL"
def get_desc():
return "egami simple image cutter (bash tools)"
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):
# add the file to compile:
my_module.add_src_file([
'appl/debug.cpp',
'appl/main.cpp',
])
my_module.add_depend([
'egami',
])
#my_module.copy_file('data/icon.png','icon.png')
my_module.add_path(".")
return True

View File

@ -0,0 +1,24 @@
{
"type":"BINARY",
"sub-type":"TOOL",
"group-id":"com.atria-soft",
"description":"Egami simple image viewer (visual)",
"license":"MPL-2",
"license-file":"file://../../LICENCE.txt",
"maintainer":"file://../../authors.txt",
"author":"file://../../authors.txt",
"version":"file://../../version.txt",
"code-quality":"MEDIUM",
"source": [
"appl/debug.cpp",
"appl/init.cpp",
"appl/MainWindows.cpp"
],
"dependency": [
"ewol"
],
"path":[
"."
]
}

View File

@ -1,61 +0,0 @@
#!/usr/bin/python
import realog.debug as debug
import lutin.tools as tools
import os
def get_type():
return "BINARY"
def get_sub_type():
return "TOOL"
def get_desc():
return "egami simple image viewer (visual)"
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):
# add the file to compile:
my_module.add_src_file([
'appl/debug.cpp',
'appl/init.cpp',
'appl/MainWindows.cpp',
])
my_module.add_depend(['ewol'])
my_module.copy_file('data/icon.png','icon.png')
my_module.add_path(".")
"""
# set the package properties :
my_module.pkg_set("VERSION", versionID)
my_module.pkg_set("COMPAGNY_TYPE", "org")
my_module.pkg_set("COMPAGNY_NAME", "Edouard DUPIN")
my_module.pkg_set("MAINTAINER", ["Mr DUPIN Edouard <yui.heero@gmail.com>"])
my_module.pkg_set("ICON", tools.get_current_path(__file__) + "/../data/icon.png")
my_module.pkg_set("SECTION", ["Development"])
my_module.pkg_set("PRIORITY", "optional")
my_module.pkg_set("DESCRIPTION", "ewol test software")
my_module.pkg_set("NAME", "test software")
my_module.pkg_add("RIGHT", "SET_ORIENTATION")
my_module.pkg_add("RIGHT", "VIBRATE")
"""
return True