mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
- feat(compiler): python bindings - build: update docker image for python bindings - pin pybind11 to 2.6.2, 2.7 is not having correct include_dirs set (still a question why?) - using generated parser/printer
32 lines
1.0 KiB
CMake
32 lines
1.0 KiB
CMake
include(AddMLIRPython)
|
|
|
|
################################################################################
|
|
# Generate dialect-specific bindings.
|
|
################################################################################
|
|
|
|
add_mlir_dialect_python_bindings(ZAMALANGBindingsPythonHLFHEOps
|
|
TD_FILE HLFHEOps.td
|
|
DIALECT_NAME HLFHE)
|
|
add_dependencies(ZAMALANGBindingsPythonSources ZAMALANGBindingsPythonHLFHEOps)
|
|
|
|
|
|
################################################################################
|
|
# Installation.
|
|
################################################################################
|
|
|
|
install(
|
|
DIRECTORY ${PROJECT_BINARY_DIR}/python/zamalang/dialects
|
|
DESTINATION python/zamalang
|
|
COMPONENT ZAMALANGBindingsPythonDialects
|
|
FILES_MATCHING PATTERN "_*_gen.py"
|
|
PATTERN "__pycache__" EXCLUDE
|
|
PATTERN "__init__.py" EXCLUDE
|
|
)
|
|
|
|
if (NOT LLVM_ENABLE_IDE)
|
|
add_llvm_install_targets(
|
|
install-ZAMALANGBindingsPythonDialects
|
|
DEPENDS ZAMALANGBindingsPythonSources
|
|
COMPONENT ZAMALANGBindingsPythonDialects)
|
|
endif()
|