boost-lutin/lutin_boost-nowide.py

63 lines
1.1 KiB
Python
Raw Permalink Normal View History

2018-01-12 21:48:58 +01:00
#!/usr/bin/python
2021-10-05 19:07:33 +02:00
import realog.debug as debug
2018-01-12 21:48:58 +01:00
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
2021-10-05 19:07:33 +02:00
return "boost:boost-nowide library"
2018-01-12 21:48:58 +01:00
#def get_licence():
# return "UNKNOW"
def get_compagny_type():
return "org"
def get_compagny_name():
return "boost"
#def get_maintainer():
# return "UNKNOW"
def get_version():
return "version.txt"
def configure(target, my_module):
my_module.add_src_file([
2021-10-05 19:07:33 +02:00
'boost/libs/nowide/src/cstdio.cpp',
'boost/libs/nowide/src/cstdlib.cpp',
'boost/libs/nowide/src/filebuf.cpp',
'boost/libs/nowide/src/iostream.cpp',
'boost/libs/nowide/src/stat.cpp',
2018-01-12 21:48:58 +01:00
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
2021-10-05 19:07:33 +02:00
'-DBOOST_NOWIDE_DYN_LINK=1',
2018-01-12 21:48:58 +01:00
'-DNDEBUG',
])
my_module.add_flag('c', [
2021-10-05 19:07:33 +02:00
'-fvisibility-inlines-hidden',
2018-01-12 21:48:58 +01:00
'-finline-functions',
'-Wno-inline',
'-Wall',
2021-10-05 19:07:33 +02:00
'-fvisibility=hidden',
2018-01-12 21:48:58 +01:00
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True