Chromium Code Reviews| Index: tools/android/heap_profiler/BUILD.gn |
| diff --git a/tools/android/heap_profiler/BUILD.gn b/tools/android/heap_profiler/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cba09581d0bbea4a8a847fc73016e327e19306b2 |
| --- /dev/null |
| +++ b/tools/android/heap_profiler/BUILD.gn |
| @@ -0,0 +1,54 @@ |
| +# Copyright 2015 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import("//testing/test.gni") |
| + |
| +shared_library("heap_profiler") { |
| + sources = [ |
| + "heap_profiler_hooks_android.c", |
| + ] |
| + deps = [ |
| + ":heap_profiler_core", |
| + ] |
| +} |
| + |
| +static_library("heap_profiler_core") { |
|
agrieve
2015/09/28 14:58:54
nit: use source_set if possible
|
| + sources = [ |
| + "heap_profiler.c", |
| + "heap_profiler.h", |
| + ] |
| + |
| + configs -= [ "//build/config/compiler:chromium_code" ] |
| + configs += [ "//build/config/compiler:no_chromium_code" ] |
| +} |
| + |
| +executable("heap_dump") { |
| + sources = [ |
| + "heap_dump.c", |
| + ] |
| +} |
| + |
| +test("heap_profiler_unittests") { |
| + sources = [ |
| + "heap_profiler_unittest.cc", |
| + ] |
| + deps = [ |
| + ":heap_profiler_core", |
| + "//testing/gtest", |
| + "//testing/gtest:gtest_main", |
| + ] |
| +} |
| + |
| +executable("heap_integrationtest") { |
| + testonly = true |
| + sources = [ |
| + "heap_profiler_integrationtest.cc", |
| + ] |
| + deps = [ |
| + "//testing/gtest", |
| + ] |
| + |
| + configs -= [ "//build/config/compiler:chromium_code" ] |
| + configs += [ "//build/config/compiler:no_chromium_code" ] |
| +} |