| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 config("config") { | 5 config("config") { |
| 6 include_dirs = [ | 6 include_dirs = [ |
| 7 "trunk/include", | 7 "trunk/include", |
| 8 "../libc++abi/trunk/include", | 8 "../libc++abi/trunk/include", |
| 9 ] | 9 ] |
| 10 cflags = [ | 10 cflags = [ |
| 11 "-fPIC", | 11 "-fPIC", |
| 12 "-fstrict-aliasing", | 12 "-fstrict-aliasing", |
| 13 "-nostdinc++", | 13 "-nostdinc++", |
| 14 "-pthread", | 14 "-pthread", |
| 15 "-std=c++11", | 15 "-std=c++11", |
| 16 "-DLIBCXX_BUILDING_LIBCXXABI", | 16 "-DLIBCXX_BUILDING_LIBCXXABI", |
| 17 ] | 17 ] |
| 18 } | 18 } |
| 19 | 19 |
| 20 shared_library("libc++") { | 20 shared_library("libc++") { |
| 21 sources = [ | 21 sources = [ |
| 22 "trunk/src/algorithm.cpp", | 22 "trunk/src/algorithm.cpp", |
| 23 "trunk/src/any.cpp", |
| 23 "trunk/src/bind.cpp", | 24 "trunk/src/bind.cpp", |
| 24 "trunk/src/chrono.cpp", | 25 "trunk/src/chrono.cpp", |
| 25 "trunk/src/condition_variable.cpp", | 26 "trunk/src/condition_variable.cpp", |
| 26 "trunk/src/debug.cpp", | 27 "trunk/src/debug.cpp", |
| 27 "trunk/src/exception.cpp", | 28 "trunk/src/exception.cpp", |
| 28 "trunk/src/future.cpp", | 29 "trunk/src/future.cpp", |
| 29 "trunk/src/hash.cpp", | 30 "trunk/src/hash.cpp", |
| 30 "trunk/src/ios.cpp", | 31 "trunk/src/ios.cpp", |
| 31 "trunk/src/iostream.cpp", | 32 "trunk/src/iostream.cpp", |
| 32 "trunk/src/locale.cpp", | 33 "trunk/src/locale.cpp", |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 "-stdlib=libc++", | 94 "-stdlib=libc++", |
| 94 | 95 |
| 95 # Normally the generator takes care of RPATH. Our case is special because | 96 # Normally the generator takes care of RPATH. Our case is special because |
| 96 # the generator is unaware of the libc++.so dependency. Note that setting | 97 # the generator is unaware of the libc++.so dependency. Note that setting |
| 97 # RPATH here is a potential security issue. See the following for another | 98 # RPATH here is a potential security issue. See the following for another |
| 98 # example of this issue: https://code.google.com/p/gyp/issues/detail?id=315 | 99 # example of this issue: https://code.google.com/p/gyp/issues/detail?id=315 |
| 99 "-Wl,-R,\$ORIGIN/", | 100 "-Wl,-R,\$ORIGIN/", |
| 100 ] | 101 ] |
| 101 lib_dirs = [ root_build_dir ] | 102 lib_dirs = [ root_build_dir ] |
| 102 } | 103 } |
| OLD | NEW |