| # Copyright 2019 The Fuchsia Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| executable("mutex_pi_exerciser") { | |
| if (is_fuchsia) { | |
| configs += [ | |
| "//build/unification/config:zircon-migrated", | |
| "//build/config:all_source", | |
| ] | |
| } | |
| if (is_fuchsia) { | |
| fdio_config = [ "//build/config/fuchsia:fdio_config" ] | |
| if (configs + fdio_config - fdio_config != configs) { | |
| configs -= fdio_config | |
| } | |
| } | |
| sources = [ | |
| "event.cc", | |
| "main.cc", | |
| "thread.cc", | |
| "tracer.cc", | |
| ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.scheduler:fuchsia.scheduler_c", | |
| "//sdk/lib/fdio", | |
| "//zircon/public/lib/fbl", | |
| "//zircon/public/lib/sync", | |
| "//zircon/public/lib/zircon-internal", | |
| "//zircon/public/lib/zx", | |
| "//zircon/system/ulib/async-loop:async-loop-cpp", | |
| "//zircon/system/ulib/async-loop:async-loop-default", | |
| "//zircon/system/ulib/trace", | |
| "//zircon/system/ulib/trace-engine", | |
| "//zircon/system/ulib/trace-provider:trace-provider-with-fdio", | |
| ] | |
| } |