| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//testing/test.gni") | |
| 6 | |
| 7 shared_library("heap_profiler") { | |
| 8 sources = [ | |
| 9 "heap_profiler_hooks_android.c", | |
| 10 ] | |
| 11 public_deps = [ | |
| 12 ":heap_profiler_core", | |
| 13 ] | |
| 14 } | |
| 15 | |
| 16 source_set("heap_profiler_core") { | |
| 17 sources = [ | |
| 18 "heap_profiler.c", | |
| 19 "heap_profiler.h", | |
| 20 ] | |
| 21 | |
| 22 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 23 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 24 } | |
| 25 | |
| 26 executable("heap_dump") { | |
| 27 sources = [ | |
| 28 "heap_dump.c", | |
| 29 ] | |
| 30 | |
| 31 deps = [ | |
| 32 ":heap_profiler_core", | |
| 33 ] | |
| 34 | |
| 35 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 36 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 37 } | |
| 38 | |
| 39 test("heap_profiler_unittests") { | |
| 40 sources = [ | |
| 41 "heap_profiler_unittest.cc", | |
| 42 ] | |
| 43 deps = [ | |
| 44 ":heap_profiler_core", | |
| 45 "//testing/gtest", | |
| 46 "//testing/gtest:gtest_main", | |
| 47 ] | |
| 48 } | |
| 49 | |
| 50 executable("heap_profiler_integrationtest") { | |
| 51 testonly = true | |
| 52 | |
| 53 sources = [ | |
| 54 "heap_profiler_integrationtest.cc", | |
| 55 ] | |
| 56 deps = [ | |
| 57 ":heap_profiler", | |
| 58 "//testing/gtest", | |
| 59 ] | |
| 60 | |
| 61 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 62 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 63 } | |
| OLD | NEW |