################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# runtime/src/iree/hal/local/BUILD.bazel                                       #
#                                                                              #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary   #
# CMake-only content.                                                          #
#                                                                              #
# To disable autogeneration for this file entirely, delete this header.        #
################################################################################

iree_add_all_subdirs()

iree_cc_library(
  NAME
    executable_environment
  HDRS
    "executable_environment.h"
  SRCS
    "executable_environment.c"
  DEPS
    ::executable_library
    iree::base
    iree::base::internal::cpu
    iree::hal
  PUBLIC
)

iree_cc_library(
  NAME
    executable_library
  HDRS
    "executable_library.h"
  DEPS

  PUBLIC
)

iree_cc_binary_benchmark(
  NAME
    executable_library_benchmark
  SRCS
    "executable_library_benchmark.c"
  DEPS
    ::executable_environment
    ::executable_library
    ::local
    iree::base
    iree::base::internal::file_io
    iree::base::internal::flags
    iree::hal
    iree::hal::local::loaders::registration
    iree::hal::local::plugins::registration
    iree::testing::benchmark
  TESTONLY
)

iree_cc_test(
  NAME
    executable_library_test
  SRCS
    "executable_library_demo.c"
    "executable_library_demo.h"
    "executable_library_test.c"
  DEPS
    ::executable_environment
    ::executable_library
    iree::base
    iree::base::internal::cpu
)

iree_cc_library(
  NAME
    executable_library_util
  HDRS
    "executable_library_util.h"
  SRCS
    "executable_library_util.c"
  DEPS
    ::executable_environment
    ::executable_library
    ::executable_loader
    iree::base
    iree::base::internal
    iree::hal
  PUBLIC
)

iree_cc_library(
  NAME
    executable_loader
  HDRS
    "executable_loader.h"
    "local_executable.h"
  SRCS
    "executable_loader.c"
    "local_executable.c"
  DEPS
    ::executable_environment
    ::executable_library
    iree::base
    iree::base::internal
    iree::hal
  PUBLIC
)

iree_cc_library(
  NAME
    executable_plugin
  HDRS
    "executable_plugin.h"
  DEPS

  PUBLIC
)

iree_cc_library(
  NAME
    executable_plugin_manager
  HDRS
    "executable_plugin_manager.h"
  SRCS
    "executable_plugin_manager.c"
  DEPS
    ::executable_loader
    ::executable_plugin
    iree::base
    iree::base::internal
    iree::base::internal::synchronization
    iree::hal
  PUBLIC
)

iree_cc_library(
  NAME
    local
  HDRS
    "executable_loader.h"
    "inline_command_buffer.h"
    "local_executable.h"
    "local_executable_cache.h"
  SRCS
    "inline_command_buffer.c"
    "local_executable_cache.c"
  DEPS
    ::executable_environment
    ::executable_library
    iree::base
    iree::base::internal
    iree::base::internal::cpu
    iree::base::internal::fpu_state
    iree::hal
  PUBLIC
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
