[DEV] create basic version 1.66.0

This commit is contained in:
Edouard DUPIN 2018-01-12 21:48:58 +01:00
parent 9457559be2
commit 2d810eac3c
43 changed files with 3145 additions and 1 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "boost"]
path = boost
url = ../boost.git

View File

@ -1,2 +1,26 @@
# boost-lutin
boost-lutin
===================
boost lutin wrapper
update new release
download the new vertion:
```
http://www.boost.org/users/history/
```
unzip in the boost path
==> request boost to generate all list of files:
```
cd boost
./bootstrap.sh
./b2 -a -n -j1 > ../build.txt
# update vertion in the next script:
./parseBuildOutputToLutin.py build.txt boost
```

1
boost Submodule

@ -0,0 +1 @@
Subproject commit a97e9ae7d481e8dd4637062dfd49481dfd853735

57
lutin_boost-atomic.py Normal file
View File

@ -0,0 +1,57 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-atomic 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/atomic/src/lockpool.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_ATOMIC_DYN_LINK=1',
'-DBOOST_ATOMIC_SOURCE',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

64
lutin_boost-chrono.py Normal file
View File

@ -0,0 +1,64 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-chrono 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/chrono/src/chrono.cpp',
'boost/libs/chrono/src/thread_clock.cpp',
'boost/libs/chrono/src/process_cpu_clocks.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_DYN_LINK=1',
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DBOOST_SYSTEM_NO_DEPRECATED',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-pedantic',
'-Wextra',
'-Wno-long-long',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-system',
])
return True

72
lutin_boost-container.py Normal file
View File

@ -0,0 +1,72 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-container 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/container/src/alloc_lib.c',
'boost/libs/container/src/dlmalloc.cpp',
'boost/libs/container/src/global_resource.cpp',
'boost/libs/container/src/monotonic_buffer_resource.cpp',
'boost/libs/container/src/pool_resource.cpp',
'boost/libs/container/src/synchronized_pool_resource.cpp',
'boost/libs/container/src/unsynchronized_pool_resource.cpp',
])
my_module.add_flag('c', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_CONTAINER_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_CONTAINER_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'pthread',
])
return True

73
lutin_boost-context.py Normal file
View File

@ -0,0 +1,73 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-context 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/context/src/asm/make_x86_64_sysv_elf_gas.S',
'boost/libs/context/src/asm/jump_x86_64_sysv_elf_gas.S',
'boost/libs/context/src/asm/ontop_x86_64_sysv_elf_gas.S',
'boost/libs/context/src/posix/stack_traits.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_CONTEXT_DYN_LINK=1',
'-DBOOST_CONTEXT_SOURCE',
'-DBOOST_DISABLE_ASSERTS',
'-DNDEBUG',
])
my_module.add_flag('s', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_CONTEXT_DYN_LINK=1',
'-DBOOST_CONTEXT_SOURCE',
'-DBOOST_DISABLE_ASSERTS',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'pthread',
])
return True

71
lutin_boost-coroutine.py Normal file
View File

@ -0,0 +1,71 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-coroutine 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/coroutine/src/detail/coroutine_context.cpp',
'boost/libs/coroutine/src/exceptions.cpp',
'boost/libs/coroutine/src/posix/stack_traits.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_CHRONO_DYN_LINK=1',
'-DBOOST_CONTEXT_DYN_LINK=1',
'-DBOOST_COROUTINES_DYN_LINK=1',
'-DBOOST_COROUTINES_SOURCE',
'-DBOOST_DISABLE_ASSERTS',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DBOOST_SYSTEM_NO_DEPRECATED',
'-DBOOST_THREAD_BUILD_DLL=1',
'-DBOOST_THREAD_POSIX',
'-DBOOST_THREAD_USE_DLL=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-chrono',
'boost-context',
'boost-thread',
'boost-system',
])
return True

59
lutin_boost-date-time.py Normal file
View File

@ -0,0 +1,59 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-date-time 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/date_time/src/gregorian/greg_month.cpp',
'boost/libs/date_time/src/gregorian/greg_weekday.cpp',
'boost/libs/date_time/src/gregorian/date_generators.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_DYN_LINK=1',
'-DBOOST_ALL_NO_LIB=1',
'-DDATE_TIME_INLINE',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

81
lutin_boost-fiber.py Normal file
View File

@ -0,0 +1,81 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-fiber 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/fiber/src/numa/linux/pin_thread.cpp',
'boost/libs/fiber/src/numa/linux/topology.cpp',
'boost/libs/fiber/src/algo/algorithm.cpp',
'boost/libs/fiber/src/algo/round_robin.cpp',
'boost/libs/fiber/src/algo/shared_work.cpp',
'boost/libs/fiber/src/algo/work_stealing.cpp',
'boost/libs/fiber/src/algo/numa/work_stealing.cpp',
'boost/libs/fiber/src/barrier.cpp',
'boost/libs/fiber/src/condition_variable.cpp',
'boost/libs/fiber/src/context.cpp',
'boost/libs/fiber/src/fiber.cpp',
'boost/libs/fiber/src/future.cpp',
'boost/libs/fiber/src/mutex.cpp',
'boost/libs/fiber/src/properties.cpp',
'boost/libs/fiber/src/recursive_mutex.cpp',
'boost/libs/fiber/src/recursive_timed_mutex.cpp',
'boost/libs/fiber/src/timed_mutex.cpp',
'boost/libs/fiber/src/scheduler.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_CONTEXT_DYN_LINK=1',
'-DBOOST_DISABLE_ASSERTS',
'-DBOOST_FIBERS_DYN_LINK=1',
'-DBOOST_FIBERS_SOURCE',
'-DBOOST_FILESYSTEM_DYN_LINK=1',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-context',
'boost-filesystem',
'boost-system',
])
return True

65
lutin_boost-filesystem.py Normal file
View File

@ -0,0 +1,65 @@
#!/usr/bin/python
import lutin.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/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_SYSTEM_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-system',
])
return True

63
lutin_boost-graph.py Normal file
View File

@ -0,0 +1,63 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-graph 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/graph/src/read_graphviz_new.cpp',
'boost/libs/graph/src/graphml.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_GRAPH_DYN_LINK=1',
'-DBOOST_HAS_ICU=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.add_path([
'boost/libs/graph/src',
], type='c++')
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-regex',
])
return True

35
lutin_boost-include.py Normal file
View File

@ -0,0 +1,35 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost include 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.compile_version('c++', 2011)
my_module.add_header_file(
'boost/boost/*',
recursive=True,
destination_path='boost')
return True

62
lutin_boost-iostreams.py Normal file
View File

@ -0,0 +1,62 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-iostreams 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/iostreams/src/file_descriptor.cpp',
'boost/libs/iostreams/src/mapped_file.cpp',
'boost/libs/iostreams/src/bzip2.cpp',
'boost/libs/iostreams/src/gzip.cpp',
'boost/libs/iostreams/src/lzma.cpp',
'boost/libs/iostreams/src/zlib.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_IOSTREAMS_DYN_LINK=1',
'-DBOOST_IOSTREAMS_USE_DEPRECATED',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

101
lutin_boost-locale.py Normal file
View File

@ -0,0 +1,101 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-locale 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/locale/src/encoding/codepage.cpp',
'boost/libs/locale/src/shared/date_time.cpp',
'boost/libs/locale/src/shared/format.cpp',
'boost/libs/locale/src/shared/formatting.cpp',
'boost/libs/locale/src/shared/generator.cpp',
'boost/libs/locale/src/shared/ids.cpp',
'boost/libs/locale/src/shared/localization_backend.cpp',
'boost/libs/locale/src/shared/message.cpp',
'boost/libs/locale/src/shared/mo_lambda.cpp',
'boost/libs/locale/src/util/codecvt_converter.cpp',
'boost/libs/locale/src/util/default_locale.cpp',
'boost/libs/locale/src/util/info.cpp',
'boost/libs/locale/src/util/locale_data.cpp',
'boost/libs/locale/src/icu/boundary.cpp',
'boost/libs/locale/src/icu/codecvt.cpp',
'boost/libs/locale/src/icu/collator.cpp',
'boost/libs/locale/src/icu/conversion.cpp',
'boost/libs/locale/src/icu/date_time.cpp',
'boost/libs/locale/src/icu/formatter.cpp',
'boost/libs/locale/src/icu/icu_backend.cpp',
'boost/libs/locale/src/icu/numeric.cpp',
'boost/libs/locale/src/icu/time_zone.cpp',
'boost/libs/locale/src/posix/codecvt.cpp',
'boost/libs/locale/src/posix/collate.cpp',
'boost/libs/locale/src/posix/converter.cpp',
'boost/libs/locale/src/posix/numeric.cpp',
'boost/libs/locale/src/posix/posix_backend.cpp',
'boost/libs/locale/src/std/codecvt.cpp',
'boost/libs/locale/src/std/collate.cpp',
'boost/libs/locale/src/std/converter.cpp',
'boost/libs/locale/src/std/numeric.cpp',
'boost/libs/locale/src/std/std_backend.cpp',
'boost/libs/locale/src/util/gregorian.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_CHRONO_DYN_LINK=1',
'-DBOOST_LOCALE_DYN_LINK=1',
'-DBOOST_LOCALE_NO_WINAPI_BACKEND=1',
'-DBOOST_LOCALE_WITH_ICONV=1',
'-DBOOST_LOCALE_WITH_ICU=1',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DBOOST_SYSTEM_NO_DEPRECATED',
'-DBOOST_THREAD_BUILD_DLL=1',
'-DBOOST_THREAD_NO_LIB=1',
'-DBOOST_THREAD_POSIX',
'-DBOOST_THREAD_USE_DLL=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-chrono',
'boost-thread',
'boost-system',
])
return True

101
lutin_boost-log-setup.py Normal file
View File

@ -0,0 +1,101 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-log-setup 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/log/src/setup/parser_utils.cpp',
'boost/libs/log/src/setup/init_from_stream.cpp',
'boost/libs/log/src/setup/init_from_settings.cpp',
'boost/libs/log/src/setup/settings_parser.cpp',
'boost/libs/log/src/setup/filter_parser.cpp',
'boost/libs/log/src/setup/formatter_parser.cpp',
'boost/libs/log/src/setup/default_filter_factory.cpp',
'boost/libs/log/src/setup/matches_relation_factory.cpp',
'boost/libs/log/src/setup/default_formatter_factory.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_ATOMIC_DYN_LINK=1',
'-DBOOST_CHRONO_DYN_LINK=1',
'-DBOOST_DATE_TIME_DYN_LINK=1',
'-DBOOST_FILESYSTEM_DYN_LINK=1',
'-DBOOST_HAS_ICU=1',
'-DBOOST_LOG_DYN_LINK=1',
'-DBOOST_LOG_HAS_PTHREAD_MUTEX_ROBUST',
'-DBOOST_LOG_SETUP_BUILDING_THE_LIB=1',
'-DBOOST_LOG_SETUP_DLL',
'-DBOOST_LOG_USE_AVX2',
'-DBOOST_LOG_USE_NATIVE_SYSLOG',
'-DBOOST_LOG_USE_SSSE3',
'-DBOOST_LOG_WITHOUT_EVENT_LOG',
'-DBOOST_SPIRIT_USE_PHOENIX_V3=1',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DBOOST_SYSTEM_NO_DEPRECATED',
'-DBOOST_THREAD_BUILD_DLL=1',
'-DBOOST_THREAD_DONT_USE_CHRONO=1',
'-DBOOST_THREAD_POSIX',
'-DBOOST_THREAD_USE_DLL=1',
'-DDATE_TIME_INLINE',
'-DNDEBUG',
'-D_XOPEN_SOURCE=600',
'-D__STDC_CONSTANT_MACROS',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-fno-strict-aliasing',
'-ftemplate-depth-1024',
'-fvisibility=hidden',
])
my_module.add_path([
'boost/libs/log/src',
], type='c++')
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-log',
'boost-regex',
'boost-filesystem',
'boost-date-time',
'boost-thread',
'boost-chrono',
'boost-system',
'boost-atomic',
])
return True

134
lutin_boost-log.py Normal file
View File

@ -0,0 +1,134 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-log 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/log/src/attribute_name.cpp',
'boost/libs/log/src/attribute_set.cpp',
'boost/libs/log/src/attribute_value_set.cpp',
'boost/libs/log/src/code_conversion.cpp',
'boost/libs/log/src/core.cpp',
'boost/libs/log/src/record_ostream.cpp',
'boost/libs/log/src/severity_level.cpp',
'boost/libs/log/src/global_logger_storage.cpp',
'boost/libs/log/src/named_scope.cpp',
'boost/libs/log/src/process_name.cpp',
'boost/libs/log/src/process_id.cpp',
'boost/libs/log/src/thread_id.cpp',
'boost/libs/log/src/timer.cpp',
'boost/libs/log/src/exceptions.cpp',
'boost/libs/log/src/default_attribute_names.cpp',
'boost/libs/log/src/default_sink.cpp',
'boost/libs/log/src/text_ostream_backend.cpp',
'boost/libs/log/src/text_file_backend.cpp',
'boost/libs/log/src/text_multifile_backend.cpp',
'boost/libs/log/src/thread_specific.cpp',
'boost/libs/log/src/once_block.cpp',
'boost/libs/log/src/timestamp.cpp',
'boost/libs/log/src/threadsafe_queue.cpp',
'boost/libs/log/src/event.cpp',
'boost/libs/log/src/trivial.cpp',
'boost/libs/log/src/spirit_encoding.cpp',
'boost/libs/log/src/format_parser.cpp',
'boost/libs/log/src/date_time_format_parser.cpp',
'boost/libs/log/src/named_scope_format_parser.cpp',
'boost/libs/log/src/unhandled_exception_count.cpp',
'boost/libs/log/src/permissions.cpp',
'boost/libs/log/src/dump.cpp',
'boost/libs/log/src/dump_avx2.cpp',
'boost/libs/log/src/dump_ssse3.cpp',
'boost/libs/log/src/posix/ipc_reliable_message_queue.cpp',
'boost/libs/log/src/posix/object_name.cpp',
'boost/libs/log/src/syslog_backend.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_ATOMIC_DYN_LINK=1',
'-DBOOST_CHRONO_DYN_LINK=1',
'-DBOOST_DATE_TIME_DYN_LINK=1',
'-DBOOST_FILESYSTEM_DYN_LINK=1',
'-DBOOST_HAS_ICU=1',
'-DBOOST_LOG_BUILDING_THE_LIB=1',
'-DBOOST_LOG_DLL',
'-DBOOST_LOG_HAS_PTHREAD_MUTEX_ROBUST',
'-DBOOST_LOG_USE_AVX2',
'-DBOOST_LOG_USE_NATIVE_SYSLOG',
'-DBOOST_LOG_USE_SSSE3',
'-DBOOST_LOG_WITHOUT_DEBUG_OUTPUT',
'-DBOOST_LOG_WITHOUT_EVENT_LOG',
'-DBOOST_SPIRIT_USE_PHOENIX_V3=1',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DBOOST_SYSTEM_NO_DEPRECATED',
'-DBOOST_THREAD_BUILD_DLL=1',
'-DBOOST_THREAD_DONT_USE_CHRONO=1',
'-DBOOST_THREAD_POSIX',
'-DBOOST_THREAD_USE_DLL=1',
'-DDATE_TIME_INLINE',
'-DNDEBUG',
'-D_XOPEN_SOURCE=600',
'-D__STDC_CONSTANT_MACROS',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-fno-strict-aliasing',
'-ftemplate-depth-1024',
'-fvisibility=hidden',
'-mavx',
'-mavx2',
'-msse',
'-msse2',
'-msse3',
'-mssse3',
])
my_module.add_path([
'boost/libs/log/src',
], type='c++')
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-atomic',
'boost-chrono',
'boost-thread',
'boost-date-time',
'boost-filesystem',
'boost-system',
'boost-regex',
])
return True

83
lutin_boost-math-c99.py Normal file
View File

@ -0,0 +1,83 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-math-c99 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/math/build/../src/tr1/acosh.cpp',
'boost/libs/math/build/../src/tr1/asinh.cpp',
'boost/libs/math/build/../src/tr1/atanh.cpp',
'boost/libs/math/build/../src/tr1/cbrt.cpp',
'boost/libs/math/build/../src/tr1/copysign.cpp',
'boost/libs/math/build/../src/tr1/erfc.cpp',
'boost/libs/math/build/../src/tr1/erf.cpp',
'boost/libs/math/build/../src/tr1/expm1.cpp',
'boost/libs/math/build/../src/tr1/fmax.cpp',
'boost/libs/math/build/../src/tr1/fmin.cpp',
'boost/libs/math/build/../src/tr1/fpclassify.cpp',
'boost/libs/math/build/../src/tr1/hypot.cpp',
'boost/libs/math/build/../src/tr1/lgamma.cpp',
'boost/libs/math/build/../src/tr1/llround.cpp',
'boost/libs/math/build/../src/tr1/log1p.cpp',
'boost/libs/math/build/../src/tr1/lround.cpp',
'boost/libs/math/build/../src/tr1/nextafter.cpp',
'boost/libs/math/build/../src/tr1/nexttoward.cpp',
'boost/libs/math/build/../src/tr1/round.cpp',
'boost/libs/math/build/../src/tr1/tgamma.cpp',
'boost/libs/math/build/../src/tr1/trunc.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_BUILD_PCH_ENABLED',
'-DBOOST_MATH_TR1_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-fvisibility=hidden',
'-Winvalid-pch',
])
my_module.add_path([
'boost/libs/math/src/tr1',
], type='c++')
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

83
lutin_boost-math-c99f.py Normal file
View File

@ -0,0 +1,83 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-math-c99f 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/math/build/../src/tr1/acoshf.cpp',
'boost/libs/math/build/../src/tr1/asinhf.cpp',
'boost/libs/math/build/../src/tr1/atanhf.cpp',
'boost/libs/math/build/../src/tr1/cbrtf.cpp',
'boost/libs/math/build/../src/tr1/copysignf.cpp',
'boost/libs/math/build/../src/tr1/erfcf.cpp',
'boost/libs/math/build/../src/tr1/erff.cpp',
'boost/libs/math/build/../src/tr1/expm1f.cpp',
'boost/libs/math/build/../src/tr1/fmaxf.cpp',
'boost/libs/math/build/../src/tr1/fminf.cpp',
'boost/libs/math/build/../src/tr1/fpclassifyf.cpp',
'boost/libs/math/build/../src/tr1/hypotf.cpp',
'boost/libs/math/build/../src/tr1/lgammaf.cpp',
'boost/libs/math/build/../src/tr1/llroundf.cpp',
'boost/libs/math/build/../src/tr1/log1pf.cpp',
'boost/libs/math/build/../src/tr1/lroundf.cpp',
'boost/libs/math/build/../src/tr1/nextafterf.cpp',
'boost/libs/math/build/../src/tr1/nexttowardf.cpp',
'boost/libs/math/build/../src/tr1/roundf.cpp',
'boost/libs/math/build/../src/tr1/tgammaf.cpp',
'boost/libs/math/build/../src/tr1/truncf.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_BUILD_PCH_ENABLED',
'-DBOOST_MATH_TR1_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-fvisibility=hidden',
'-Winvalid-pch',
])
my_module.add_path([
'boost/libs/math/src/tr1',
], type='c++')
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

83
lutin_boost-math-c99l.py Normal file
View File

@ -0,0 +1,83 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-math-c99l 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/math/build/../src/tr1/acoshl.cpp',
'boost/libs/math/build/../src/tr1/asinhl.cpp',
'boost/libs/math/build/../src/tr1/atanhl.cpp',
'boost/libs/math/build/../src/tr1/cbrtl.cpp',
'boost/libs/math/build/../src/tr1/copysignl.cpp',
'boost/libs/math/build/../src/tr1/erfcl.cpp',
'boost/libs/math/build/../src/tr1/erfl.cpp',
'boost/libs/math/build/../src/tr1/expm1l.cpp',
'boost/libs/math/build/../src/tr1/fmaxl.cpp',
'boost/libs/math/build/../src/tr1/fminl.cpp',
'boost/libs/math/build/../src/tr1/fpclassifyl.cpp',
'boost/libs/math/build/../src/tr1/hypotl.cpp',
'boost/libs/math/build/../src/tr1/lgammal.cpp',
'boost/libs/math/build/../src/tr1/llroundl.cpp',
'boost/libs/math/build/../src/tr1/log1pl.cpp',
'boost/libs/math/build/../src/tr1/lroundl.cpp',
'boost/libs/math/build/../src/tr1/nextafterl.cpp',
'boost/libs/math/build/../src/tr1/nexttowardl.cpp',
'boost/libs/math/build/../src/tr1/roundl.cpp',
'boost/libs/math/build/../src/tr1/tgammal.cpp',
'boost/libs/math/build/../src/tr1/truncl.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_BUILD_PCH_ENABLED',
'-DBOOST_MATH_TR1_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-fvisibility=hidden',
'-Winvalid-pch',
])
my_module.add_path([
'boost/libs/math/src/tr1',
], type='c++')
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

83
lutin_boost-math-tr1.py Normal file
View File

@ -0,0 +1,83 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-math-tr1 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/math/build/../src/tr1/assoc_laguerre.cpp',
'boost/libs/math/build/../src/tr1/assoc_legendre.cpp',
'boost/libs/math/build/../src/tr1/beta.cpp',
'boost/libs/math/build/../src/tr1/comp_ellint_1.cpp',
'boost/libs/math/build/../src/tr1/comp_ellint_2.cpp',
'boost/libs/math/build/../src/tr1/comp_ellint_3.cpp',
'boost/libs/math/build/../src/tr1/cyl_bessel_i.cpp',
'boost/libs/math/build/../src/tr1/cyl_bessel_j.cpp',
'boost/libs/math/build/../src/tr1/cyl_bessel_k.cpp',
'boost/libs/math/build/../src/tr1/cyl_neumann.cpp',
'boost/libs/math/build/../src/tr1/ellint_1.cpp',
'boost/libs/math/build/../src/tr1/ellint_2.cpp',
'boost/libs/math/build/../src/tr1/ellint_3.cpp',
'boost/libs/math/build/../src/tr1/expint.cpp',
'boost/libs/math/build/../src/tr1/hermite.cpp',
'boost/libs/math/build/../src/tr1/laguerre.cpp',
'boost/libs/math/build/../src/tr1/legendre.cpp',
'boost/libs/math/build/../src/tr1/riemann_zeta.cpp',
'boost/libs/math/build/../src/tr1/sph_bessel.cpp',
'boost/libs/math/build/../src/tr1/sph_legendre.cpp',
'boost/libs/math/build/../src/tr1/sph_neumann.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_BUILD_PCH_ENABLED',
'-DBOOST_MATH_TR1_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-fvisibility=hidden',
'-Winvalid-pch',
])
my_module.add_path([
'boost/libs/math/src/tr1',
], type='c++')
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

83
lutin_boost-math-tr1f.py Normal file
View File

@ -0,0 +1,83 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-math-tr1f 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/math/build/../src/tr1/assoc_laguerref.cpp',
'boost/libs/math/build/../src/tr1/assoc_legendref.cpp',
'boost/libs/math/build/../src/tr1/betaf.cpp',
'boost/libs/math/build/../src/tr1/comp_ellint_1f.cpp',
'boost/libs/math/build/../src/tr1/comp_ellint_2f.cpp',
'boost/libs/math/build/../src/tr1/comp_ellint_3f.cpp',
'boost/libs/math/build/../src/tr1/cyl_bessel_if.cpp',
'boost/libs/math/build/../src/tr1/cyl_bessel_jf.cpp',
'boost/libs/math/build/../src/tr1/cyl_bessel_kf.cpp',
'boost/libs/math/build/../src/tr1/cyl_neumannf.cpp',
'boost/libs/math/build/../src/tr1/ellint_1f.cpp',
'boost/libs/math/build/../src/tr1/ellint_2f.cpp',
'boost/libs/math/build/../src/tr1/ellint_3f.cpp',
'boost/libs/math/build/../src/tr1/expintf.cpp',
'boost/libs/math/build/../src/tr1/hermitef.cpp',
'boost/libs/math/build/../src/tr1/laguerref.cpp',
'boost/libs/math/build/../src/tr1/legendref.cpp',
'boost/libs/math/build/../src/tr1/riemann_zetaf.cpp',
'boost/libs/math/build/../src/tr1/sph_besself.cpp',
'boost/libs/math/build/../src/tr1/sph_legendref.cpp',
'boost/libs/math/build/../src/tr1/sph_neumannf.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_BUILD_PCH_ENABLED',
'-DBOOST_MATH_TR1_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-fvisibility=hidden',
'-Winvalid-pch',
])
my_module.add_path([
'boost/libs/math/src/tr1',
], type='c++')
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

84
lutin_boost-math-tr1l.py Normal file
View File

@ -0,0 +1,84 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-math-tr1l 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/math/config/has_long_double_support.cpp',
'boost/libs/math/build/../src/tr1/assoc_laguerrel.cpp',
'boost/libs/math/build/../src/tr1/assoc_legendrel.cpp',
'boost/libs/math/build/../src/tr1/betal.cpp',
'boost/libs/math/build/../src/tr1/comp_ellint_1l.cpp',
'boost/libs/math/build/../src/tr1/comp_ellint_2l.cpp',
'boost/libs/math/build/../src/tr1/comp_ellint_3l.cpp',
'boost/libs/math/build/../src/tr1/cyl_bessel_il.cpp',
'boost/libs/math/build/../src/tr1/cyl_bessel_jl.cpp',
'boost/libs/math/build/../src/tr1/cyl_bessel_kl.cpp',
'boost/libs/math/build/../src/tr1/cyl_neumannl.cpp',
'boost/libs/math/build/../src/tr1/ellint_1l.cpp',
'boost/libs/math/build/../src/tr1/ellint_2l.cpp',
'boost/libs/math/build/../src/tr1/ellint_3l.cpp',
'boost/libs/math/build/../src/tr1/expintl.cpp',
'boost/libs/math/build/../src/tr1/hermitel.cpp',
'boost/libs/math/build/../src/tr1/laguerrel.cpp',
'boost/libs/math/build/../src/tr1/legendrel.cpp',
'boost/libs/math/build/../src/tr1/riemann_zetal.cpp',
'boost/libs/math/build/../src/tr1/sph_bessell.cpp',
'boost/libs/math/build/../src/tr1/sph_legendrel.cpp',
'boost/libs/math/build/../src/tr1/sph_neumannl.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DNDEBUG',
'-DBOOST_BUILD_PCH_ENABLED',
'-DBOOST_MATH_TR1_DYN_LINK=1',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-fvisibility=hidden',
'-Winvalid-pch',
])
my_module.add_path([
'boost/libs/math/src/tr1',
], type='c++')
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

View File

@ -0,0 +1,66 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-prg-exec-monitor 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/test/src/execution_monitor.cpp',
'boost/libs/test/src/debug.cpp',
'boost/libs/test/src/cpp_main.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_CHRONO_DYN_LINK=1',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DBOOST_SYSTEM_NO_DEPRECATED',
'-DBOOST_TEST_DYN_LINK=1',
'-DBOOST_TIMER_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-pedantic',
'-Wno-variadic-macros',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-timer',
'boost-system',
])
return True

View File

@ -0,0 +1,66 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-program-options 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/program_options/src/cmdline.cpp',
'boost/libs/program_options/src/config_file.cpp',
'boost/libs/program_options/src/options_description.cpp',
'boost/libs/program_options/src/parsers.cpp',
'boost/libs/program_options/src/variables_map.cpp',
'boost/libs/program_options/src/value_semantic.cpp',
'boost/libs/program_options/src/positional_options.cpp',
'boost/libs/program_options/src/utf8_codecvt_facet.cpp',
'boost/libs/program_options/src/convert.cpp',
'boost/libs/program_options/src/winmain.cpp',
'boost/libs/program_options/src/split.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_PROGRAM_OPTIONS_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

86
lutin_boost-python3.py Normal file
View File

@ -0,0 +1,86 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-python3 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/python/src/list.cpp',
'boost/libs/python/src/long.cpp',
'boost/libs/python/src/dict.cpp',
'boost/libs/python/src/tuple.cpp',
'boost/libs/python/src/str.cpp',
'boost/libs/python/src/slice.cpp',
'boost/libs/python/src/converter/from_python.cpp',
'boost/libs/python/src/converter/registry.cpp',
'boost/libs/python/src/converter/type_id.cpp',
'boost/libs/python/src/object/enum.cpp',
'boost/libs/python/src/object/class.cpp',
'boost/libs/python/src/object/function.cpp',
'boost/libs/python/src/object/inheritance.cpp',
'boost/libs/python/src/object/life_support.cpp',
'boost/libs/python/src/object/pickle_support.cpp',
'boost/libs/python/src/errors.cpp',
'boost/libs/python/src/module.cpp',
'boost/libs/python/src/converter/builtin_converters.cpp',
'boost/libs/python/src/converter/arg_to_python_base.cpp',
'boost/libs/python/src/object/iterator.cpp',
'boost/libs/python/src/object/stl_iterator.cpp',
'boost/libs/python/src/object_protocol.cpp',
'boost/libs/python/src/object_operators.cpp',
'boost/libs/python/src/wrapper.cpp',
'boost/libs/python/src/import.cpp',
'boost/libs/python/src/exec.cpp',
'boost/libs/python/src/object/function_doc_signature.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_PYTHON_SOURCE',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.add_path([
'/usr/include/python3.6m',
], type='c++')
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

58
lutin_boost-random.py Normal file
View File

@ -0,0 +1,58 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-random 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/random/src/random_device.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_RANDOM_DYN_LINK',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-system',
])
return True

74
lutin_boost-regex.py Normal file
View File

@ -0,0 +1,74 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-regex 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/regex/build/../src/c_regex_traits.cpp',
'boost/libs/regex/build/../src/cpp_regex_traits.cpp',
'boost/libs/regex/build/../src/cregex.cpp',
'boost/libs/regex/build/../src/fileiter.cpp',
'boost/libs/regex/build/../src/icu.cpp',
'boost/libs/regex/build/../src/instances.cpp',
'boost/libs/regex/build/../src/posix_api.cpp',
'boost/libs/regex/build/../src/regex.cpp',
'boost/libs/regex/build/../src/regex_debug.cpp',
'boost/libs/regex/build/../src/regex_raw_buffer.cpp',
'boost/libs/regex/build/../src/regex_traits_defaults.cpp',
'boost/libs/regex/build/../src/static_mutex.cpp',
'boost/libs/regex/build/../src/w32_regex_traits.cpp',
'boost/libs/regex/build/../src/wc_regex_traits.cpp',
'boost/libs/regex/build/../src/wide_posix_api.cpp',
'boost/libs/regex/build/../src/winstances.cpp',
'boost/libs/regex/build/../src/usinstances.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_HAS_ICU=1',
'-DBOOST_REGEX_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-pedantic',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

View File

@ -0,0 +1,87 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-serialization 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/serialization/src/basic_archive.cpp',
'boost/libs/serialization/src/basic_iarchive.cpp',
'boost/libs/serialization/src/basic_iserializer.cpp',
'boost/libs/serialization/src/basic_oarchive.cpp',
'boost/libs/serialization/src/basic_oserializer.cpp',
'boost/libs/serialization/src/basic_pointer_iserializer.cpp',
'boost/libs/serialization/src/basic_pointer_oserializer.cpp',
'boost/libs/serialization/src/basic_serializer_map.cpp',
'boost/libs/serialization/src/basic_text_iprimitive.cpp',
'boost/libs/serialization/src/basic_text_oprimitive.cpp',
'boost/libs/serialization/src/basic_xml_archive.cpp',
'boost/libs/serialization/src/binary_iarchive.cpp',
'boost/libs/serialization/src/binary_oarchive.cpp',
'boost/libs/serialization/src/extended_type_info.cpp',
'boost/libs/serialization/src/extended_type_info_typeid.cpp',
'boost/libs/serialization/src/extended_type_info_no_rtti.cpp',
'boost/libs/serialization/src/polymorphic_iarchive.cpp',
'boost/libs/serialization/src/polymorphic_oarchive.cpp',
'boost/libs/serialization/src/stl_port.cpp',
'boost/libs/serialization/src/text_iarchive.cpp',
'boost/libs/serialization/src/text_oarchive.cpp',
'boost/libs/serialization/src/void_cast.cpp',
'boost/libs/serialization/src/archive_exception.cpp',
'boost/libs/serialization/src/xml_grammar.cpp',
'boost/libs/serialization/src/xml_iarchive.cpp',
'boost/libs/serialization/src/xml_oarchive.cpp',
'boost/libs/serialization/src/xml_archive_exception.cpp',
'boost/libs/serialization/src/codecvt_null.cpp',
'boost/libs/serialization/src/utf8_codecvt_facet.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_SERIALIZATION_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-ftemplate-depth-255',
'-fvisibility=hidden',
'-fvisibility-inlines-hidden',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

61
lutin_boost-signals.py Normal file
View File

@ -0,0 +1,61 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-signals 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/signals/src/trackable.cpp',
'boost/libs/signals/src/connection.cpp',
'boost/libs/signals/src/named_slot_map.cpp',
'boost/libs/signals/src/signal_base.cpp',
'boost/libs/signals/src/slot.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_SIGNALS_DYN_LINK=1',
'-DBOOST_SIGNALS_NO_LIB=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

View File

@ -0,0 +1,58 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-stacktrace-addr2line 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/stacktrace/build/../src/addr2line.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_STACKTRACE_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-pedantic',
'-fvisibility=hidden',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

View File

@ -0,0 +1,58 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-stacktrace-basic 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/stacktrace/build/../src/basic.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_STACKTRACE_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-pedantic',
'-fvisibility=hidden',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

View File

@ -0,0 +1,58 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-stacktrace-noop 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/stacktrace/build/../src/noop.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_STACKTRACE_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-pedantic',
'-fvisibility=hidden',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

57
lutin_boost-system.py Normal file
View File

@ -0,0 +1,57 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-system 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/system/src/error_code.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-pedantic',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
])
return True

67
lutin_boost-thread.py Normal file
View File

@ -0,0 +1,67 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-thread 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/thread/src/pthread/thread.cpp',
'boost/libs/thread/src/pthread/once.cpp',
'boost/libs/thread/src/future.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DBOOST_THREAD_BUILD_DLL=1',
'-DBOOST_THREAD_DONT_USE_CHRONO',
'-DBOOST_THREAD_POSIX',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-pedantic',
'-Wextra',
'-Wno-long-long',
'-Wno-unused-parameter',
'-Wunused-function',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-system',
])
return True

63
lutin_boost-timer.py Normal file
View File

@ -0,0 +1,63 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-timer 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/timer/src/auto_timers_construction.cpp',
'boost/libs/timer/src/cpu_timer.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_CHRONO_DYN_LINK=1',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DBOOST_SYSTEM_NO_DEPRECATED',
'-DBOOST_TIMER_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-pedantic',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-chrono',
'boost-system',
])
return True

View File

@ -0,0 +1,65 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-type-erasure 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/type_erasure/src/dynamic_binding.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_CHRONO_DYN_LINK=1',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DBOOST_SYSTEM_NO_DEPRECATED',
'-DBOOST_THREAD_BUILD_DLL=1',
'-DBOOST_THREAD_POSIX',
'-DBOOST_THREAD_USE_DLL=1',
'-DBOOST_TYPE_ERASURE_DYN_LINK',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-thread',
'boost-chrono',
'boost-system',
])
return True

View File

@ -0,0 +1,80 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-unit-test-framework 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/test/src/compiler_log_formatter.cpp',
'boost/libs/test/src/decorator.cpp',
'boost/libs/test/src/framework.cpp',
'boost/libs/test/src/plain_report_formatter.cpp',
'boost/libs/test/src/progress_monitor.cpp',
'boost/libs/test/src/results_collector.cpp',
'boost/libs/test/src/results_reporter.cpp',
'boost/libs/test/src/test_framework_init_observer.cpp',
'boost/libs/test/src/test_tools.cpp',
'boost/libs/test/src/test_tree.cpp',
'boost/libs/test/src/unit_test_log.cpp',
'boost/libs/test/src/unit_test_main.cpp',
'boost/libs/test/src/unit_test_monitor.cpp',
'boost/libs/test/src/unit_test_parameters.cpp',
'boost/libs/test/src/junit_log_formatter.cpp',
'boost/libs/test/src/xml_log_formatter.cpp',
'boost/libs/test/src/xml_report_formatter.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_CHRONO_DYN_LINK=1',
'-DBOOST_SYSTEM_DYN_LINK=1',
'-DBOOST_SYSTEM_NO_DEPRECATED',
'-DBOOST_TEST_DYN_LINK=1',
'-DBOOST_TIMER_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-pedantic',
'-Wno-variadic-macros',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-timer',
'boost-system',
])
return True

72
lutin_boost-wave.py Normal file
View File

@ -0,0 +1,72 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-wave 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/wave/src/instantiate_cpp_exprgrammar.cpp',
'boost/libs/wave/src/instantiate_cpp_grammar.cpp',
'boost/libs/wave/src/instantiate_cpp_literalgrs.cpp',
'boost/libs/wave/src/instantiate_defined_grammar.cpp',
'boost/libs/wave/src/instantiate_predef_macros.cpp',
'boost/libs/wave/src/instantiate_re2c_lexer.cpp',
'boost/libs/wave/src/instantiate_re2c_lexer_str.cpp',
'boost/libs/wave/src/token_ids.cpp',
'boost/libs/wave/src/wave_config_constant.cpp',
'boost/libs/wave/src/cpplexer/re2clex/aq.cpp',
'boost/libs/wave/src/cpplexer/re2clex/cpp_re.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_DYN_LINK=1',
'-DBOOST_ALL_NO_LIB=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-w',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-filesystem',
'boost-thread',
'boost-date-time',
'boost-chrono',
'boost-system',
])
return True

View File

@ -0,0 +1,66 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost:boost-wserialization 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/serialization/src/basic_text_wiprimitive.cpp',
'boost/libs/serialization/src/basic_text_woprimitive.cpp',
'boost/libs/serialization/src/text_wiarchive.cpp',
'boost/libs/serialization/src/text_woarchive.cpp',
'boost/libs/serialization/src/xml_wgrammar.cpp',
'boost/libs/serialization/src/xml_wiarchive.cpp',
'boost/libs/serialization/src/xml_woarchive.cpp',
])
my_module.add_flag('c++', [
'-DBOOST_ALL_NO_LIB=1',
'-DBOOST_SERIALIZATION_DYN_LINK=1',
'-DNDEBUG',
])
my_module.add_flag('c', [
'-finline-functions',
'-Wno-inline',
'-Wall',
'-ftemplate-depth-255',
'-fvisibility=hidden',
'-fvisibility-inlines-hidden',
])
my_module.compile_version('c++', 2011)
my_module.add_depend([
'z',
'm',
'cxx',
'boost-include',
'pthread',
'boost-serialization',
])
return True

66
lutin_boost.py Normal file
View File

@ -0,0 +1,66 @@
#!/usr/bin/python
import lutin.debug as debug
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "boost include library"
#def get_licence():
# return "UNKNOW"
def get_compagny_type():
return "org"
def get_compagny_name():
return "boost"
def get_version():
return "version.txt"
def configure(target, my_module):
my_module.compile_version('c++', 2011)
my_module.add_depend([
'boost-include',
'boost-atomic',
'boost-system',
'boost-chrono',
'boost-container',
'boost-context',
'boost-thread',
'boost-coroutine',
'boost-date-time',
'boost-filesystem',
'boost-fiber',
'boost-regex',
'boost-graph',
'boost-iostreams',
'boost-locale',
'boost-log',
'boost-log-setup',
'boost-math-tr1',
'boost-math-tr1f',
'boost-math-tr1l',
'boost-math-c99',
'boost-math-c99f',
'boost-math-c99l',
'boost-program-options',
'boost-python3',
'boost-random',
'boost-serialization',
'boost-wserialization',
'boost-signals',
'boost-stacktrace-noop',
'boost-stacktrace-addr2line',
'boost-stacktrace-basic',
'boost-timer',
'boost-prg-exec-monitor',
'boost-unit-test-framework',
'boost-type-erasure',
'boost-wave',
])

370
parseBuildOutputToLutin.py Executable file
View File

@ -0,0 +1,370 @@
#!/usr/bin/env python
import sys
import re
import os
import copy
# DL sources:
# http://www.boost.org/users/history/
# https://dl.bintray.com/boostorg/release/1.66.0/source/
# ./boostrap.sh
# ./b2 -a -n -j1 > ../build.txt
# grep -nriE "(g\+\+|/bin/ar)" ../build.txt > ../build2.txt
# ./parseBuildOutputToLutin.py build.txt boost
build_output_file = sys.argv[1]
global_lib_name = sys.argv[2]
def create_directory_of_file(file):
path = os.path.dirname(file)
try:
os.stat(path)
except:
os.makedirs(path)
def file_write_data(path, data):
#create_directory_of_file(path)
file = open(path, "w")
file.write(data)
file.close()
return True
list_of_library_generated = []
def genrate_version(version):
file_write_data("version.txt", version);
list_of_flags_default = {
"c":[],
"cpp":[],
"S":[]
}
def genrate_lutin_file(lib_name, list_of_files, list_of_flags):
tmp_base = "lib" + global_lib_name + "_"
if len(lib_name) > len(tmp_base)\
and lib_name[:len(tmp_base)] == tmp_base:
lib_name = lib_name[len(tmp_base):]
lib_name = global_lib_name + "-" + lib_name;
list_of_library_generated.append(lib_name.replace("_","-"))
# remove all unneeded element flags:
#-I
list_of_include = copy.deepcopy(list_of_flags_default)
# -D
list_of_define = copy.deepcopy(list_of_flags_default)
# other
list_of_other = []
# dependency:
list_of_dependency = []
#print("list of flags: ")
for type in ["c", "cpp", "S"]:
for elem in list_of_flags[type]:
if elem in ["-m64", "-O3", "-O2", "-O1", "-O0", "-fPIC"]:
continue
if elem == "-pthread":
list_of_dependency.append("pthread")
continue
if elem in ["-fabi-version=0", '-I"/usr/include"']:
# just remove it ..
continue
if elem[:2] == "-D":
#print("DEFINE: " + elem)
list_of_define[type].append(elem)
continue
if elem[:2] == "-I":
if elem == '-I"."' \
or elem == '-I.':
continue
if elem[:9] in '-I"bin.v2':
continue
if elem[:4] in '-I"/':
if "/usr/include/python3.6" == elem[3:-1]:
list_of_include[type].append(elem[3:-1]+"m")
# TODO: depend on python lib
else:
list_of_include[type].append(elem[3:-1])
continue
# TODO : Do it better :
print("INCLUDE: " + elem )
if os.path.isdir(global_lib_name + "/" + global_lib_name + "/" +elem[3:-1]):
list_of_include[type].append(global_lib_name + "/" + global_lib_name + "/" +elem[3:-1])
else:
list_of_include[type].append(global_lib_name + "/" +elem[3:-1])
continue
if elem[:2] in '-l':
list_of_dependency.append(elem[2:])
continue
#print("???: " + elem)
list_of_other.append(elem)
out = ""
out += "#!/usr/bin/python\n"
out += "import lutin.debug as debug\n"
out += "import lutin.tools as tools\n"
out += "import os\n"
out += "\n"
out += "def get_type():\n"
out += " return \"LIBRARY\"\n"
out += "\n"
out += "def get_desc():\n"
out += " return \"" + global_lib_name + ":" + lib_name.replace("_","-") + " library\"\n"
out += "\n"
out += "#def get_licence():\n"
out += "# return \"UNKNOW\"\n"
out += "\n"
out += "def get_compagny_type():\n"
out += " return \"org\"\n"
out += "\n"
out += "def get_compagny_name():\n"
out += " return \"" + global_lib_name + "\"\n"
out += "\n"
out += "#def get_maintainer():\n"
out += "# return \"UNKNOW\"\n"
out += "\n"
out += "def get_version():\n"
out += " return \"version.txt\"\n"
out += "\n"
out += "def configure(target, my_module):\n"
if len(list_of_files) != 0:
out += " my_module.add_src_file([\n"
for item in list_of_files:
out += " '" + global_lib_name + "/" + item +"',\n"
out += " ])\n"
out += " \n"
for type in ["c", "cpp", "S"]:
if len(list_of_define[type]) != 0:
if type == "cpp":
out += " my_module.add_flag('c++', [\n"
elif type == "S":
out += " my_module.add_flag('s', [\n"
else:
out += " my_module.add_flag('" + type + "', [\n"
for item in list_of_define[type]:
out += " '" + item +"',\n"
out += " ])\n"
out += " \n"
out += " \n"
if len(list_of_other) != 0:
out += " my_module.add_flag('c', [\n"
for item in list_of_other:
out += " '" + item +"',\n"
out += " ])\n"
out += " \n"
out += " \n"
for type in ["c", "cpp", "S"]:
if len(list_of_include[type]) != 0:
out += " my_module.add_path([\n"
for item in list_of_include[type]:
out += " '" + item +"',\n"
if type == "cpp":
out += " ], type='c++')\n"
elif type == "S":
out += " ], type='s')\n"
else:
out += " ], type='" + type + "')\n"
out += " \n"
out += " my_module.compile_version('c++', 2011)\n"
out += " my_module.add_depend([\n"
out += " 'z',\n"
out += " 'm',\n"
out += " 'cxx',\n"
out += " '" + global_lib_name + "-include',\n"
for item in list_of_dependency:
out += " '" + item +"',\n"
out += " ])\n"
out += " return True\n"
out += "\n"
out += "\n"
file_write_data("lutin_" + lib_name.replace("_","-") + ".py", out);
def generate_global_include_module():
out = ""
out += "#!/usr/bin/python\n"
out += "import lutin.debug as debug\n"
out += "import lutin.tools as tools\n"
out += "import os\n"
out += "\n"
out += "def get_type():\n"
out += " return \"LIBRARY\"\n"
out += "\n"
out += "def get_desc():\n"
out += " return \"" + global_lib_name + " include library\"\n"
out += "\n"
out += "#def get_licence():\n"
out += "# return \"UNKNOW\"\n"
out += "\n"
out += "def get_compagny_type():\n"
out += " return \"org\"\n"
out += "\n"
out += "def get_compagny_name():\n"
out += " return \"" + global_lib_name + "\"\n"
out += "\n"
out += "#def get_maintainer():\n"
out += "# return \"UNKNOW\"\n"
out += "\n"
out += "def get_version():\n"
out += " return \"version.txt\"\n"
out += "\n"
out += "def configure(target, my_module):\n"
out += " my_module.compile_version('c++', 2011)\n"
out += " my_module.add_header_file(\n"
out += " '" + global_lib_name + "/" + global_lib_name + "/*',\n"
out += " recursive=True,\n"
out += " destination_path='" + global_lib_name + "')\n"
out += " return True\n"
out += "\n"
out += "\n"
file_write_data("lutin_" + global_lib_name + "-include.py", out);
def generate_global_module(list_of_module):
out = ""
out += "#!/usr/bin/python\n"
out += "import lutin.debug as debug\n"
out += "import lutin.tools as tools\n"
out += "import os\n"
out += "\n"
out += "def get_type():\n"
out += " return \"LIBRARY\"\n"
out += "\n"
out += "def get_desc():\n"
out += " return \"" + global_lib_name + " include library\"\n"
out += "\n"
out += "#def get_licence():\n"
out += "# return \"UNKNOW\"\n"
out += "\n"
out += "def get_compagny_type():\n"
out += " return \"org\"\n"
out += "\n"
out += "def get_compagny_name():\n"
out += " return \"" + global_lib_name + "\"\n"
out += "\n"
out += "def get_version():\n"
out += " return \"version.txt\"\n"
out += "\n"
out += "def configure(target, my_module):\n"
out += " my_module.compile_version('c++', 2011)\n"
out += " my_module.add_depend([\n"
out += " '" + global_lib_name + "-include',\n"
for item in list_of_module:
out += " '" + item +"',\n"
out += " ])\n"
out += "\n"
out += "\n"
file_write_data("lutin_" + global_lib_name + ".py", out);
with open(build_output_file) as commit:
lines = commit.readlines()
if len(lines) == 0:
print("Empty build ....")
sys.exit(1)
list_of_file = []
list_of_flags = copy.deepcopy(list_of_flags_default)
# first line
for line in lines:
#print("line : " + line[-6:-2])
"""
if len(line) > 6 \
and line[-6:-2] == ".cpp":
print("element : " + line)
"""
# "g++" -O3 -finline-functions -Wno-inline -Wall -pthread -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_USE_LIB=1 -DNDEBUG -I"." -c -o "bin.v2/lib*.o
m = re.search('^(.*)"(g\+\+|gcc|clang)"(.*) \-c \-o (.*)\.o" "((.*)\.(cpp|c|cxx|S))"$', line)
if m != None:
"""
print("element : " + str(len(m.groups())))
for elem in m.groups():
print(" " + elem)
"""
if len(m.groups()) == 7:
#print("element : " + line)
## print(" value : " + m.groups()[1])
type_of_file = m.groups()[4].split(".")[-1]
for flag in m.groups()[2].split(" "):
if flag in ["", "-x", "c", "assembler-with-cpp"]:
continue
if "assembler-with-cpp" == flag:
print("element : " + line)
if flag not in list_of_flags[type_of_file]:
#print(" " + flag)
list_of_flags[type_of_file].append(flag)
list_of_file.append(m.groups()[4])
continue
m = re.search('^(.*)/usr/bin/ar"(.*)"((.*)/([a-zA-Z0-9_\-.]*)\.a)"(.*)$', line)
if m != None:
## we do not use AR element ==> in boost just a double compilation ...
"""
print("element : " + str(len(m.groups())))
for elem in m.groups():
print(" " + elem)
"""
if len(m.groups()) == 6:
#print("element : " + line)
## print(" to: " + m.groups()[4] + " (.a)")
# Remove it only keep the .so
list_of_file = []
list_of_flags = copy.deepcopy(list_of_flags_default)
continue
# ln -f -s 'libboost_wave.so.1.66.0' 'stage/lib/libboost_wave.so'
#"g++" -o "bin.v2/libs/type_erasure/build/gcc-gnu-7.2.1/release/threadapi-pthread/threading-multi/libboost_type_erasure.so.1.66.0" -Wl,-h -Wl,libboost_type_erasure.so.1.66.0 -shared -Wl,--start-group "bin.v2/libs/type_erasure/build/gcc-gnu-7.2.1/release/threadapi-pthread/threading-multi/dynamic_binding.o" "bin.v2/libs/thread/build/gcc-gnu-7.2.1/release/threadapi-pthread/threading-multi/libboost_thread.so.1.66.0" "bin.v2/libs/chrono/build/gcc-gnu-7.2.1/release/threadapi-pthread/threading-multi/libboost_chrono.so.1.66.0" "bin.v2/libs/system/build/gcc-gnu-7.2.1/release/threadapi-pthread/threading-multi/libboost_system.so.1.66.0" -Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl,--end-group -pthread -fPIC -m64
#m = re.search('(.*/([a-zA-Z0-9_\-\.]*?)\.so)', line)
m = re.search('^(.*)"(g\+\+|gcc|clang)"(.*)$', line)
if m != None:
#print("element : " + str(len(m.groups())))
for elem in m.groups():
#print(" " + elem)
list_elem = elem.split('" "')
list_elem[-1] = list_elem[-1].split('"')[0]
for val in list_elem:
if val[-2:] == ".o":
continue
lib_name = val.split('/')[-1].split(".so")[0]
if lib_name[:3] == "lib":
lib_name = lib_name[3:].replace("_","-")
#print(" " + lib_name)
list_of_flags["cpp"].append('-l' + lib_name)
m = re.search('^(.*)\'((.*)/([a-zA-Z0-9_\-.]*)\.so)\'$', line)
if m != None:
"""
print("element : " + str(len(m.groups())))
for elem in m.groups():
print(" " + elem)
"""
if len(m.groups()) == 4:
#print("element : " + line)
#print(" to: " + m.groups()[3] + " (.so)")
#if "libboost_container" == m.groups()[3]:
# exit(0)
genrate_lutin_file(m.groups()[3], list_of_file, list_of_flags)
##for item in list_of_file:
## print(" " + item)
list_of_file = []
list_of_flags = copy.deepcopy(list_of_flags_default)
continue
#create version file
genrate_version("1.66.0")
# generate a global inclue
generate_global_include_module()
# generate a global library
generate_global_module(list_of_library_generated)

1
version.txt Normal file
View File

@ -0,0 +1 @@
1.66.0