chromium/base/android/orderfile/BUILD.gn

# Copyright 2018 The Chromium Authors
# 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" || target_cpu == "arm64" ||
                            target_cpu == "x86" || target_cpu == "x64")) {
  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" ]
  }
}