-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.gradle
70 lines (59 loc) · 1.53 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apply plugin: 'java'
apply plugin: 'com.google.protobuf'
apply plugin: 'eclipse'
repositories {
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.19'
}
}
dependencies {
implementation 'com.google.protobuf:protobuf-java:3.21.2'
implementation 'org.xerial:sqlite-jdbc:3.30.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
}
*/
// Standard Ghidra extension Gradle code follows.
//----------------------START "DO NOT MODIFY" SECTION------------------------------
def ghidraInstallDir
if (System.env.GHIDRA_INSTALL_DIR) {
ghidraInstallDir = System.env.GHIDRA_INSTALL_DIR
}
else if (project.hasProperty("GHIDRA_INSTALL_DIR")) {
ghidraInstallDir = project.getProperty("GHIDRA_INSTALL_DIR")
}
if (ghidraInstallDir) {
apply from: new File(ghidraInstallDir).getCanonicalPath() + "/support/buildExtension.gradle"
}
else {
throw new GradleException("GHIDRA_INSTALL_DIR is not defined!")
}
//----------------------END "DO NOT MODIFY" SECTION-------------------------------