Chromium Code Reviews| 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 deps = [ | |
| 12 ":heap_profiler_core", | |
| 13 ] | |
| 14 } | |
| 15 | |
| 16 static_library("heap_profiler_core") { | |
|
agrieve
2015/09/28 14:58:54
nit: use source_set if possible
| |
| 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 | |
| 32 test("heap_profiler_unittests") { | |
| 33 sources = [ | |
| 34 "heap_profiler_unittest.cc", | |
| 35 ] | |
| 36 deps = [ | |
| 37 ":heap_profiler_core", | |
| 38 "//testing/gtest", | |
| 39 "//testing/gtest:gtest_main", | |
| 40 ] | |
| 41 } | |
| 42 | |
| 43 executable("heap_integrationtest") { | |
| 44 testonly = true | |
| 45 sources = [ | |
| 46 "heap_profiler_integrationtest.cc", | |
| 47 ] | |
| 48 deps = [ | |
| 49 "//testing/gtest", | |
| 50 ] | |
| 51 | |
| 52 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 53 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 54 } | |
| OLD | NEW |