integrate version cxx 3.4 release

This commit is contained in:
Edouard DUPIN 2016-01-05 23:12:30 +01:00
parent ce6704bb64
commit 840b60368c
3 changed files with 101 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "cxx"]
path = cxx
url = https://github.com/generic-library/cxx.git

1
cxx Submodule

@ -0,0 +1 @@
Subproject commit 532b0b423cad500c3159a79f9466129e2a52ab85

97
lutin_cxx.py Normal file
View File

@ -0,0 +1,97 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import os
def get_type():
return "LIBRARY"
def get_desc():
return "clang generic lib c++"
def get_licence():
return "bsd-like"
def get_compagny_type():
return "com"
def get_compagny_name():
return "University of Illinois"
def get_maintainer():
return ["LLVM Team"]
def get_version():
return [3,4]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([
'cxx/src/algorithm.cpp',
'cxx/src/bind.cpp',
'cxx/src/chrono.cpp',
'cxx/src/condition_variable.cpp',
'cxx/src/debug.cpp',
'cxx/src/exception.cpp',
'cxx/src/future.cpp',
'cxx/src/hash.cpp',
'cxx/src/ios.cpp',
'cxx/src/iostream.cpp',
'cxx/src/locale.cpp',
'cxx/src/memory.cpp',
'cxx/src/mutex.cpp',
'cxx/src/new.cpp',
'cxx/src/optional.cpp',
'cxx/src/random.cpp',
'cxx/src/regex.cpp',
'cxx/src/shared_mutex.cpp',
'cxx/src/stdexcept.cpp',
'cxx/src/string.cpp',
'cxx/src/strstream.cpp',
'cxx/src/system_error.cpp',
'cxx/src/thread.cpp',
'cxx/src/typeinfo.cpp',
'cxx/src/utility.cpp',
'cxx/src/valarray.cpp'
])
if target.name=="Windows":
my_module.add_src_file([
'src/support/win32/support.cpp',
'src/support/win32/locale_win32.cpp'
])
my_module.compile_version("c++", 2011)
my_module.compile_flags('c++', [
"-nostdinc++",
"-std=c++11",
"-fstrict-aliasing",
"-Wall",
"-Wextra",
"-Wshadow",
"-Wconversion",
"-Wpadded",
"-Wstrict-aliasing=2",
"-Wstrict-overflow=4"
])
# add local include path to build
my_module.add_path(os.path.join(tools.get_current_path(__file__), "cxx/include"))
my_module.add_header_file([
'cxx/include/*'
],
destination_path=""
)
my_module.add_header_file([
'cxx/include/experimental/*',
],
destination_path="experimental")
if target.name=="Windows":
my_module.add_header_file([
'cxx/include/support/win32/*',
],
destination_path="include/support/win32")
# export flag that we use LLVM C++ lib
my_module.add_export_flag("c++", ["-D__STDCPP_LLVM__", "-nostdlib"])
return my_module