Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: tools/android/heap_profiler/BUILD.gn

Issue 1369153002: Port most of the remainder of //tools/android from GYP to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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" ]
+}

Powered by Google App Engine
This is Rietveld 408576698