Skip to content

Commit

Permalink
Update build procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
ubfx committed Sep 11, 2024
1 parent 0f8f62b commit 88dfa59
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 31 deletions.
45 changes: 14 additions & 31 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
apply plugin: 'java'
apply plugin: 'com.google.protobuf'
apply plugin: 'eclipse'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

repositories {
mavenCentral()
}
Expand All @@ -12,44 +17,18 @@ buildscript {
}

dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.19'
}
}

dependencies {
implementation 'com.google.protobuf:protobuf-java:3.21.2'
//implementation project(':BinExport')
implementation 'org.xerial:sqlite-jdbc:3.46.0.1'
}

protobuf {
// Configure the protoc executable.
protoc {
artifact = 'com.google.protobuf:protoc:3.21.2'
}

generateProtoTasks.generatedFilesBaseDir = 'src/'

generateProtoTasks {
all().each {
it.group = 'generate proto'
}
}
}

/*
task copyLib(type: Copy) {
from ('lib/') {
include '*sqlite*'
include '*protobuf*'
}
into 'lib/'
}
// Extend jar task to collect extra dependencies.
jar {
dependsOn copyLib
exclude('binexport')
}
*/

// Standard Ghidra extension Gradle code follows.
//----------------------START "DO NOT MODIFY" SECTION------------------------------
def ghidraInstallDir
Expand All @@ -67,4 +46,8 @@ if (ghidraInstallDir) {
else {
throw new GradleException("GHIDRA_INSTALL_DIR is not defined!")
}
//----------------------END "DO NOT MODIFY" SECTION-------------------------------
//----------------------END "DO NOT MODIFY" SECTION-------------------------------

tasks.named("buildExtension").configure {
dependsOn(":BinExport:generateProto")
}
3 changes: 3 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rootProject.name = "BinDiffHelper"
include "BinExport"
project(":BinExport").projectDir = new File('binexport/java')

0 comments on commit 88dfa59

Please sign in to comment.