summaryrefslogtreecommitdiffstats
path: root/tools/cygprofile
diff options
context:
space:
mode:
authorpkotwicz <pkotwicz@chromium.org>2015-09-29 16:09:33 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-29 23:10:15 +0000
commitfd51070d151eff452ecca7c57a38f733ac100342 (patch)
tree62d89d7ca05af524003631c74defa8bfdfdae02a /tools/cygprofile
parent6d833bcddd08729121d3aa35fc2927a0ceeeb851 (diff)
downloadchromium_src-fd51070d151eff452ecca7c57a38f733ac100342.zip
chromium_src-fd51070d151eff452ecca7c57a38f733ac100342.tar.gz
chromium_src-fd51070d151eff452ecca7c57a38f733ac100342.tar.bz2
Port order_profiling GYP flag to GN part 2/2
BUG=531278 TEST=None TBR=agrieve,brettw Review URL: https://codereview.chromium.org/1379713002 Cr-Commit-Position: refs/heads/master@{#351429}
Diffstat (limited to 'tools/cygprofile')
-rw-r--r--tools/cygprofile/BUILD.gn39
1 files changed, 39 insertions, 0 deletions
diff --git a/tools/cygprofile/BUILD.gn b/tools/cygprofile/BUILD.gn
new file mode 100644
index 0000000..c846546
--- /dev/null
+++ b/tools/cygprofile/BUILD.gn
@@ -0,0 +1,39 @@
+# 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.
+
+# GYP: //tools/cygprofile/cygprofile.gyp:cygprofile
+static_library("cygprofile") {
+ sources = [
+ "cygprofile.cc",
+ "cygprofile.h",
+ ]
+
+ configs -= [ "//build/config/android:default_cygprofile_instrumentation" ]
+ configs += [ "//build/config/android:no_cygprofile_instrumentation" ]
+
+ deps = [
+ # This adds uninstrumented symbols to the static library from base.
+ # These symbols are likely *not* to be used because there are many other
+ # duplicates in other objects/libraries.
+ "//base",
+ ]
+}
+
+# GYP: //tools/cygprofile/cygprofile.gyp:cygprofile_unittests
+executable("cygprofile_unittests") {
+ testonly = true
+
+ sources = [
+ "cygprofile_unittest.cc",
+ ]
+
+ configs -= [ "//build/config/android:default_cygprofile_instrumentation" ]
+ configs += [ "//build/config/android:no_cygprofile_instrumentation" ]
+
+ deps = [
+ ":cygprofile",
+ "//base",
+ "//testing/gtest",
+ ]
+}