Skip to content

Commit

Permalink
Added platform-specific native dependencies, pulled automatically fro…
Browse files Browse the repository at this point in the history
…m the Maven repository.
  • Loading branch information
sbrptdev2 committed Oct 10, 2024
1 parent e20d37d commit d16e7c5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ghidra_yara/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ repositories {

dependencies {
implementation 'com.github.subreption:libyara:4.5.2-SNAPSHOT'

def osName = System.getProperty("os.name").toLowerCase()

if (osName.contains("linux")) {
runtimeOnly 'com.github.subreption:libyara:4.5.2-SNAPSHOT:linux64@jar'
} else if (osName.contains("mac")) {
runtimeOnly 'com.github.subreption:libyara:4.5.2-SNAPSHOT:mac@jar'
} else {
throw new GradleException("Unsupported OS: " + osName)
}

implementation fileTree(dir: 'libs', include: '*.jar')
}

Expand Down

0 comments on commit d16e7c5

Please sign in to comment.