BUILD.gn 1.0 KB

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