blob: 4af8f85de60385dc0acff9d9cfdb111bc4200c7e [file] [log] [blame]
# Copyright 2023 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# Always build the C bindings, since the API is available apart from
# actually building the compiler.
add_subdirectory(bindings/c)
# The compiler implementation is gated on the global setting.
if(IREE_BUILD_COMPILER)
add_subdirectory(src)
# Copy Python packaging files to the build dir so that we can install from
# there.
if(IREE_BUILD_PYTHON_BINDINGS)
configure_file(pyproject.toml pyproject.toml COPYONLY)
configure_file(setup.py setup.py @ONLY)
endif()
endif()