[DEV] uptate new lutin declaration model

This commit is contained in:
Edouard DUPIN 2021-10-25 07:54:12 +02:00
parent d31f18d679
commit 34d44d8fb6
7 changed files with 160 additions and 205 deletions

5
.gitignore vendored
View File

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

19
GLD_esvg-convert.json Normal file
View File

@ -0,0 +1,19 @@
{
"type":"BINARY",
"sub-type":"TOOL",
"group-id":"com.atria-soft",
"description":"eSVG converter in bitmap",
"license":"MPL-2",
"license-file":"file://LICENCE.txt",
"maintainer":"file://authors.txt",
"author":"file://authors.txt",
"version":"file://version.txt",
"source": [
"tools/converter.cpp"
],
"dependency": [
"esvg",
"test-debug"
]
}

35
GLD_esvg-test.json Normal file
View File

@ -0,0 +1,35 @@
{
"type":"BINARY",
"sub-type":"TEST",
"group-id":"com.atria-soft",
"description":"eSVG test-unit",
"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/testCircle.cpp",
"test/testEllipse.cpp",
"test/testGroup.cpp",
"test/testLine.cpp",
"test/testParsingFile.cpp",
"test/testPath.cpp",
"test/testPolygon.cpp",
"test/testPolyline.cpp",
"test/testRectangle.cpp",
"test/testJoin.cpp",
"test/testCap.cpp",
"test/testColor.cpp",
"test/testStyle.cpp",
"test/testGradientLinear.cpp",
"test/testGradientRadial.cpp"
],
"dependency": [
"esvg",
"etest",
"test-debug"
]
}

101
GLD_esvg.json Normal file
View File

@ -0,0 +1,101 @@
{
"type":"LIBRARY",
"group-id":"com.atria-soft",
"description":"SVG image parser and generator",
"license":"MPL-2",
"license-file":"file://LICENCE.txt",
"maintainer":"file://authors.txt",
"author":"file://authors.txt",
"version":"file://version.txt",
"source": [
"esvg/Base.cpp",
"esvg/Circle.cpp",
"esvg/debug.cpp",
"esvg/Ellipse.cpp",
"esvg/Group.cpp",
"esvg/Line.cpp",
"esvg/esvg.cpp",
"esvg/Path.cpp",
"esvg/Polygon.cpp",
"esvg/Polyline.cpp",
"esvg/Rectangle.cpp",
"esvg/Renderer.cpp",
"esvg/Text.cpp",
"esvg/cap.cpp",
"esvg/join.cpp",
"esvg/spreadMethod.cpp",
"esvg/gradientUnits.cpp",
"esvg/Dimension.cpp",
"esvg/render/Path.cpp",
"esvg/render/Element.cpp",
"esvg/render/ElementClose.cpp",
"esvg/render/ElementStop.cpp",
"esvg/render/ElementMoveTo.cpp",
"esvg/render/ElementLineTo.cpp",
"esvg/render/ElementLineToH.cpp",
"esvg/render/ElementLineToV.cpp",
"esvg/render/ElementCurveTo.cpp",
"esvg/render/ElementSmoothCurveTo.cpp",
"esvg/render/ElementBezierCurveTo.cpp",
"esvg/render/ElementBezierSmoothCurveTo.cpp",
"esvg/render/ElementElliptic.cpp",
"esvg/render/Point.cpp",
"esvg/render/PointList.cpp",
"esvg/render/Scanline.cpp",
"esvg/render/Segment.cpp",
"esvg/render/SegmentList.cpp",
"esvg/render/Weight.cpp",
"esvg/render/DynamicColor.cpp",
"esvg/LinearGradient.cpp",
"esvg/RadialGradient.cpp"
],
"header": [
"esvg/Base.hpp",
"esvg/Circle.hpp",
"esvg/Ellipse.hpp",
"esvg/Group.hpp",
"esvg/Line.hpp",
"esvg/esvg.hpp",
"esvg/Path.hpp",
"esvg/Polygon.hpp",
"esvg/Polyline.hpp",
"esvg/Rectangle.hpp",
"esvg/Renderer.hpp",
"esvg/Text.hpp",
"esvg/cap.hpp",
"esvg/join.hpp",
"esvg/spreadMethod.hpp",
"esvg/gradientUnits.hpp",
"esvg/Dimension.hpp",
"esvg/render/Element.hpp",
"esvg/render/ElementStop.hpp",
"esvg/render/ElementClose.hpp",
"esvg/render/ElementMoveTo.hpp",
"esvg/render/ElementLineTo.hpp",
"esvg/render/ElementLineToH.hpp",
"esvg/render/ElementLineToV.hpp",
"esvg/render/ElementCurveTo.hpp",
"esvg/render/ElementSmoothCurveTo.hpp",
"esvg/render/ElementBezierCurveTo.hpp",
"esvg/render/ElementBezierSmoothCurveTo.hpp",
"esvg/render/ElementElliptic.hpp",
"esvg/render/Path.hpp",
"esvg/render/Scanline.hpp",
"esvg/render/Point.hpp",
"esvg/render/PointList.hpp",
"esvg/render/Segment.hpp",
"esvg/render/SegmentList.hpp",
"esvg/render/Weight.hpp",
"esvg/render/DynamicColor.hpp",
"esvg/LinearGradient.hpp",
"esvg/RadialGradient.hpp"
],
"path":[
"."
],
"dependency": [
"etk",
"exml"
]
}

View File

@ -1,36 +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 "TOOLS"
def get_desc():
return "eSVG converter in bitmap"
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([
'tools/converter.cpp'
])
my_module.add_depend([
'esvg',
'test-debug'
])
return True

View File

@ -1,52 +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 "eSVG test-unit"
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/testCircle.cpp',
'test/testEllipse.cpp',
'test/testGroup.cpp',
'test/testLine.cpp',
'test/testParsingFile.cpp',
'test/testPath.cpp',
'test/testPolygon.cpp',
'test/testPolyline.cpp',
'test/testRectangle.cpp',
'test/testJoin.cpp',
'test/testCap.cpp',
'test/testColor.cpp',
'test/testStyle.cpp',
'test/testGradientLinear.cpp',
'test/testGradientRadial.cpp'
])
my_module.add_depend([
'esvg',
'etest',
'test-debug'
])
return True

View File

@ -1,117 +0,0 @@
#!/usr/bin/python
import realog.debug as debug
import lutin.tools as tools
def get_type():
return "LIBRARY"
def get_desc():
return "SVG image 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_extra_flags()
my_module.add_depend(['etk', 'exml'])
my_module.add_src_file([
'esvg/Base.cpp',
'esvg/Circle.cpp',
'esvg/debug.cpp',
'esvg/Ellipse.cpp',
'esvg/Group.cpp',
'esvg/Line.cpp',
'esvg/esvg.cpp',
'esvg/Path.cpp',
'esvg/Polygon.cpp',
'esvg/Polyline.cpp',
'esvg/Rectangle.cpp',
'esvg/Renderer.cpp',
'esvg/Text.cpp',
'esvg/cap.cpp',
'esvg/join.cpp',
'esvg/spreadMethod.cpp',
'esvg/gradientUnits.cpp',
'esvg/Dimension.cpp',
'esvg/render/Path.cpp',
'esvg/render/Element.cpp',
'esvg/render/ElementClose.cpp',
'esvg/render/ElementStop.cpp',
'esvg/render/ElementMoveTo.cpp',
'esvg/render/ElementLineTo.cpp',
'esvg/render/ElementLineToH.cpp',
'esvg/render/ElementLineToV.cpp',
'esvg/render/ElementCurveTo.cpp',
'esvg/render/ElementSmoothCurveTo.cpp',
'esvg/render/ElementBezierCurveTo.cpp',
'esvg/render/ElementBezierSmoothCurveTo.cpp',
'esvg/render/ElementElliptic.cpp',
'esvg/render/Point.cpp',
'esvg/render/PointList.cpp',
'esvg/render/Scanline.cpp',
'esvg/render/Segment.cpp',
'esvg/render/SegmentList.cpp',
'esvg/render/Weight.cpp',
'esvg/render/DynamicColor.cpp',
'esvg/LinearGradient.cpp',
'esvg/RadialGradient.cpp'
])
my_module.add_header_file([
'esvg/Base.hpp',
'esvg/Circle.hpp',
'esvg/Ellipse.hpp',
'esvg/Group.hpp',
'esvg/Line.hpp',
'esvg/esvg.hpp',
'esvg/Path.hpp',
'esvg/Polygon.hpp',
'esvg/Polyline.hpp',
'esvg/Rectangle.hpp',
'esvg/Renderer.hpp',
'esvg/Text.hpp',
'esvg/cap.hpp',
'esvg/join.hpp',
'esvg/spreadMethod.hpp',
'esvg/gradientUnits.hpp',
'esvg/Dimension.hpp',
'esvg/render/Element.hpp',
'esvg/render/ElementStop.hpp',
'esvg/render/ElementClose.hpp',
'esvg/render/ElementMoveTo.hpp',
'esvg/render/ElementLineTo.hpp',
'esvg/render/ElementLineToH.hpp',
'esvg/render/ElementLineToV.hpp',
'esvg/render/ElementCurveTo.hpp',
'esvg/render/ElementSmoothCurveTo.hpp',
'esvg/render/ElementBezierCurveTo.hpp',
'esvg/render/ElementBezierSmoothCurveTo.hpp',
'esvg/render/ElementElliptic.hpp',
'esvg/render/Path.hpp',
'esvg/render/Scanline.hpp',
'esvg/render/Point.hpp',
'esvg/render/PointList.hpp',
'esvg/render/Segment.hpp',
'esvg/render/SegmentList.hpp',
'esvg/render/Weight.hpp',
'esvg/render/DynamicColor.hpp',
'esvg/LinearGradient.hpp',
'esvg/RadialGradient.hpp'
])
my_module.add_path(".")
return True