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..e906e60a4c6962eba48125cd78de3b57604b35b1 |
| --- /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") { |
|
Yaron
2015/09/28 21:35:25
Do you need to annotate the corresponding gyp file
pkotwicz
2015/09/29 14:24:52
I asked agrieve@ and he is not aware of any script
Dirk Pranke
2015/09/29 22:41:27
Correct. There is no need to annotate something to
|
| + sources = [ |
| + "heap_profiler_hooks_android.c", |
| + ] |
| + deps = [ |
| + ":heap_profiler_core", |
| + ] |
| +} |
| + |
| +source_set("heap_profiler_core") { |
| + 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") { |
|
Yaron
2015/09/28 21:35:25
Are executables automatically stripped on android?
pkotwicz
2015/09/29 14:10:49
It looks like it. heap_integrationtest is present
|
| + testonly = true |
| + sources = [ |
| + "heap_profiler_integrationtest.cc", |
| + ] |
| + deps = [ |
| + "//testing/gtest", |
| + ] |
| + |
| + configs -= [ "//build/config/compiler:chromium_code" ] |
| + configs += [ "//build/config/compiler:no_chromium_code" ] |
| +} |