Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1254)

Unified Diff: third_party/libcxx/libcxx.gyp

Issue 75213003: Add libc++ and libc++abi to third-party. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/libcxx/libcxx.gyp
===================================================================
--- third_party/libcxx/libcxx.gyp (revision 0)
+++ third_party/libcxx/libcxx.gyp (revision 0)
@@ -0,0 +1,90 @@
+# Copyright (c) 2012 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': 'libcxx',
+ 'type': 'shared_library',
+ 'variables': {
+ 'prune_self_dependency': 1,
+ },
+ 'dependencies=': [
+ '../libcxxabi/libcxxabi.gyp:libcxxabi',
+ ],
+ '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',
Alexander Potapenko 2013/11/19 15:28:08 This should be relative to <(DEPTH)
+ '../libcxxabi/include',
Alexander Potapenko 2013/11/19 15:28:08 Ditto.
+ ],
+ 'cflags': [
+ '-g', '-Os', '-fPIC',
Alexander Potapenko 2013/11/19 15:28:08 Is there any upstream build config, doc or script
+ '-std=c++0x',
+ '-fstrict-aliasing',
+ '-Wall', '-Wextra', '-Wshadow', '-Wconversion', '-Wnewline-eof', '-Wpadded',
+ '-Wmissing-prototypes', '-Wstrict-aliasing=2', '-Wstrict-overflow=4',
+ '-nostdinc++',
+ ],
+ 'link_settings': {
+ 'cflags!': [
+ '-fno-exceptions',
+ ],
+ },
+ 'all_dependent_settings': {
bradn 2013/11/22 17:49:17 So if you use all_dependent_settings here you shou
+ 'libraries': [
+ '-lcxx',
bradn 2013/11/22 17:49:17 You shouldn't need to do this as you're building t
+ '-lcxxabi',
+ ],
+ 'include_dirs': [
+ 'include',
Alexander Potapenko 2013/11/19 15:28:08 Must be relative to <(DEPTH)
bradn 2013/11/22 17:49:17 In a gyp file this should be ok without <(DEPTH) a
+ ],
+ 'ldflags': [
+ '-L<(PRODUCT_DIR)/lib',
+ ],
+ },
+ 'cflags_cc!': [
+ '-fno-rtti',
+ ],
+ 'ldflags': [
+ '-o libc++.so.1.0',
Alexander Potapenko 2013/11/19 15:28:08 Why do you need this one?
+ '-shared',
Alexander Potapenko 2013/11/19 15:28:08 -shared should be implied by the target type.
+ '-nodefaultlibs',
+ '-Wl,-soname,libc++.so.1',
+ '-L<(PRODUCT_DIR)/lib',
+ ],
+ 'libraries': [
+ '-lrt',
+ '-lc',
+ '-lcxxabi',
Alexander Potapenko 2013/11/19 15:28:08 Provided that you have libcxxabi in the dependenci
+ ],
+ },
+ ]
+}
Property changes on: third_party/libcxx/libcxx.gyp
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698