diff options
author | alextaran@chromium.org <alextaran@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-20 13:07:28 +0000 |
---|---|---|
committer | alextaran@chromium.org <alextaran@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-20 13:07:28 +0000 |
commit | 22b3f531eabc1343d3c1725dc310810ed515ade7 (patch) | |
tree | 9d39863f9f0917c77aaef5bc7cd8d806c44a9778 /third_party | |
parent | 35c31a2beb341eae1e6f71b67f61fecfe7d5edb5 (diff) | |
download | chromium_src-22b3f531eabc1343d3c1725dc310810ed515ade7.zip chromium_src-22b3f531eabc1343d3c1725dc310810ed515ade7.tar.gz chromium_src-22b3f531eabc1343d3c1725dc310810ed515ade7.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,phajdan@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240682
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241574
Review URL: https://codereview.chromium.org/75213003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-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/OWNERS | 2 | ||||
-rw-r--r-- | third_party/libc++abi/README.chromium | 13 | ||||
-rw-r--r-- | third_party/libc++abi/libc++abi.gyp | 91 |
6 files changed, 217 insertions, 0 deletions
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..b92145d --- /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: trunk/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..fd9c604 --- /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': [ + 'trunk/src/algorithm.cpp', + 'trunk/src/bind.cpp', + 'trunk/src/chrono.cpp', + 'trunk/src/condition_variable.cpp', + 'trunk/src/debug.cpp', + 'trunk/src/exception.cpp', + 'trunk/src/future.cpp', + 'trunk/src/hash.cpp', + 'trunk/src/ios.cpp', + 'trunk/src/iostream.cpp', + 'trunk/src/locale.cpp', + 'trunk/src/memory.cpp', + 'trunk/src/mutex.cpp', + 'trunk/src/new.cpp', + 'trunk/src/optional.cpp', + 'trunk/src/random.cpp', + 'trunk/src/regex.cpp', + 'trunk/src/shared_mutex.cpp', + 'trunk/src/stdexcept.cpp', + 'trunk/src/string.cpp', + 'trunk/src/strstream.cpp', + 'trunk/src/system_error.cpp', + 'trunk/src/thread.cpp', + 'trunk/src/typeinfo.cpp', + 'trunk/src/utility.cpp', + 'trunk/src/valarray.cpp', + ], + 'include_dirs': [ + 'trunk/include', + '../libc++abi/trunk/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': [ + 'trunk/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/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..c676b3b --- /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: trunk/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..6e56ff9 --- /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': [ + 'trunk/src/abort_message.cpp', + 'trunk/src/cxa_aux_runtime.cpp', + 'trunk/src/cxa_default_handlers.cpp', + 'trunk/src/cxa_demangle.cpp', + 'trunk/src/cxa_exception.cpp', + 'trunk/src/cxa_exception_storage.cpp', + 'trunk/src/cxa_guard.cpp', + 'trunk/src/cxa_handlers.cpp', + 'trunk/src/cxa_new_delete.cpp', + 'trunk/src/cxa_personality.cpp', + 'trunk/src/cxa_unexpected.cpp', + 'trunk/src/cxa_vector.cpp', + 'trunk/src/cxa_virtual.cpp', + 'trunk/src/exception.cpp', + 'trunk/src/private_typeinfo.cpp', + 'trunk/src/stdexcept.cpp', + 'trunk/src/typeinfo.cpp', + ], + 'include_dirs': [ + 'trunk/include', + '../libc++/trunk/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': [ + 'trunk/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', + ] + }, + ] +} |