Mercurial > hg > orthanc
view OrthancServer/Resources/CodeModel/README.txt @ 6282:1d6cf7bf92cc
note
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 13 Aug 2025 12:07:09 +0200 |
parents | 519b1e2af1a8 |
children |
line wrap: on
line source
Introduction ============ The "./GenerateCodeModel.py" Python script analyzes the header of the Orthanc Plugin SDK using clang, and saves this code model as a JSON file. The code model can then be used to generate wrappers. It is notably used by the "orthanc-java" (starting with its release 1.0) and "orthanc-python" plugins (starting with its release 4.3). NB: The generation of the code model was originally part of the "orthanc-java" project. It was integrated into the Orthanc core repository in release 1.12.9. Usage on Ubuntu 22.04 LTS ========================= Executing with default parameters: $ sudo apt install python3-clang-14 $ python3 ./GenerateCodeModel.py Or, if you want to have more control: $ python3 ./GenerateCodeModel.py \ --libclang=libclang-14.so.1 \ --source ../../Plugins/Include/orthanc/OrthancCPlugin.h \ --target ../../Plugins/Include/orthanc/OrthancPluginCodeModel.json Generation using Docker ======================= $ ./docker-run.sh