| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 import("//chrome/common/features.gni") | 5 import("//chrome/common/features.gni") |
| 6 | 6 |
| 7 if (enable_oop_heap_profiling) { | 7 if (enable_oop_heap_profiling) { |
| 8 static_library("profiling") { | 8 static_library("profiling") { |
| 9 sources = [ | 9 sources = [ |
| 10 "profiling_globals.cc", | 10 "memlog_sender_pipe.h", |
| 11 "profiling_globals.h", | 11 "memlog_sender_pipe_win.cc", |
| 12 "profiling_main.cc", | 12 "memlog_sender_pipe_win.h", |
| 13 "profiling_main.h", | 13 "memlog_stream.cc", |
| 14 "memlog_stream.h", |
| 14 ] | 15 ] |
| 15 | 16 |
| 16 deps = [ | 17 deps = [ |
| 17 "//base", | 18 "//base", |
| 18 "//chrome/common", | 19 "//base:debugging_flags", |
| 19 "//mojo/edk/system", | 20 "//chrome/common:constants", |
| 20 ] | 21 ] |
| 21 } | 22 } |
| 22 } else { | 23 } else { |
| 23 # Dummy target so this can be unconditionally depended on and header checking | 24 # Dummy group so this target can be unconditionally depended on. |
| 24 # will work. | 25 group("profiling") { |
| 25 source_set("profiling") { | |
| 26 sources = [ | |
| 27 "profiling_main.h", | |
| 28 ] | |
| 29 } | 26 } |
| 30 } | 27 } |
| OLD | NEW |