-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use dependency instead of find_library and avoid relying on rizin exec (
#14) pkg-config files already contain all the required include and library dependencies (plus optional CFLAGS) necessary to compile against Rizin libraries. One can specify --pkg-config-path to specify the pkg-config path to use if not in the standard directory. Also, by setting the plugdir to prefix/lib/rizin/plugins (instead of RZ_USER_PLUGINS from the rizin executable) the person compiling the plugin can choose whether to install the plugin in a system-wide location (e.g. a maintainer of a linux distro who wants to ship jsdec as a package would want to install it in /usr/lib64/rizin/plugins and not in ~/.local/lib64/rizin/plugins) or in the home location.
- Loading branch information
Showing
3 changed files
with
27 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
option('rizin_libdir', type: 'string', value: '', description: 'rizin library directory') | ||
option('rizin_incdir', type: 'string', value: '', description: 'rizin include directory') | ||
option('rizin_plugdir', type: 'string', value: '', description: 'rizin install directory') | ||
option('jsc_folder', type: 'string', value: '', description: 'When a path is defined, the js code, found in its subfolders, is embedded into the C code.') |