diff options
author | alextaran@chromium.org <alextaran@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 17:12:16 +0000 |
---|---|---|
committer | alextaran@chromium.org <alextaran@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 17:12:16 +0000 |
commit | b5a0e743e4658dfee809623ac0721a520c7d8baf (patch) | |
tree | f7356b0ebbe26fe2058bdc003bb4d0c19635177d /third_party | |
parent | db9ede068dae38b3540c7138ba24dc0b3fc9386b (diff) | |
download | chromium_src-b5a0e743e4658dfee809623ac0721a520c7d8baf.zip chromium_src-b5a0e743e4658dfee809623ac0721a520c7d8baf.tar.gz chromium_src-b5a0e743e4658dfee809623ac0721a520c7d8baf.tar.bz2 |
Add libc++ and libc++abi to third-party.
BUG=318770, 313751
R=glider@chromium.org,thakis@chromium.org,bradnelson@chromium.org,darin@chromium.org
Review URL: https://codereview.chromium.org/75213003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/libc++/LICENSE.TXT | 76 | ||||
-rw-r--r-- | third_party/libc++/OWNERS | 2 | ||||
-rw-r--r-- | third_party/libc++/README.chromium | 13 | ||||
-rw-r--r-- | third_party/libc++/libc++.gyp | 96 | ||||
-rw-r--r-- | third_party/libc++abi/LICENSE.TXT | 76 | ||||
-rw-r--r-- | third_party/libc++abi/OWNERS | 2 | ||||
-rw-r--r-- | third_party/libc++abi/README.chromium | 13 | ||||
-rw-r--r-- | third_party/libc++abi/libc++abi.gyp | 91 |
8 files changed, 369 insertions, 0 deletions
diff --git a/third_party/libc++/LICENSE.TXT b/third_party/libc++/LICENSE.TXT new file mode 100644 index 0000000..5ed8ec2 --- /dev/null +++ b/third_party/libc++/LICENSE.TXT @@ -0,0 +1,76 @@ +============================================================================== +libc++ License +============================================================================== + +The libc++ library is dual licensed under both the University of Illinois +"BSD-Like" license and the MIT license. As a user of this code you may choose +to use it under either license. As a contributor, you agree to allow your code +to be used under both. + +Full text of the relevant licenses is included below. + +============================================================================== + +University of Illinois/NCSA +Open Source License + +Copyright (c) 2009-2013 by the contributors listed in CREDITS.TXT + +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. + +============================================================================== + +Copyright (c) 2009-2013 by the contributors listed in CREDITS.TXT + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/third_party/libc++/OWNERS b/third_party/libc++/OWNERS new file mode 100644 index 0000000..b90d1ad --- /dev/null +++ b/third_party/libc++/OWNERS @@ -0,0 +1,2 @@ +earthdok@chromium.org +glider@chromium.org diff --git a/third_party/libc++/README.chromium b/third_party/libc++/README.chromium new file mode 100644 index 0000000..8cb0ffb --- /dev/null +++ b/third_party/libc++/README.chromium @@ -0,0 +1,13 @@ +Name: libcxx +Short Name: libc++ +URL: http://libcxx.llvm.org/ +Version: 1.0 +License: MIT, University of Illinois/NCSA Open Source License +License File: LICENSE.TXT +Security Critical: no + +Description: + +libc++ for Chromium. +This is intended for instrumented builds, not for release. +There was no security review for this library. diff --git a/third_party/libc++/libc++.gyp b/third_party/libc++/libc++.gyp new file mode 100644 index 0000000..c45470a --- /dev/null +++ b/third_party/libc++/libc++.gyp @@ -0,0 +1,96 @@ +# Copyright 2013 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'targets': [ + { + 'target_name': 'libc++', + 'type': 'shared_library', + 'variables': { + 'prune_self_dependency': 1, + }, + 'dependencies=': [], + 'sources': [ + 'src/algorithm.cpp', + 'src/bind.cpp', + 'src/chrono.cpp', + 'src/condition_variable.cpp', + 'src/debug.cpp', + 'src/exception.cpp', + 'src/future.cpp', + 'src/hash.cpp', + 'src/ios.cpp', + 'src/iostream.cpp', + 'src/locale.cpp', + 'src/memory.cpp', + 'src/mutex.cpp', + 'src/new.cpp', + 'src/optional.cpp', + 'src/random.cpp', + 'src/regex.cpp', + 'src/shared_mutex.cpp', + 'src/stdexcept.cpp', + 'src/string.cpp', + 'src/strstream.cpp', + 'src/system_error.cpp', + 'src/thread.cpp', + 'src/typeinfo.cpp', + 'src/utility.cpp', + 'src/valarray.cpp', + ], + 'include_dirs': [ + 'include', + '../libc++abi/include', + ], + 'cflags': [ + '-g', '-Os', '-fPIC', + '-std=c++11', + '-fstrict-aliasing', + '-Wall', + '-Wextra', + '-Wshadow', + '-Wconversion', + '-Wnewline-eof', + '-Wpadded', + '-Wmissing-prototypes', + '-Wstrict-aliasing=2', + '-Wstrict-overflow=4', + '-nostdinc++', + ], + 'direct_dependent_settings': { + 'target_conditions': [ + ['_type!="none"', { + 'include_dirs': [ + 'include', + ], + 'cflags_cc': [ + '-nostdinc++', + ], + 'ldflags': [ + '-stdlib=libc++', + '-L<(PRODUCT_DIR)/lib/', + ], + }], + ], + }, + 'cflags_cc!': [ + '-fno-rtti', + ], + 'cflags!': [ + '-fno-exceptions', + '-fvisibility=hidden', + ], + 'ldflags': [ + '-nodefaultlibs', + ], + 'ldflags!': [ + '-pthread', + ], + 'libraries': [ + '-lrt', + '-lc', + ], + }, + ] +} diff --git a/third_party/libc++abi/LICENSE.TXT b/third_party/libc++abi/LICENSE.TXT new file mode 100644 index 0000000..b04ba2c --- /dev/null +++ b/third_party/libc++abi/LICENSE.TXT @@ -0,0 +1,76 @@ +============================================================================== +libc++abi License +============================================================================== + +The libc++abi library is dual licensed under both the University of Illinois +"BSD-Like" license and the MIT license. As a user of this code you may choose +to use it under either license. As a contributor, you agree to allow your code +to be used under both. + +Full text of the relevant licenses is included below. + +============================================================================== + +University of Illinois/NCSA +Open Source License + +Copyright (c) 2009-2013 by the contributors listed in CREDITS.TXT + +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. + +============================================================================== + +Copyright (c) 2009-2013 by the contributors listed in CREDITS.TXT + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/third_party/libc++abi/OWNERS b/third_party/libc++abi/OWNERS new file mode 100644 index 0000000..b90d1ad --- /dev/null +++ b/third_party/libc++abi/OWNERS @@ -0,0 +1,2 @@ +earthdok@chromium.org +glider@chromium.org diff --git a/third_party/libc++abi/README.chromium b/third_party/libc++abi/README.chromium new file mode 100644 index 0000000..163907a --- /dev/null +++ b/third_party/libc++abi/README.chromium @@ -0,0 +1,13 @@ +Name: libcxxabi +Short Name: libc++abi +URL: http://libcxxabi.llvm.org/ +Version: 1.0 +License: MIT, University of Illinois/NCSA Open Source License +License File: LICENSE.TXT +Security Critical: no + +Description: + +libc++abi for Chromium. +This is intended for instrumented builds, not for release. +There was no security review for this library. diff --git a/third_party/libc++abi/libc++abi.gyp b/third_party/libc++abi/libc++abi.gyp new file mode 100644 index 0000000..fe68fed --- /dev/null +++ b/third_party/libc++abi/libc++abi.gyp @@ -0,0 +1,91 @@ +# Copyright 2013 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'targets': [ + { + 'target_name': 'libc++abi', + 'type': 'shared_library', + 'variables': { + 'prune_self_dependency': 1, + }, + 'dependencies=': [], + 'sources': [ + 'src/abort_message.cpp', + 'src/cxa_aux_runtime.cpp', + 'src/cxa_default_handlers.cpp', + 'src/cxa_demangle.cpp', + 'src/cxa_exception.cpp', + 'src/cxa_exception_storage.cpp', + 'src/cxa_guard.cpp', + 'src/cxa_handlers.cpp', + 'src/cxa_new_delete.cpp', + 'src/cxa_personality.cpp', + 'src/cxa_unexpected.cpp', + 'src/cxa_vector.cpp', + 'src/cxa_virtual.cpp', + 'src/exception.cpp', + 'src/private_typeinfo.cpp', + 'src/stdexcept.cpp', + 'src/typeinfo.cpp', + ], + 'include_dirs': [ + 'include', + '../libc++/include' + ], + 'cflags': [ + '-g', '-O3', '-fPIC', + '-std=c++11', + '-fstrict-aliasing', + '-Wsign-conversion', + '-Wshadow', + '-Wconversion', + '-Wunused-variable', + '-Wmissing-field-initializers', + '-Wchar-subscripts', + '-Wmismatched-tags', + '-Wmissing-braces', + '-Wshorten-64-to-32', + '-Wsign-compare', + '-Wstrict-aliasing=2', + '-Wstrict-overflow=4', + '-Wunused-parameter', + '-Wnewline-eof', + '-nostdinc++', + ], + 'direct_dependent_settings': { + 'target_conditions': [ + ['_type!="none"', { + 'include_dirs': [ + 'include', + ], + 'cflags_cc': [ + '-nostdinc++', + ], + 'ldflags': [ + '-L<(PRODUCT_DIR)/lib/', + ], + }], + ], + }, + 'cflags_cc!': [ + '-fno-rtti', + ], + 'cflags!': [ + '-fno-exceptions', + '-fvisibility=hidden', + ], + 'ldflags': [ + '-nodefaultlibs', + ], + 'ldflags!': [ + '-pthread', + ], + 'libraries': [ + '-lrt', + '-lc', + ] + }, + ] +} |