Chromium Code Reviews| Index: third_party/tcmalloc/BUILD.gn |
| diff --git a/third_party/tcmalloc/BUILD.gn b/third_party/tcmalloc/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5fdd765cfa80167e3eecc2898684587a5b784d6f |
| --- /dev/null |
| +++ b/third_party/tcmalloc/BUILD.gn |
| @@ -0,0 +1,27 @@ |
| +# Copyright (c) 2017 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. |
| + |
| +import("//build/config/compiler/compiler.gni") |
| + |
| +executable("addr2line-pdb") { |
|
erikchen
2017/03/01 22:42:51
Code search seems to show that most other third_pa
awong
2017/03/01 22:57:00
Done.
Infact, reduced it even further.
FYI, orig
|
| + tcmalloc_dir = "//third_party/tcmalloc/chromium" |
| + |
| + # Don't check tcmalloc's includes. These files include various files like |
| + # base/foo.h and they actually refer to tcmalloc's forked copy of base |
| + # rather than the regular one, which confuses the header checker. |
| + check_includes = false |
| + |
| + sources = [ |
| + "$tcmalloc_dir/src/windows/addr2line-pdb.c", |
| + ] |
| + |
| + include_dirs = [ |
| + ".", |
| + "$tcmalloc_dir/src/base", |
| + "$tcmalloc_dir/src", |
| + ] |
| + |
| + configs -= [ "//build/config/compiler:chromium_code" ] |
| + configs += [ "//build/config/compiler:no_chromium_code" ] |
| +} |