################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# runtime/src/iree/hal/local/plugins/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()

if(IREE_HAL_EXECUTABLE_PLUGIN_EMBEDDED_ELF)

iree_cc_library(
  NAME
    embedded_elf_plugin
  HDRS
    "embedded_elf_plugin.h"
  SRCS
    "embedded_elf_plugin.c"
  DEPS
    iree::base
    iree::base::internal::file_io
    iree::hal
    iree::hal::local::elf::elf_module
    iree::hal::local::executable_plugin_manager
  DEFINES
    "IREE_HAVE_HAL_EXECUTABLE_EMBEDDED_ELF_PLUGIN=1"
  PUBLIC
)

endif()

iree_cc_library(
  NAME
    static_plugin
  HDRS
    "static_plugin.h"
  SRCS
    "static_plugin.c"
  DEPS
    iree::base
    iree::hal
    iree::hal::local::executable_plugin_manager
  DEFINES
    "IREE_HAVE_HAL_EXECUTABLE_STATIC_PLUGIN=1"
  PUBLIC
)

if(IREE_HAL_EXECUTABLE_PLUGIN_SYSTEM_LIBRARY)

iree_cc_library(
  NAME
    system_library_plugin
  HDRS
    "system_library_plugin.h"
  SRCS
    "system_library_plugin.c"
  DEPS
    iree::base
    iree::base::internal::dynamic_library
    iree::hal
    iree::hal::local::executable_plugin_manager
  DEFINES
    "IREE_HAVE_HAL_EXECUTABLE_SYSTEM_LIBRARY_PLUGIN=1"
  PUBLIC
)

endif()

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
