[DEV] integrate GLD

This commit is contained in:
Edouard DUPIN 2021-12-15 22:38:29 +01:00
parent 84170961ff
commit b3b5d7145a
25 changed files with 144 additions and 187 deletions

5
.gitignore vendored
View File

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

27
GLD_exml-sample.json Normal file
View File

@ -0,0 +1,27 @@
{
"type":"BINARY",
"sub-type":"SAMPLE",
"group-id":"com.atria-soft",
"description":"e-xml sample",
"license":"MPL-2",
"license-file":"file://LICENSE",
"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": [
"exml",
"test-debug"
],
"copy":[
{
"path":"sample/read.xml"
}
]
}

32
GLD_exml-test.json Normal file
View File

@ -0,0 +1,32 @@
{
"type":"BINARY",
"sub-type":"TEST",
"group-id":"com.atria-soft",
"description":"e-xml test software",
"license":"MPL-2",
"license-file":"file://LICENSE",
"maintainer":"file://authors.txt",
"author":"file://authors.txt",
"version":"file://version.txt",
"code-quality":"MEDIUM",
"source": [
"test/main.cpp",
"test/exmlTestAll.cpp",
"test/exmlTestComment.cpp",
"test/exmlTestElement.cpp",
"test/exmlTestAttribute.cpp",
"test/exmlTestCommon.cpp",
"test/exmlTestDeclaration.cpp",
"test/exmlTestDeclarationXML.cpp",
"test/exmlTestParseComment.cpp",
"test/exmlTestParseElement.cpp",
"test/exmlTestParseAttribute.cpp",
"test/exmlTestParseDeclaration.cpp"
],
"dependency": [
"exml",
"etest",
"test-debug"
]
}

60
GLD_exml.json Normal file
View File

@ -0,0 +1,60 @@
{
"type":"LIBRARY",
"group-id":"com.atria-soft",
"description":"Algorithm generic",
"license":"MPL-2",
"license-file":"file://LICENSE",
"maintainer":"file://authors.txt",
"author":"file://authors.txt",
"version":"file://version.txt",
"code-quality":"MEDIUM",
"source": [
"exml/debug.cpp",
"exml/FilePos.cpp",
"exml/nodeType.cpp",
"exml/Attribute.cpp",
"exml/AttributeList.cpp",
"exml/Comment.cpp",
"exml/Declaration.cpp",
"exml/Document.cpp",
"exml/Element.cpp",
"exml/Node.cpp",
"exml/Text.cpp",
"exml/internal/Attribute.cpp",
"exml/internal/AttributeList.cpp",
"exml/internal/Comment.cpp",
"exml/internal/Declaration.cpp",
"exml/internal/Document.cpp",
"exml/internal/Element.cpp",
"exml/internal/Node.cpp",
"exml/internal/Text.cpp"
],
"header": [
"exml/FilePos.hpp",
"exml/nodeType.hpp",
"exml/exml.hpp",
"exml/iterator.hpp",
"exml/Attribute.hpp",
"exml/AttributeList.hpp",
"exml/Comment.hpp",
"exml/Declaration.hpp",
"exml/Document.hpp",
"exml/Element.hpp",
"exml/Node.hpp",
"exml/Text.hpp",
"exml/internal/Attribute.hpp",
"exml/internal/AttributeList.hpp",
"exml/internal/Comment.hpp",
"exml/internal/Declaration.hpp",
"exml/internal/Document.hpp",
"exml/internal/Element.hpp",
"exml/internal/Node.hpp",
"exml/internal/Text.hpp"
],
"dependency": [
"elog",
"etk",
"ememory"
]
}

View File

@ -5,7 +5,7 @@
*/
#include <exml/Attribute.hpp>
#include <exml/debug.hpp>
#include "debug.hpp"
#include <exml/internal/Attribute.hpp>
exml::Attribute::Attribute(ememory::SharedPtr<exml::internal::Node> _internalNode) :

View File

@ -4,7 +4,7 @@
* @license MPL v2.0 (see license file)
*/
#include <exml/debug.hpp>
#include "debug.hpp"
#include <exml/AttributeList.hpp>
#include <exml/internal/AttributeList.hpp>
@ -100,7 +100,7 @@ void exml::AttributeListData::set(const etk::String& _name, const etk::String& _
static_cast<exml::internal::AttributeList*>(m_data->m_data.get())->setAttribute(_name, _value);
}
#include <exml/details/iterator.hxx>
#include "details/iterator.hxx"
template class exml::iterator<exml::AttributeListData, exml::Attribute>;

View File

@ -5,7 +5,7 @@
*/
#include <exml/Comment.hpp>
#include <exml/debug.hpp>
#include "debug.hpp"
#include <exml/internal/Comment.hpp>
exml::Comment::Comment(ememory::SharedPtr<exml::internal::Node> _internalNode) :

View File

@ -5,7 +5,7 @@
*/
#include <exml/Declaration.hpp>
#include <exml/debug.hpp>
#include "debug.hpp"
#include <exml/internal/Declaration.hpp>
exml::Declaration::Declaration(ememory::SharedPtr<exml::internal::Node> _internalNode) :

View File

@ -5,7 +5,7 @@
*/
#include <exml/Document.hpp>
#include <exml/debug.hpp>
#include "debug.hpp"
#include <exml/internal/Document.hpp>
#include <etk/path/fileSystem.hpp>
#include <etk/uri/uri.hpp>

View File

@ -5,7 +5,7 @@
*/
#include <exml/Element.hpp>
#include <exml/debug.hpp>
#include "debug.hpp"
#include <exml/internal/Element.hpp>
@ -141,7 +141,7 @@ void exml::Element::clear() {
}
#include <exml/details/iterator.hxx>
#include "details/iterator.hxx"
template class exml::iterator<exml::ElementData, exml::Node>;

View File

@ -6,7 +6,7 @@
#include <exml/Node.hpp>
#include <exml/internal/Node.hpp>
#include <exml/debug.hpp>
#include "debug.hpp"
#include <exml/Attribute.hpp>
#include <exml/Comment.hpp>
#include <exml/Declaration.hpp>

View File

@ -6,7 +6,7 @@
#include <exml/Text.hpp>
#include <exml/internal/Text.hpp>
#include <exml/debug.hpp>
#include "debug.hpp"
exml::Text::Text(ememory::SharedPtr<exml::internal::Node> _internalNode) :
exml::Node(_internalNode) {

View File

@ -4,7 +4,7 @@
* @license MPL v2.0 (see license file)
*/
#include <exml/debug.hpp>
#include "debug.hpp"
int32_t exml::getLogId() {
static int32_t g_val = elog::registerInstance("exml");

View File

@ -5,7 +5,7 @@
*/
#include <exml/internal/Attribute.hpp>
#include <exml/debug.hpp>
#include "../debug.hpp"
#include <exml/internal/Document.hpp>
ememory::SharedPtr<exml::internal::Attribute> exml::internal::Attribute::create(const etk::String& _name, const etk::String& _value) {

View File

@ -5,7 +5,7 @@
*/
#include <exml/internal/AttributeList.hpp>
#include <exml/debug.hpp>
#include "../debug.hpp"
ememory::SharedPtr<exml::internal::Attribute> exml::internal::AttributeList::getAttr(int32_t _id) {
if ( _id < 0

View File

@ -5,7 +5,7 @@
*/
#include <exml/internal/Comment.hpp>
#include <exml/debug.hpp>
#include "../debug.hpp"
#include <exml/internal/Document.hpp>
static bool isWhiteChar(char32_t _val) {

View File

@ -5,7 +5,7 @@
*/
#include <exml/internal/Declaration.hpp>
#include <exml/debug.hpp>
#include "../debug.hpp"
#include <exml/internal/Document.hpp>
/* basic declaration have 3 attributes:

View File

@ -5,7 +5,7 @@
*/
#include <exml/internal/Document.hpp>
#include <exml/debug.hpp>
#include "../debug.hpp"
#include <etk/uri/provider/provider.hpp>
ememory::SharedPtr<exml::internal::Document> exml::internal::Document::create() {

View File

@ -5,7 +5,7 @@
*/
#include <exml/internal/Element.hpp>
#include <exml/debug.hpp>
#include "../debug.hpp"
#include <exml/internal/Text.hpp>
#include <exml/internal/Comment.hpp>
#include <exml/internal/Attribute.hpp>

View File

@ -11,7 +11,7 @@
#include <exml/internal/Declaration.hpp>
#include <exml/internal/Element.hpp>
#include <exml/internal/Text.hpp>
#include <exml/debug.hpp>
#include "../debug.hpp"
static bool isWhiteChar(char32_t _val) {
if( _val == ' '

View File

@ -5,7 +5,7 @@
*/
#include <exml/internal/Text.hpp>
#include <exml/debug.hpp>
#include "../debug.hpp"
#include <exml/internal/Document.hpp>
// transform the Text with :

View File

@ -5,7 +5,7 @@
*/
#include <exml/nodeType.hpp>
#include <exml/debug.hpp>
#include "debug.hpp"

View File

@ -1,38 +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-xml sample"
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/main.cpp',
'sample/read.cpp',
'sample/write.cpp'
])
my_module.add_depend([
'exml',
'test-debug'
])
my_module.copy_path('sample/read.xml')
return True

View File

@ -1,51 +0,0 @@
#!/usr/bin/python
import realog.debug as debug
import lutin.tools as tools
def get_type():
return "BINARY"
def get_name():
return "exml_tester"
def get_sub_type():
return "TEST"
def get_desc():
return "e-xml 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/exmlTestAll.cpp',
'test/exmlTestComment.cpp',
'test/exmlTestElement.cpp',
'test/exmlTestAttribute.cpp',
'test/exmlTestCommon.cpp',
'test/exmlTestDeclaration.cpp',
'test/exmlTestDeclarationXML.cpp',
'test/exmlTestParseComment.cpp',
'test/exmlTestParseElement.cpp',
'test/exmlTestParseAttribute.cpp',
'test/exmlTestParseDeclaration.cpp'
])
my_module.add_depend([
'exml',
'etest',
'test-debug'
])
return True

View File

@ -1,78 +0,0 @@
#!/usr/bin/python
import realog.debug as debug
import lutin.tools as tools
def get_type():
return "LIBRARY"
def get_desc():
return "XML 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_depend(['elog', 'etk', 'ememory'])
my_module.add_extra_flags()
my_module.add_src_file([
'exml/debug.cpp',
'exml/FilePos.cpp',
'exml/nodeType.cpp',
'exml/Attribute.cpp',
'exml/AttributeList.cpp',
'exml/Comment.cpp',
'exml/Declaration.cpp',
'exml/Document.cpp',
'exml/Element.cpp',
'exml/Node.cpp',
'exml/Text.cpp',
])
my_module.add_src_file([
'exml/internal/Attribute.cpp',
'exml/internal/AttributeList.cpp',
'exml/internal/Comment.cpp',
'exml/internal/Declaration.cpp',
'exml/internal/Document.cpp',
'exml/internal/Element.cpp',
'exml/internal/Node.cpp',
'exml/internal/Text.cpp'
])
my_module.add_header_file([
'exml/FilePos.hpp',
'exml/nodeType.hpp',
'exml/exml.hpp',
'exml/iterator.hpp',
'exml/Attribute.hpp',
'exml/AttributeList.hpp',
'exml/Comment.hpp',
'exml/Declaration.hpp',
'exml/Document.hpp',
'exml/Element.hpp',
'exml/Node.hpp',
'exml/Text.hpp',
'exml/internal/Attribute.hpp',
'exml/internal/AttributeList.hpp',
'exml/internal/Comment.hpp',
'exml/internal/Declaration.hpp',
'exml/internal/Document.hpp',
'exml/internal/Element.hpp',
'exml/internal/Node.hpp',
'exml/internal/Text.hpp'
])
my_module.add_path(".")
return True