-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
From ffb6777d58f068db7e14372415154cd93f77766e Mon Sep 17 00:00:00 2001 | ||
From: roblabla <[email protected]> | ||
Date: Wed, 31 Jan 2024 13:19:55 +0100 | ||
Subject: [PATCH] Use com.google.protobuf:protobuf-gradle-plugin | ||
|
||
--- | ||
Ghidra/Debug/Debugger-gadp/build.gradle | 7 +- | ||
Ghidra/Debug/Debugger-isf/build.gradle | 8 +- | ||
Ghidra/Debug/Debugger-rmi-trace/build.gradle | 14 +-- | ||
build.gradle | 6 ++ | ||
gradle/debugger/hasProtobuf.gradle | 94 -------------------- | ||
5 files changed, 26 insertions(+), 103 deletions(-) | ||
|
||
diff --git a/Ghidra/Debug/Debugger-gadp/build.gradle b/Ghidra/Debug/Debugger-gadp/build.gradle | ||
index 9e1c57faf..3a3242eb5 100644 | ||
--- a/Ghidra/Debug/Debugger-gadp/build.gradle | ||
|
@@ -43,7 +56,7 @@ index d135294a0..785681ca2 100644 | |
api project(':Framework-AsyncComm') | ||
api project(':Framework-Debugging') | ||
diff --git a/Ghidra/Debug/Debugger-rmi-trace/build.gradle b/Ghidra/Debug/Debugger-rmi-trace/build.gradle | ||
index eec00786e..666cccafc 100644 | ||
index 40fbc17ab..7517ffe6e 100644 | ||
--- a/Ghidra/Debug/Debugger-rmi-trace/build.gradle | ||
+++ b/Ghidra/Debug/Debugger-rmi-trace/build.gradle | ||
@@ -18,12 +18,17 @@ apply from: "${rootProject.projectDir}/gradle/javaProject.gradle" | ||
|
@@ -63,17 +76,23 @@ index eec00786e..666cccafc 100644 | |
+ } | ||
+} | ||
dependencies { | ||
api project(':Pty') | ||
api project(':Debugger') | ||
} | ||
@@ -36,7 +41,7 @@ task generateProtoPy { | ||
@@ -44,12 +49,9 @@ task generateProtoPy { | ||
ext.outdir = file("build/generated/source/proto/main/py") | ||
outputs.dir(outdir) | ||
inputs.files(src) | ||
- dependsOn(configurations.protocArtifact) | ||
+ dependsOn(protobuf.generateProtoTasks.all()) | ||
doLast { | ||
def exe = configurations.protocArtifact.first() | ||
if (!isCurrentWindows()) { | ||
- def exe = configurations.protocArtifact.first() | ||
- if (!isCurrentWindows()) { | ||
- exe.setExecutable(true) | ||
- } | ||
+ def exe = protobuf.tools.protoc.path | ||
exec { | ||
commandLine exe, "--python_out=$outdir", "-I$srcdir" | ||
args src | ||
diff --git a/build.gradle b/build.gradle | ||
index b0c717fb1..5f56506a5 100644 | ||
--- a/build.gradle | ||
|
@@ -92,10 +111,9 @@ index b0c717fb1..5f56506a5 100644 | |
} | ||
else { | ||
diff --git a/gradle/debugger/hasProtobuf.gradle b/gradle/debugger/hasProtobuf.gradle | ||
deleted file mode 100644 | ||
index 23b4ce74b..000000000 | ||
index 23b4ce74b..e69de29bb 100644 | ||
--- a/gradle/debugger/hasProtobuf.gradle | ||
+++ /dev/null | ||
+++ b/gradle/debugger/hasProtobuf.gradle | ||
@@ -1,94 +0,0 @@ | ||
-/* ### | ||
- * IP: GHIDRA | ||
|
@@ -191,3 +209,6 @@ index 23b4ce74b..000000000 | |
- } | ||
-} | ||
-zipSourceSubproject.dependsOn generateProto | ||
-- | ||
2.42.0 | ||
|
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