egami/lutin_egami.py

89 lines
1.6 KiB
Python
Raw Normal View History

#!/usr/bin/python
import lutin.debug as debug
2015-05-08 22:36:40 +02:00
import lutin.tools as tools
2015-10-14 21:21:03 +02:00
def get_type():
return "LIBRARY"
2013-12-23 22:38:46 +01:00
def get_desc():
2015-10-14 21:21:03 +02:00
return "image generator from multiple image type"
def get_licence():
return "MPL-2"
2015-10-14 21:21:03 +02:00
def get_compagny_type():
return "com"
2013-12-23 22:38:46 +01:00
2015-10-14 21:21:03 +02:00
def get_compagny_name():
return "atria-soft"
def get_maintainer():
2016-09-12 21:06:37 +02:00
return "authors.txt"
2015-10-14 21:21:03 +02:00
def get_version():
2016-09-12 21:06:37 +02:00
return "version.txt"
2015-10-14 21:21:03 +02:00
def configure(target, my_module):
2016-09-08 21:35:02 +02:00
my_module.add_extra_flags()
2015-09-24 21:44:04 +02:00
my_module.add_src_file([
'egami/Image.cpp',
'egami/ImageMono.cpp',
'egami/egami.cpp',
'egami/debug.cpp',
'egami/wrapperBMP.cpp',
'egami/wrapperEDF.cpp'
])
2015-09-24 21:44:04 +02:00
my_module.add_header_file([
'egami/Image.hpp',
'egami/ImageMono.hpp',
'egami/egami.hpp',
])
my_module.add_depend([
'etk',
'edtaa3'
])
2016-09-08 21:35:02 +02:00
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