[DEV] update new lutin interface
This commit is contained in:
parent
63ecc46b10
commit
ecf62a0b4b
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,8 @@
|
|||||||
|
__pycache__
|
||||||
|
.bck
|
||||||
|
out
|
||||||
|
target
|
||||||
|
build
|
||||||
# Compiled Object files
|
# Compiled Object files
|
||||||
*.slo
|
*.slo
|
||||||
*.lo
|
*.lo
|
||||||
|
20
GLD_dollar-bench-corpus.json
Normal file
20
GLD_dollar-bench-corpus.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type":"BINARY",
|
||||||
|
"sub-type":"TOOL",
|
||||||
|
"group-id":"com.atria-soft",
|
||||||
|
"description":"Bench a corpus with a set of reference files",
|
||||||
|
"license":"MPL-2",
|
||||||
|
"license-file":"file://LICENCE.txt",
|
||||||
|
"maintainer":"file://authors.txt",
|
||||||
|
"author":"file://authors.txt",
|
||||||
|
"version":"file://version.txt",
|
||||||
|
"extra-flag":"MEDIUM",
|
||||||
|
|
||||||
|
"source": [
|
||||||
|
"tool/bench-corpus/main.cpp"
|
||||||
|
],
|
||||||
|
"dependency": [
|
||||||
|
"dollar",
|
||||||
|
"test-debug"
|
||||||
|
]
|
||||||
|
}
|
20
GLD_dollar-converter.json
Normal file
20
GLD_dollar-converter.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type":"BINARY",
|
||||||
|
"sub-type":"TOOL",
|
||||||
|
"group-id":"com.atria-soft",
|
||||||
|
"description":"Dollar converter svg to json and json to SVG",
|
||||||
|
"license":"MPL-2",
|
||||||
|
"license-file":"file://LICENCE.txt",
|
||||||
|
"maintainer":"file://authors.txt",
|
||||||
|
"author":"file://authors.txt",
|
||||||
|
"version":"file://version.txt",
|
||||||
|
"extra-flag":"MEDIUM",
|
||||||
|
|
||||||
|
"source": [
|
||||||
|
"tool/converter/main.cpp"
|
||||||
|
],
|
||||||
|
"dependency": [
|
||||||
|
"dollar",
|
||||||
|
"test-debug"
|
||||||
|
]
|
||||||
|
}
|
21
GLD_dollar-data.json
Normal file
21
GLD_dollar-data.json
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"type":"LIBRARY",
|
||||||
|
"group-id":"com.atria-soft",
|
||||||
|
"description":"dallar test-unit common data",
|
||||||
|
"license":"MPL-2",
|
||||||
|
"license-file":"file://LICENCE.txt",
|
||||||
|
"maintainer":"file://authors.txt",
|
||||||
|
"author":"file://authors.txt",
|
||||||
|
"version":"file://version.txt",
|
||||||
|
"extra-flag":"MEDIUM",
|
||||||
|
|
||||||
|
"copy": [
|
||||||
|
{
|
||||||
|
"path":"data/text/*",
|
||||||
|
"to":"text"
|
||||||
|
}, {
|
||||||
|
"path":"data/figure/*",
|
||||||
|
"to":"figure"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
20
GLD_dollar-generate-form.json
Normal file
20
GLD_dollar-generate-form.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"type":"BINARY",
|
||||||
|
"sub-type":"TOOL",
|
||||||
|
"group-id":"com.atria-soft",
|
||||||
|
"description":"Dollar generator of all needed form to have the best text recognition",
|
||||||
|
"license":"MPL-2",
|
||||||
|
"license-file":"file://LICENCE.txt",
|
||||||
|
"maintainer":"file://authors.txt",
|
||||||
|
"author":"file://authors.txt",
|
||||||
|
"version":"file://version.txt",
|
||||||
|
"extra-flag":"MEDIUM",
|
||||||
|
|
||||||
|
"source": [
|
||||||
|
"tool/generate-form/main.cpp"
|
||||||
|
],
|
||||||
|
"dependency": [
|
||||||
|
"dollar",
|
||||||
|
"test-debug"
|
||||||
|
]
|
||||||
|
}
|
28
GLD_dollar-test.json
Normal file
28
GLD_dollar-test.json
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"type":"BINARY",
|
||||||
|
"sub-type":"TEST",
|
||||||
|
"group-id":"com.atria-soft",
|
||||||
|
"description":"dollar test-unit",
|
||||||
|
"license":"MPL-2",
|
||||||
|
"license-file":"file://LICENCE.txt",
|
||||||
|
"maintainer":"file://authors.txt",
|
||||||
|
"author":"file://authors.txt",
|
||||||
|
"version":"file://version.txt",
|
||||||
|
"extra-flag":"MEDIUM",
|
||||||
|
|
||||||
|
"source": [
|
||||||
|
"test/main.cpp"
|
||||||
|
],
|
||||||
|
"dependency": [
|
||||||
|
"dollar",
|
||||||
|
"dollar-data",
|
||||||
|
"test-debug",
|
||||||
|
"etest"
|
||||||
|
],
|
||||||
|
"copy": [
|
||||||
|
{
|
||||||
|
"path":"data/test/*",
|
||||||
|
"to":"test"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
54
GLD_dollar.json
Normal file
54
GLD_dollar.json
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
{
|
||||||
|
"type":"LIBRARY",
|
||||||
|
"group-id":"com.atria-soft",
|
||||||
|
"description":"$N gesture recognition",
|
||||||
|
"license":"MPL-2",
|
||||||
|
"license-file":"file://LICENCE.txt",
|
||||||
|
"maintainer":"file://authors.txt",
|
||||||
|
"author":"file://authors.txt",
|
||||||
|
"version":"file://version.txt",
|
||||||
|
"extra-flag":"MEDIUM",
|
||||||
|
|
||||||
|
"source": [
|
||||||
|
"dollar/debug.cpp",
|
||||||
|
"dollar/Engine.cpp",
|
||||||
|
"dollar/EngineN.cpp",
|
||||||
|
"dollar/EngineP.cpp",
|
||||||
|
"dollar/EnginePPlus.cpp",
|
||||||
|
"dollar/Gesture.cpp",
|
||||||
|
"dollar/GestureN.cpp",
|
||||||
|
"dollar/GestureP.cpp",
|
||||||
|
"dollar/GesturePPlus.cpp",
|
||||||
|
"dollar/Results.cpp",
|
||||||
|
"dollar/tools.cpp",
|
||||||
|
"dollar/Rectangle.cpp"
|
||||||
|
],
|
||||||
|
"header": [
|
||||||
|
"dollar/debug.hpp",
|
||||||
|
"dollar/Engine.hpp",
|
||||||
|
"dollar/EngineN.hpp",
|
||||||
|
"dollar/EngineP.hpp",
|
||||||
|
"dollar/EnginePPlus.hpp",
|
||||||
|
"dollar/Gesture.hpp",
|
||||||
|
"dollar/GestureN.hpp",
|
||||||
|
"dollar/GestureP.hpp",
|
||||||
|
"dollar/GesturePPlus.hpp",
|
||||||
|
"dollar/Results.hpp",
|
||||||
|
"dollar/tools.hpp",
|
||||||
|
"dollar/Rectangle.hpp"
|
||||||
|
],
|
||||||
|
"compilation-version": {
|
||||||
|
"language": "c++",
|
||||||
|
"version": 2017
|
||||||
|
},
|
||||||
|
"dependency": [
|
||||||
|
"cxx",
|
||||||
|
"elog",
|
||||||
|
"etk",
|
||||||
|
"ejson",
|
||||||
|
"esvg",
|
||||||
|
"ememory"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -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 "TOOL"
|
|
||||||
|
|
||||||
def get_desc():
|
|
||||||
return "Bench a corpus with a set of reference files"
|
|
||||||
|
|
||||||
def get_licence():
|
|
||||||
return "APACHE-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([
|
|
||||||
'tool/bench-corpus/main.cpp'
|
|
||||||
])
|
|
||||||
my_module.add_depend([
|
|
||||||
'dollar',
|
|
||||||
'test-debug',
|
|
||||||
])
|
|
||||||
return True
|
|
||||||
|
|
@ -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 "TOOL"
|
|
||||||
|
|
||||||
def get_desc():
|
|
||||||
return "Dollar converter svg to json and json to SVG"
|
|
||||||
|
|
||||||
def get_licence():
|
|
||||||
return "APACHE-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([
|
|
||||||
'tool/converter/main.cpp'
|
|
||||||
])
|
|
||||||
my_module.add_depend([
|
|
||||||
'dollar',
|
|
||||||
'test-debug',
|
|
||||||
])
|
|
||||||
return True
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
|||||||
#!/usr/bin/python
|
|
||||||
import realog.debug as debug
|
|
||||||
import lutin.tools as tools
|
|
||||||
|
|
||||||
|
|
||||||
def get_type():
|
|
||||||
return "DATA"
|
|
||||||
|
|
||||||
def get_desc():
|
|
||||||
return "dallar test-unit"
|
|
||||||
|
|
||||||
def get_licence():
|
|
||||||
return "APACHE-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.copy_path('data/text/*.json', 'text')
|
|
||||||
my_module.copy_path('data/figure/*.json', 'figure')
|
|
||||||
return True
|
|
||||||
|
|
@ -1,39 +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 "dollar test-unit"
|
|
||||||
|
|
||||||
def get_licence():
|
|
||||||
return "APACHE-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'
|
|
||||||
])
|
|
||||||
my_module.add_depend([
|
|
||||||
'dollar',
|
|
||||||
'dollar-data',
|
|
||||||
'test-debug',
|
|
||||||
'etest',
|
|
||||||
])
|
|
||||||
my_module.copy_path('data/test/*.json', 'test')
|
|
||||||
return True
|
|
||||||
|
|
@ -1,63 +0,0 @@
|
|||||||
#!/usr/bin/python
|
|
||||||
import realog.debug as debug
|
|
||||||
import lutin.tools as tools
|
|
||||||
|
|
||||||
|
|
||||||
def get_type():
|
|
||||||
return "LIBRARY"
|
|
||||||
|
|
||||||
def get_desc():
|
|
||||||
return "$N gesture recognition"
|
|
||||||
|
|
||||||
def get_licence():
|
|
||||||
return "BSD-3"
|
|
||||||
|
|
||||||
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()
|
|
||||||
# add the file to compile:
|
|
||||||
my_module.add_src_file([
|
|
||||||
'dollar/debug.cpp',
|
|
||||||
'dollar/Engine.cpp',
|
|
||||||
'dollar/EngineN.cpp',
|
|
||||||
'dollar/EngineP.cpp',
|
|
||||||
'dollar/EnginePPlus.cpp',
|
|
||||||
'dollar/Gesture.cpp',
|
|
||||||
'dollar/GestureN.cpp',
|
|
||||||
'dollar/GestureP.cpp',
|
|
||||||
'dollar/GesturePPlus.cpp',
|
|
||||||
'dollar/Results.cpp',
|
|
||||||
'dollar/tools.cpp',
|
|
||||||
'dollar/Rectangle.cpp'
|
|
||||||
])
|
|
||||||
|
|
||||||
my_module.add_header_file([
|
|
||||||
'dollar/*.hpp',
|
|
||||||
],
|
|
||||||
destination_path="dollar")
|
|
||||||
|
|
||||||
# build in C++ mode
|
|
||||||
my_module.compile_version("c++", 2011)
|
|
||||||
# add dependency of the generic C++ library:
|
|
||||||
my_module.add_depend([
|
|
||||||
'cxx',
|
|
||||||
'elog',
|
|
||||||
'etk',
|
|
||||||
'ejson',
|
|
||||||
'esvg',
|
|
||||||
'ememory',
|
|
||||||
])
|
|
||||||
return True
|
|
||||||
|
|
||||||
|
|
56
tool/recorder/GLD_dollar-recorder.json
Normal file
56
tool/recorder/GLD_dollar-recorder.json
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
{
|
||||||
|
"type":"BINARY",
|
||||||
|
"sub-type":"TOOL",
|
||||||
|
"group-id":"com.atria-soft",
|
||||||
|
"description":"LGDT tools: Handwriting recorder",
|
||||||
|
"license":"MPL-2",
|
||||||
|
"license-file":"file://../../LICENCE.txt",
|
||||||
|
"maintainer":"file://../../authors.txt",
|
||||||
|
"author":"file://../../authors.txt",
|
||||||
|
"version":[0,1,0],
|
||||||
|
"version-id":1,
|
||||||
|
"extra-flag":"MEDIUM",
|
||||||
|
|
||||||
|
"source": [
|
||||||
|
"appl/Main.cpp",
|
||||||
|
"appl/debug.cpp",
|
||||||
|
"appl/Windows.cpp",
|
||||||
|
"appl/widget/TextAreaRecognition.cpp"
|
||||||
|
],
|
||||||
|
"path":[
|
||||||
|
"."
|
||||||
|
],
|
||||||
|
"compilation-version": {
|
||||||
|
"language": "c++",
|
||||||
|
"version": 2017
|
||||||
|
},
|
||||||
|
"dependency": [
|
||||||
|
"ewol",
|
||||||
|
"ejson",
|
||||||
|
"esvg",
|
||||||
|
"dollar"
|
||||||
|
],
|
||||||
|
"flag": {
|
||||||
|
"language": "c++",
|
||||||
|
"value": [
|
||||||
|
"-DPROJECT_NAME=\"{{{project.name}}}\"",
|
||||||
|
"-DAPPL_VERSION=\"{{{project.version}}}\""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"copy": [
|
||||||
|
{
|
||||||
|
"path":"data/icon.*",
|
||||||
|
"to":""
|
||||||
|
}, {
|
||||||
|
"path":"data/freefont/*",
|
||||||
|
"to":"fonts"
|
||||||
|
}, {
|
||||||
|
"path":"data/reference/*",
|
||||||
|
"to":"reference"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"package":{
|
||||||
|
"RIGHT": "WRITE_EXTERNAL_STORAGE",
|
||||||
|
"ICON": "data/icon.png"
|
||||||
|
}
|
||||||
|
}
|
@ -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 "LGDT tools: Handwriting recorder"
|
|
||||||
|
|
||||||
def get_licence():
|
|
||||||
return "PROPRIETARY"
|
|
||||||
|
|
||||||
def get_compagny_type():
|
|
||||||
return "com"
|
|
||||||
|
|
||||||
def get_compagny_name():
|
|
||||||
return "Edouard DUPIN"
|
|
||||||
|
|
||||||
def get_maintainer():
|
|
||||||
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
|
||||||
|
|
||||||
def get_version():
|
|
||||||
return [0,1]
|
|
||||||
|
|
||||||
def configure(target, my_module):
|
|
||||||
my_module.add_src_file([
|
|
||||||
'appl/Main.cpp',
|
|
||||||
'appl/debug.cpp',
|
|
||||||
'appl/Windows.cpp',
|
|
||||||
'appl/widget/TextAreaRecognition.cpp',
|
|
||||||
])
|
|
||||||
my_module.add_depend([
|
|
||||||
'ewol',
|
|
||||||
'ejson',
|
|
||||||
'esvg',
|
|
||||||
'dollar',
|
|
||||||
#'dollar-data'
|
|
||||||
])
|
|
||||||
my_module.add_flag('c++', [
|
|
||||||
"-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"",
|
|
||||||
"-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
|
|
||||||
])
|
|
||||||
my_module.add_path(".")
|
|
||||||
my_module.set_pkg("VERSION_CODE", 1)
|
|
||||||
my_module.add_pkg("RIGHT", "WRITE_EXTERNAL_STORAGE")
|
|
||||||
|
|
||||||
my_module.copy_path('data/icon.*','')
|
|
||||||
my_module.copy_path("data/freefont/*","fonts/")
|
|
||||||
my_module.copy_path('data/reference/*', "reference")
|
|
||||||
|
|
||||||
my_module.set_pkg("ICON", "data/icon.png")
|
|
||||||
return True
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user