# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

iree_cc_library(
  NAME
    VulkanSPIRV
  HDRS
    "VulkanSPIRVTarget.h"
  SRCS
    "VulkanSPIRVTarget.cpp"
  DEPS
    iree::compiler::Dialect::Flow::IR
    iree::compiler::Dialect::HAL::Target::ExecutableTarget
    iree::compiler::Dialect::IREE::IR
    iree::compiler::Translation::SPIRV
    iree::schemas::spirv_executable_def_cc_fbs
    flatbuffers
    LLVMSupport
    MLIRIR
    MLIRPass
    MLIRSPIRVDialect
    MLIRSPIRVLowering
    MLIRSPIRVSerialization
    MLIRSupport
    tensorflow::mlir_xla
  ALWAYSLINK
  PUBLIC
)

# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

iree_cc_library(
  NAME
    VulkanSPIRV
  HDRS
    "VulkanSPIRVTarget.h"
  SRCS
    "VulkanSPIRVTarget.cpp"
  DEPS
    iree::compiler::Dialect::Flow::IR
    iree::compiler::Dialect::HAL::Target::ExecutableTarget
    iree::compiler::Dialect::IREE::IR
    iree::compiler::Translation::SPIRV
    iree::schemas::spirv_executable_def_cc_fbs
    flatbuffers
    LLVMSupport
    MLIRIR
    MLIRPass
    MLIRSPIRVDialect
    MLIRSPIRVLowering
    MLIRSPIRVSerialization
    MLIRSupport
    MLIRTransforms
    tensorflow::mlir_xla
  ALWAYSLINK
  PUBLIC
)

Add CMake dep on MLIRTransform
Add CMake dep on MLIRTransform

Corresponds to the Bazel changes in 4e786d1

Closes #360

COPYBARA_INTEGRATE_REVIEW=https://github.com/google/iree/pull/360 from marbre:cmake-VulkanSPIRV 493c2cd6eda745d6fe2609600ca5c834cb22f500
PiperOrigin-RevId: 287895069
