Skip to content

Ghidra is a software reverse engineering (SRE) framework

Relax source for IP info during build

ghidra133bba9e61476
diff --git a/gradle/support/ip.gradle b/gradle/support/ip.gradle
index 1e4bbe6e05..d8fc9f89d2 100644
--- a/gradle/support/ip.gradle
+++ b/gradle/support/ip.gradle
@@ -204,17 +204,17 @@ def isBashSourceFile(File file) {
* Gets the ip for a file in the module from its header (or certification.manifest)
*********************************************************************************/
def getIp(File projectDir, File file) {
+ String ip = null;
if (isCSourceFile(file)) {
- return getIpForSourceFile(file, " * IP:");
+ ip = getIpForSourceFile(file, " * IP:");
}
- if (isBashSourceFile(file)) {
- String ip = getIpForSourceFile(file, "# IP:");
- // allow transition from certification.manifest entry
- if (ip != null) {
- return ip;
- }
+ else if (isBashSourceFile(file)) {
+ ip = getIpForSourceFile(file, "# IP:");
+ }
+ if (ip == null) {
+ ip = getIpForNonSourceFile(projectDir, file);
}
- return getIpForNonSourceFile(projectDir, file);
+ return ip;
}
/*********************************************************************************