| 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 "address.h", |
| 11 "allocation_tracker.cc", |
| 12 "allocation_tracker.h", |
| 13 "memlog_connection_manager.cc", |
| 14 "memlog_connection_manager.h", |
| 15 "memlog_receiver.h", |
| 16 "memlog_receiver_pipe_server.h", |
| 10 "memlog_receiver_pipe_server_win.cc", | 17 "memlog_receiver_pipe_server_win.cc", |
| 11 "memlog_receiver_pipe_server_win.h", | 18 "memlog_receiver_pipe_server_win.h", |
| 12 "memlog_receiver_pipe_win.cc", | 19 "memlog_receiver_pipe_win.cc", |
| 13 "memlog_receiver_pipe_win.h", | 20 "memlog_receiver_pipe_win.h", |
| 21 "memlog_stream_parser.cc", |
| 22 "memlog_stream_parser.h", |
| 14 "memlog_stream_receiver.h", | 23 "memlog_stream_receiver.h", |
| 15 "profiling_globals.cc", | 24 "profiling_globals.cc", |
| 16 "profiling_globals.h", | 25 "profiling_globals.h", |
| 17 "profiling_main.cc", | 26 "profiling_main.cc", |
| 18 "profiling_main.h", | 27 "profiling_main.h", |
| 28 "stack.cc", |
| 29 "stack.h", |
| 30 "stack_storage.cc", |
| 31 "stack_storage.h", |
| 19 ] | 32 ] |
| 20 | 33 |
| 21 deps = [ | 34 deps = [ |
| 22 "//base", | 35 "//base", |
| 23 "//chrome/common", | 36 "//chrome/common", |
| 24 "//mojo/edk/system", | 37 "//mojo/edk/system", |
| 25 ] | 38 ] |
| 26 } | 39 } |
| 27 } else { | 40 } else { |
| 28 # Dummy target so this can be unconditionally depended on and header checking | 41 # Dummy target so this can be unconditionally depended on and header checking |
| 29 # will work. | 42 # will work. |
| 30 source_set("profiling") { | 43 source_set("profiling") { |
| 31 sources = [ | 44 sources = [ |
| 32 "profiling_main.h", | 45 "profiling_main.h", |
| 33 ] | 46 ] |
| 34 } | 47 } |
| 35 } | 48 } |
| OLD | NEW |