blob: f4f63e537dd1f30a2d831950fc2c8eee9a56a676 [file] [edit]
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
# compiler/src/iree/compiler/PluginAPI/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_genrule(
NAME
PluginABIHash_h__generate
SRCS
"${PROJECT_SOURCE_DIR}/build_tools/scripts/gen_plugin_abi_hash.py"
"${PROJECT_SOURCE_DIR}/compiler/src/iree/compiler/Pipelines/Options.h"
"${PROJECT_SOURCE_DIR}/compiler/src/iree/compiler/Utils/OptionUtils.h"
"Client.h"
"PluginEntryPoint.h"
OUTS
PluginABIHash.h
CMD
"python3 $(rootpath //build_tools/scripts:gen_plugin_abi_hash.py) --input $(rootpath Client.h) --input $(rootpath PluginEntryPoint.h) --input $(rootpath //compiler/src/iree/compiler/Pipelines:Options.h) --input $(rootpath //compiler/src/iree/compiler/Utils:OptionUtils.h) --out $(execpath PluginABIHash.h)"
)
iree_cc_library(
NAME
PluginABIHash
HDRS
"PluginABIHash.h"
DEPS
PUBLIC
)
iree_cc_library(
NAME
PluginEntryPoint
HDRS
"PluginEntryPoint.h"
DEPS
::PluginABIHash
PUBLIC
)
iree_cc_library(
NAME
PluginAPI
HDRS
"Client.h"
SRCS
"Client.cpp"
DEPS
::PluginEntryPoint
LLVMSupport
iree::compiler::Pipelines::Options
iree::compiler::Utils
PUBLIC
)
iree_cc_library(
NAME
PluginManager
HDRS
"PluginManager.h"
SRCS
"PluginManager.cpp"
DEPS
::PluginAPI
::PluginEntryPoint
LLVMSupport
MLIRIR
iree::compiler::PluginAPI::Config::StaticLinkedPlugins
iree::compiler::Utils
PUBLIC
)
### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
# Order header generation before consumers in child directories compile.
add_dependencies(iree_compiler_PluginAPI_PluginABIHash
PluginABIHash_h__generate)