Skip to content

Commit

Permalink
chore: genreate stub files for bit_reader and disassembler module
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziqi-Yang committed Aug 8, 2024
1 parent aa1ed2e commit 15c1ff3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,22 @@ nanobind_add_stub(
DEPENDS llvmpym_ext
)

nanobind_add_stub(
llvmpym_ext_stub_bit_reader
MODULE llvmpym_ext.bit_reader
OUTPUT bit_reader.pyi
PYTHON_PATH $<TARGET_FILE_DIR:llvmpym_ext>
DEPENDS llvmpym_ext
)

nanobind_add_stub(
llvmpym_ext_stub_disassembler
MODULE llvmpym_ext.disassembler
OUTPUT disassembler.pyi
PYTHON_PATH $<TARGET_FILE_DIR:llvmpym_ext>
DEPENDS llvmpym_ext
)


# Install directive for scikit-build-core
install(TARGETS llvmpym_ext LIBRARY DESTINATION ${SKBUILD_PROJECT_NAME})
Expand All @@ -200,5 +216,7 @@ install(FILES
${CMAKE_BINARY_DIR}/analysis.pyi
${CMAKE_BINARY_DIR}/target.pyi
${CMAKE_BINARY_DIR}/target_machine.pyi
${CMAKE_BINARY_DIR}/bit_reader.pyi
${CMAKE_BINARY_DIR}/disassembler.pyi

DESTINATION ${SKBUILD_PROJECT_NAME}/llvmpym_ext)

0 comments on commit 15c1ff3

Please sign in to comment.