[DEV] uptate new lutin declaration model
This commit is contained in:
parent
2865b33029
commit
c1cdf07c7e
5
.gitignore
vendored
5
.gitignore
vendored
@ -1 +1,6 @@
|
||||
__pycache__
|
||||
.bck
|
||||
out
|
||||
target
|
||||
build
|
||||
*.pyc
|
||||
|
52
GLD_ethread-tools.json
Normal file
52
GLD_ethread-tools.json
Normal file
@ -0,0 +1,52 @@
|
||||
{
|
||||
"type":"LIBRARY",
|
||||
"group-id":"com.atria-soft",
|
||||
"description":"Ewol thread tools",
|
||||
"license":"MPL-2",
|
||||
"license-file":"file://LICENCE.txt",
|
||||
"maintainer":"file://authors.txt",
|
||||
"author":"file://authors.txt",
|
||||
"version":"file://version.txt",
|
||||
|
||||
"source": [
|
||||
"ethread/tools.cpp"
|
||||
],
|
||||
"header": [
|
||||
"ethread/tools.hpp",
|
||||
"ethread/Thread.hpp",
|
||||
"ethread/Mutex.hpp",
|
||||
"ethread/MutexRecursive.hpp",
|
||||
"ethread/Semaphore.hpp"
|
||||
],
|
||||
"path":[
|
||||
"."
|
||||
],
|
||||
"compilation-version": {
|
||||
"language": "c++",
|
||||
"version": 2011
|
||||
},
|
||||
"dependency": [
|
||||
"etk-core"
|
||||
],
|
||||
"target":{
|
||||
"Windows":{
|
||||
"source": [
|
||||
"ethread/Mutex.Windows.cpp",
|
||||
"ethread/MutexRecursive.Windows.cpp",
|
||||
"ethread/Thread.Windows.cpp",
|
||||
"ethread/Semaphore.Windows.cpp"
|
||||
]
|
||||
},
|
||||
"!Windows":{
|
||||
"source": [
|
||||
"ethread/Mutex.pthread.cpp",
|
||||
"ethread/MutexRecursive.pthread.cpp",
|
||||
"ethread/Thread.pthread.cpp",
|
||||
"ethread/Semaphore.pthread.cpp"
|
||||
],
|
||||
"dependency": [
|
||||
"pthread"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
40
GLD_ethread.json
Normal file
40
GLD_ethread.json
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
"type":"LIBRARY",
|
||||
"group-id":"com.atria-soft",
|
||||
"description":"Ewol thread",
|
||||
"license":"MPL-2",
|
||||
"license-file":"file://LICENCE.txt",
|
||||
"maintainer":"file://authors.txt",
|
||||
"author":"file://authors.txt",
|
||||
"version":"file://version.txt",
|
||||
|
||||
"source": [
|
||||
"ethread/debug.cpp",
|
||||
"ethread/Future.cpp",
|
||||
"ethread/Promise.cpp",
|
||||
"ethread/Pool.cpp",
|
||||
"ethread/PoolAction.cpp",
|
||||
"ethread/PoolExecutor.cpp"
|
||||
],
|
||||
"header": [
|
||||
"ethread/Future.hpp",
|
||||
"ethread/Promise.hpp",
|
||||
"ethread/Pool.hpp",
|
||||
"ethread/PoolAction.hpp",
|
||||
"ethread/PoolExecutor.hpp"
|
||||
],
|
||||
"path":[
|
||||
"."
|
||||
],
|
||||
"compilation-version": {
|
||||
"language": "c++",
|
||||
"version": 2011
|
||||
},
|
||||
"dependency": [
|
||||
"elog",
|
||||
"etk",
|
||||
"ethread-tools",
|
||||
"echrono",
|
||||
"ememory"
|
||||
]
|
||||
}
|
@ -1,74 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
import realog.debug as debug
|
||||
import lutin.tools as tools
|
||||
|
||||
|
||||
def get_type():
|
||||
return "LIBRARY"
|
||||
|
||||
def get_desc():
|
||||
return "Ewol thread tools"
|
||||
|
||||
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()
|
||||
# add the file to compile:
|
||||
my_module.add_src_file([
|
||||
'ethread/tools.cpp',
|
||||
])
|
||||
|
||||
my_module.add_header_file([
|
||||
'ethread/tools.hpp',
|
||||
'ethread/Thread.hpp',
|
||||
'ethread/Mutex.hpp',
|
||||
'ethread/MutexRecursive.hpp',
|
||||
'ethread/Semaphore.hpp',
|
||||
])
|
||||
|
||||
if "Windows" in target.get_type():
|
||||
my_module.add_src_file([
|
||||
'ethread/Mutex.Windows.cpp',
|
||||
'ethread/MutexRecursive.Windows.cpp',
|
||||
'ethread/Thread.Windows.cpp',
|
||||
'ethread/Semaphore.Windows.cpp',
|
||||
])
|
||||
else:
|
||||
my_module.add_src_file([
|
||||
'ethread/Mutex.pthread.cpp',
|
||||
'ethread/MutexRecursive.pthread.cpp',
|
||||
'ethread/Thread.pthread.cpp',
|
||||
'ethread/Semaphore.pthread.cpp',
|
||||
])
|
||||
my_module.add_depend([
|
||||
'pthread',
|
||||
])
|
||||
# build in C++ mode
|
||||
my_module.compile_version("c++", 2011)
|
||||
# add dependency of the generic C++ library:
|
||||
my_module.add_depend([
|
||||
'etk-core',
|
||||
])
|
||||
#pthread is not availlable on Windows
|
||||
if "Linux" in target.get_type() \
|
||||
or "Android" in target.get_type():
|
||||
my_module.add_depend([
|
||||
'pthread'
|
||||
])
|
||||
|
||||
return True
|
||||
|
||||
|
@ -1,59 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
import realog.debug as debug
|
||||
import lutin.tools as tools
|
||||
|
||||
|
||||
def get_type():
|
||||
return "LIBRARY"
|
||||
|
||||
def get_desc():
|
||||
return "Ewol thread"
|
||||
|
||||
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()
|
||||
# add the file to compile:
|
||||
my_module.add_src_file([
|
||||
'ethread/debug.cpp',
|
||||
'ethread/Future.cpp',
|
||||
'ethread/Promise.cpp',
|
||||
'ethread/Pool.cpp',
|
||||
'ethread/PoolAction.cpp',
|
||||
'ethread/PoolExecutor.cpp',
|
||||
])
|
||||
|
||||
my_module.add_header_file([
|
||||
'ethread/Future.hpp',
|
||||
'ethread/Promise.hpp',
|
||||
'ethread/Pool.hpp',
|
||||
'ethread/PoolAction.hpp',
|
||||
'ethread/PoolExecutor.hpp',
|
||||
])
|
||||
|
||||
# build in C++ mode
|
||||
my_module.compile_version("c++", 2011)
|
||||
# add dependency of the generic C++ library:
|
||||
my_module.add_depend([
|
||||
'elog',
|
||||
'etk',
|
||||
'ethread-tools',
|
||||
'echrono',
|
||||
'ememory'
|
||||
])
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user