summaryrefslogtreecommitdiff
path: root/base/android/orderfile/BUILD.gn
blob: ff0bfff147f524a3631ac665e5c90bd4b9cf2422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 2018 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("//build/config/android/config.gni")

if (use_order_profiling && target_cpu == "arm") {
  static_library("orderfile_instrumentation") {
    sources = [
      "orderfile_instrumentation.cc",
      "orderfile_instrumentation.h",
    ]
    deps = [
      "//base",
    ]
  }

  executable("orderfile_instrumentation_perftest") {
    testonly = true

    sources = [
      "orderfile_instrumentation_perftest.cc",
    ]

    deps = [
      ":orderfile_instrumentation",
      "//base",
      "//testing/gtest",
      "//testing/perf",
    ]

    configs -= [ "//build/config/android:default_orderfile_instrumentation" ]
  }
}