Skip to content

rizinorg/rz-bindgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

318cfbc · Mar 16, 2025
Mar 14, 2025
Aug 23, 2022
Jul 17, 2022
Jul 20, 2022
Aug 23, 2022
Aug 23, 2022
Feb 18, 2025
Feb 18, 2025
Jul 20, 2022
Jul 17, 2022
Jul 17, 2022
Mar 9, 2024
Mar 16, 2025
Mar 15, 2024
Mar 15, 2024
Jul 7, 2022
Mar 9, 2024
Oct 27, 2023
Dec 21, 2024

Repository files navigation

rz-bindgen

rz-bindgen parses Rizin header files using libclang to generate SWIG .i binding files

For information on code structure, see src/README.md.

For usage information, see the documentation.

Building python plugin

Requirements:

  • rizin > 0.4.1 (needs commit 59b38e6)
  • meson >= 1.1.0
  • ninja
  • python >= 3.10
  • libclang
  • SWIG

Meson options:

  • clang_path: Directory containing libclang.so
    • Defaults to result of llvm-config --libdir if found
    • Otherwise, use Xcode clang path on MacOS
    • Otherwise, use clang.exe directory on windows
    • Otherwise, use /usr/lib
  • clang_args: Extra arguments to pass to libclang
    • Defaults to setting resource-dir to result of clang -print-resource-dir
  • rizin_include_path: Directory containing rizin header files
    • Defaults to using rizin found in pkg-config and CMake
    • To customize pkg-config search, set PKG_CONFIG_PATH
    • To customize CMake search, set CMAKE_PREFIX_PATH

Building the Cutter plugin

Additional Requirements:

  • cmake
  • cutter
  • qt

Install the cutter plugin to <CUTTER_PLUGIN_DIR>/native/ Install the python plugin (rizin.py, _rizin) to <CUTTER_PLUGIN_DIR>/native/bindings/