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 && 8 (target_cpu == "arm" || target_cpu == "arm64" || target_cpu == "x86")) { 9 static_library("orderfile_instrumentation") { 10 sources = [ "orderfile_instrumentation.h" ] 11 12 if (use_call_graph) { 13 sources += [ "orderfile_call_graph_instrumentation.cc" ] 14 } else { 15 sources += [ "orderfile_instrumentation.cc" ] 16 } 17 18 deps = [ "//base" ] 19 } 20 21 executable("orderfile_instrumentation_perftest") { 22 testonly = true 23 if (use_call_graph) { 24 sources = [ "orderfile_call_graph_instrumentation_perftest.cc" ] 25 } else { 26 sources = [ "orderfile_instrumentation_perftest.cc" ] 27 } 28 deps = [ 29 ":orderfile_instrumentation", 30 "//base", 31 "//testing/gtest", 32 "//testing/perf", 33 ] 34 configs -= [ "//build/config/android:default_orderfile_instrumentation" ] 35 } 36} 37