1# Copyright 2018 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//build/config/android/config.gni") 6 7if (use_order_profiling && (target_cpu == "arm" || target_cpu == "arm64" || 8 target_cpu == "x86" || target_cpu == "x64")) { 9 static_library("orderfile_instrumentation") { 10 sources = [ 11 "orderfile_instrumentation.cc", 12 "orderfile_instrumentation.h", 13 ] 14 15 deps = [ "//base" ] 16 } 17 18 executable("orderfile_instrumentation_perftest") { 19 testonly = true 20 sources = [ "orderfile_instrumentation_perftest.cc" ] 21 deps = [ 22 ":orderfile_instrumentation", 23 "//base", 24 "//testing/gtest", 25 "//testing/perf", 26 ] 27 configs -= [ "//build/config/android:default_orderfile_instrumentation" ] 28 } 29} 30