Skip to content

Commit d16e7c5

Browse files
committed
Added platform-specific native dependencies, pulled automatically from the Maven repository.
1 parent e20d37d commit d16e7c5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ghidra_yara/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ repositories {
7171

7272
dependencies {
7373
implementation 'com.github.subreption:libyara:4.5.2-SNAPSHOT'
74+
75+
def osName = System.getProperty("os.name").toLowerCase()
76+
77+
if (osName.contains("linux")) {
78+
runtimeOnly 'com.github.subreption:libyara:4.5.2-SNAPSHOT:linux64@jar'
79+
} else if (osName.contains("mac")) {
80+
runtimeOnly 'com.github.subreption:libyara:4.5.2-SNAPSHOT:mac@jar'
81+
} else {
82+
throw new GradleException("Unsupported OS: " + osName)
83+
}
84+
7485
implementation fileTree(dir: 'libs', include: '*.jar')
7586
}
7687

0 commit comments

Comments
 (0)