#!/usr/bin/python import realog.debug as debug import lutin.tools as tools import os def get_type(): return "LIBRARY" def get_desc(): return "boost:boost-filesystem library" #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([ 'boost/libs/filesystem/src/codecvt_error_category.cpp', 'boost/libs/filesystem/src/exception.cpp', 'boost/libs/filesystem/src/directory.cpp', 'boost/libs/filesystem/src/operations.cpp', 'boost/libs/filesystem/src/path.cpp', 'boost/libs/filesystem/src/path_traits.cpp', 'boost/libs/filesystem/src/portability.cpp', 'boost/libs/filesystem/src/unique_path.cpp', 'boost/libs/filesystem/src/utf8_codecvt_facet.cpp', 'boost/libs/filesystem/src/windows_file_codecvt.cpp', ]) my_module.add_flag('c++', [ '-DBOOST_ALL_NO_LIB=1', '-DBOOST_FILESYSTEM_DYN_LINK=1', '-DBOOST_FILESYSTEM_HAS_STATX', '-DBOOST_FILESYSTEM_HAS_STATX_SYSCALL', '-DBOOST_FILESYSTEM_HAS_STAT_ST_MTIM', '-DBOOST_FILESYSTEM_SOURCE', '-DNDEBUG', ]) my_module.add_flag('c', [ '-fvisibility-inlines-hidden', '-finline-functions', '-Wno-inline', '-Wall', '-fvisibility=hidden', ]) my_module.add_path([ 'boost/libs/filesystem/src', ], type='c++') my_module.compile_version('c++', 2011) my_module.add_depend([ 'z', 'm', 'cxx', 'boost-include', 'pthread', ]) return True