################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# runtime/src/iree/tooling/profile/att/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_DRIVER_AMDGPU)

iree_cc_library(
  NAME
    util
  HDRS
    "util.h"
  SRCS
    "util.c"
  DEPS
    iree::base
  PUBLIC
)

iree_cc_library(
  NAME
    bundle
  HDRS
    "bundle.h"
  SRCS
    "bundle.c"
  DEPS
    ::util
    iree::io::file_handle
    iree::tooling::profile::common
    iree::tooling::profile::reader
  PUBLIC
)

iree_cc_library(
  NAME
    rocm
  HDRS
    "rocm.h"
  SRCS
    "rocm.c"
  DEPS
    ::util
    iree::base
    iree::base::internal::dynamic_library
    iree::base::internal::path
  PUBLIC
)

iree_cc_library(
  NAME
    rocprofiler
  HDRS
    "rocprofiler.h"
  SRCS
    "rocprofiler.c"
  DEPS
    ::rocm
    iree::base
    iree::base::internal::dynamic_library
  PUBLIC
)

iree_cc_library(
  NAME
    comgr
  HDRS
    "comgr.h"
  SRCS
    "comgr.c"
  DEPS
    ::rocm
    iree::base
    iree::base::internal::dynamic_library
  PUBLIC
)

iree_cc_library(
  NAME
    disassembly
  HDRS
    "disassembly.h"
  SRCS
    "disassembly.c"
  DEPS
    ::bundle
    ::comgr
    ::util
    iree::base
  PUBLIC
)

iree_cc_library(
  NAME
    decode
  HDRS
    "decode.h"
  SRCS
    "decode.c"
  DEPS
    ::bundle
    ::comgr
    ::disassembly
    ::rocprofiler
    ::util
    iree::base
  PUBLIC
)

iree_cc_library(
  NAME
    att
  HDRS
    "att.h"
  SRCS
    "att.c"
  DEPS
    ::bundle
    ::comgr
    ::decode
    ::rocm
    ::rocprofiler
    iree::base
    iree::tooling::profile::commands
    iree::tooling::profile::common
  PUBLIC
)

iree_cc_test(
  NAME
    bundle_test
  SRCS
    "bundle_test.cc"
  DEPS
    ::bundle
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
)

iree_cc_test(
  NAME
    rocm_test
  SRCS
    "rocm_test.cc"
  DEPS
    ::rocm
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
)

endif()

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
