################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from           #
# runtime/src/iree/tooling/profile/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
    common
  HDRS
    "common.h"
  SRCS
    "common.c"
  DEPS
    iree::base
    iree::hal::utils::profile_file
  PUBLIC
)

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

iree_cc_library(
  NAME
    model
  HDRS
    "model.h"
  SRCS
    "model.c"
  DEPS
    ::common
    ::reader
  PUBLIC
)

iree_cc_library(
  NAME
    queue_query
  HDRS
    "queue_query.h"
  SRCS
    "queue_query.c"
  DEPS
    ::model
    ::reader
  PUBLIC
)

iree_cc_library(
  NAME
    dispatch
  HDRS
    "dispatch.h"
  SRCS
    "dispatch.c"
  DEPS
    ::common
    ::model
    ::queue_query
    ::reader
  PUBLIC
)

iree_cc_library(
  NAME
    counter
  HDRS
    "counter.h"
  SRCS
    "counter.c"
  DEPS
    ::common
    ::model
    ::reader
  PUBLIC
)

iree_cc_library(
  NAME
    memory
  HDRS
    "memory.h"
  SRCS
    "memory.c"
  DEPS
    ::common
    ::model
    ::reader
  PUBLIC
)

iree_cc_library(
  NAME
    summary
  HDRS
    "summary.h"
  SRCS
    "summary.c"
  DEPS
    ::common
    ::model
    ::reader
  PUBLIC
)

iree_cc_library(
  NAME
    statistics
  HDRS
    "statistics.h"
  SRCS
    "statistics.c"
  DEPS
    ::common
    ::reader
    iree::base
    iree::hal
    iree::hal::utils::statistics_sink
  PUBLIC
)

iree_cc_library(
  NAME
    cat
  HDRS
    "cat.h"
  SRCS
    "cat.c"
  DEPS
    ::common
    ::reader
  PUBLIC
)

iree_cc_library(
  NAME
    projection
  HDRS
    "projection.h"
  SRCS
    "projection.c"
  DEPS
    ::dispatch
    ::reader
  PUBLIC
)

iree_cc_library(
  NAME
    export
  HDRS
    "export.h"
  SRCS
    "export.c"
  DEPS
    ::common
    ::memory
    ::model
    ::reader
    iree::hal
  PUBLIC
)

iree_cc_library(
  NAME
    explain
  HDRS
    "explain.h"
  SRCS
    "explain.c"
  DEPS
    ::common
    ::dispatch
    ::memory
    ::reader
    ::summary
  PUBLIC
)

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

iree_cc_library(
  NAME
    commands
  HDRS
    "commands.h"
  SRCS
    "commands.c"
  DEPS
    ::cat
    ::counter
    ::explain
    ::export
    ::memory
    ::projection
    ::statistics
    ::summary
    iree::base
  PUBLIC
)

iree_cc_library(
  NAME
    profile
  DEPS
    ::cat
    ::commands
    ::common
    ::counter
    ::dispatch
    ::explain
    ::export
    ::help
    ::memory
    ::model
    ::projection
    ::queue_query
    ::reader
    ::statistics
    ::summary
  PUBLIC
)

iree_cc_test(
  NAME
    common_test
  SRCS
    "common_test.cc"
  DEPS
    ::common
    iree::testing::gtest
    iree::testing::gtest_main
)

iree_cc_test(
  NAME
    reader_test
  SRCS
    "reader_test.cc"
  DEPS
    ::reader
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
)

iree_cc_test(
  NAME
    model_test
  SRCS
    "model_test.cc"
  DEPS
    ::model
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
)

iree_cc_test(
  NAME
    queue_query_test
  SRCS
    "queue_query_test.cc"
  DEPS
    ::model
    ::queue_query
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
)

iree_cc_test(
  NAME
    summary_test
  SRCS
    "summary_test.cc"
  DEPS
    ::summary
    iree::base
    iree::hal
    iree::testing::gtest
    iree::testing::gtest_main
)

iree_cc_test(
  NAME
    counter_test
  SRCS
    "counter_test.cc"
  DEPS
    ::counter
    ::model
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
)

iree_cc_test(
  NAME
    memory_test
  SRCS
    "memory_test.cc"
  DEPS
    ::memory
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
)

iree_cc_test(
  NAME
    commands_test
  SRCS
    "commands_test.cc"
  DEPS
    ::commands
    iree::base
    iree::testing::gtest
    iree::testing::gtest_main
)

iree_cc_binary(
  NAME
    test_fixture_generator
  SRCS
    "test_fixture_generator.c"
  DEPS
    iree::base
    iree::hal
    iree::hal::utils::profile_file
    iree::io::file_handle
  TESTONLY
)

iree_local_py_test(
  NAME
    render_test
  SRC
    "render_test.py"
  PACKAGE_DIRS
    "${CMAKE_CURRENT_SOURCE_DIR}"
)

iree_local_py_test(
  NAME
    cli_test
  SRC
    "cli_test.py"
  ARGS
    "--fixture-generator=$<TARGET_FILE:iree_tooling_profile_test_fixture_generator>"
    "--iree-profile=$<TARGET_FILE:iree-profile>"
  LABELS
    "noriscv"
  PACKAGE_DIRS
    "${CMAKE_CURRENT_SOURCE_DIR}"
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
