| OLD | NEW |
| 1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import("tcmalloc_sources.gni") |
| 6 |
| 5 config("internal_config") { | 7 config("internal_config") { |
| 6 visibility = [ ":*" ] # Only targets in this file can depend on this. | 8 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 7 cflags = [ | 9 cflags = [ |
| 8 "-Wall", | 10 "-Wall", |
| 9 "-Wextra", | 11 "-Wextra", |
| 10 "-Wno-missing-field-initializers", | 12 "-Wno-missing-field-initializers", |
| 11 "-Wno-sign-compare", | 13 "-Wno-sign-compare", |
| 12 "-Wno-type-limits", | 14 "-Wno-type-limits", |
| 13 "-Wno-unused-result", | 15 "-Wno-unused-result", |
| 14 "-Wno-unused-parameter", | 16 "-Wno-unused-parameter", |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 "gperftools/src/base", | 57 "gperftools/src/base", |
| 56 "gperftools/src", | 58 "gperftools/src", |
| 57 ] | 59 ] |
| 58 | 60 |
| 59 sources = [ | 61 sources = [ |
| 60 "gperftools/src/base/dynamic_annotations.c", | 62 "gperftools/src/base/dynamic_annotations.c", |
| 61 "gperftools/src/base/dynamic_annotations.h", | 63 "gperftools/src/base/dynamic_annotations.h", |
| 62 ] | 64 ] |
| 63 } | 65 } |
| 64 | 66 |
| 65 tcmalloc_sources_list = exec_script("../../tools/gypi_to_gn.py", | |
| 66 [ rebase_path("tcmalloc_sources.gypi") ], | |
| 67 "scope", | |
| 68 [ "tcmalloc_sources.gypi" ]) | |
| 69 | |
| 70 source_set("tcmalloc") { | 67 source_set("tcmalloc") { |
| 71 configs -= [ "//build/config/compiler:chromium_code" ] | 68 configs -= [ "//build/config/compiler:chromium_code" ] |
| 72 configs += [ ":internal_config" ] | 69 configs += [ ":internal_config" ] |
| 73 | 70 |
| 74 public_configs = [ ":link_config" ] | 71 public_configs = [ ":link_config" ] |
| 75 | 72 |
| 76 deps = [ | 73 deps = [ |
| 77 ":dynamic_annotations", | 74 ":dynamic_annotations", |
| 78 ] | 75 ] |
| 79 | 76 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 # Not using the cpuprofiler | 118 # Not using the cpuprofiler |
| 122 "gperftools/src/base/thread_lister.c", | 119 "gperftools/src/base/thread_lister.c", |
| 123 "gperftools/src/base/thread_lister.h", | 120 "gperftools/src/base/thread_lister.h", |
| 124 "gperftools/src/profile-handler.cc", | 121 "gperftools/src/profile-handler.cc", |
| 125 "gperftools/src/profile-handler.h", | 122 "gperftools/src/profile-handler.h", |
| 126 "gperftools/src/profiledata.cc", | 123 "gperftools/src/profiledata.cc", |
| 127 "gperftools/src/profiledata.h", | 124 "gperftools/src/profiledata.h", |
| 128 "gperftools/src/profiler.cc", | 125 "gperftools/src/profiler.cc", |
| 129 ]) | 126 ]) |
| 130 | 127 |
| 131 sources = tcmalloc_sources_list.sources | 128 sources = tcmalloc_sources |
| 132 } | 129 } |
| OLD | NEW |