rizinorg / cutter

Free and Open Source Reverse Engineering Platform powered by rizin
https://cutter.re
GNU General Public License v3.0
15.56k stars 1.14k forks source link

CMake install step and package creation #2098

Open karliss opened 4 years ago

karliss commented 4 years ago

Improve CMake scripts so that it can be used for building packages. See #2084 for initial work.

Remaining work:

XVilka commented 1 year ago

@karliss as the majority of this work is done, maybe better to create separate issues for the few remaining tasks and close this one? What do you think?

turbopapero commented 1 year ago

@XVilka one question regarding this: I am having a look at creating a package for rz-ghidra for Kali Linux. In rz-ghidra's cmake file here this dependency to CutterConfig.cmake imposes the presence in the system of the cutter binary through the required CutterTargets.cmake, required here, is that correct? This will check for the presence of the cutter binary file and fail if the file is not in the system.

Do we really need the dependency on the binary to compile the plugin? This forces the deb package to depend on the whole cutter installation to just compile rz-ghidra instead of just the header files. I wanted to create a separate package called librizin-cutter-dev with only the dev files to compile plugins but this way this is impossible as I need the cutter binary to compile plugins.

Maybe I am missing something?