File 0006-exclude-generated-sleigh-files-from-IP-scan.patch of Package ghidra

From 3a3aa961965d3df533891b01379929320950da33 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Thu, 11 May 2023 21:16:41 +0200
Subject: [PATCH 6/8] exclude generated sleigh files from IP scan
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
---
 gradle/support/ip.gradle | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gradle/support/ip.gradle b/gradle/support/ip.gradle
index 8244aa2786..854a75669e 100644
--- a/gradle/support/ip.gradle
+++ b/gradle/support/ip.gradle
@@ -154,7 +154,24 @@ def Map<String, List<String>> getIpForModule(Project p) {
 		exclude "**/*.vcxproj.user"
 		exclude '**/__pycache__'
 		exclude '**/*.egg-info'
+                exclude "**/grammar.cc"
+                exclude "**/pcodeparse.cc"
+                exclude "**/slghparse.cc"
+                exclude "**/slghparse.hh"
+                exclude "**/slghscan.cc"
+                exclude "**/xml.cc"
+                exclude "**/sla_dbg/**"
+                exclude "**/sla_opt/**"
+                exclude "**/com_dbg/**"
+                exclude "**/com_opt/**"
+                exclude "**/ghi_dbg/**"
+                exclude "**/ghi_opt/**"
+                exclude "**/ghidra_dbg/**"
+                exclude "**/ghidra_opt/**"
+                exclude "**/sleigh_opt"
+                exclude "**/sleigh_dbg"
 	}
+
 	tree.each { file ->
 			String ip = getIp(p.projectDir, file)
 			assert ip != null : "No IP found for "+file.path+ " in module: "+p.projectDir
-- 
2.51.0

openSUSE Build Service is sponsored by