ghidra: restore configurability to buildGhidraExtension
This is required as Ghidra plugins don't have a consistent layout and have to be widely configurable
This commit is contained in:
@@ -26,9 +26,11 @@ let
|
||||
preBuild = ''
|
||||
# Set project name, otherwise defaults to directory name
|
||||
echo -e '\nrootProject.name = "${pname}"' >> settings.gradle
|
||||
${args.preBuild or ""}
|
||||
'';
|
||||
|
||||
gradleFlags = [ "-PGHIDRA_INSTALL_DIR=${ghidra}/lib/ghidra" ];
|
||||
gradleBuildTask = args.gradleBuildTask or "buildExtension";
|
||||
gradleFlags = args.gradleFlags or [] ++ [ "-PGHIDRA_INSTALL_DIR=${ghidra}/lib/ghidra" ];
|
||||
|
||||
installPhase = args.installPhase or ''
|
||||
runHook preInstall
|
||||
|
||||
@@ -48,6 +48,7 @@ buildGhidraExtension {
|
||||
buildInputs = [
|
||||
zlib
|
||||
];
|
||||
gradleBuildTask = "assemble";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
Reference in New Issue
Block a user