mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-19 18:12:14 -09:00
GP-0 Corrected dbgmodel.tlb handling for multi-platform build
This commit is contained in:
@@ -36,13 +36,14 @@ dependencies {
|
||||
testImplementation project(path: ":Debugger-gadp", configuration: 'testArtifacts')
|
||||
}
|
||||
|
||||
ext.tlb = file("build/os/win_x86_64/dbgmodel.tlb")
|
||||
|
||||
if ("win_x86_64".equals(getCurrentPlatformName())) {
|
||||
|
||||
String makeName = "win_x86_64DbgmodelTlbMake"
|
||||
task(type: Exec, makeName) {
|
||||
ext.tmpBatch = file("build/buildTlb.bat")
|
||||
ext.idl = file("src/main/py/src/ghidradbg/dbgmodel/DbgModel.idl")
|
||||
ext.tlb = file("build/os/win_x86_64/dbgmodel.tlb")
|
||||
inputs.file(idl)
|
||||
outputs.file(tlb)
|
||||
|
||||
@@ -69,13 +70,29 @@ if ("win_x86_64".equals(getCurrentPlatformName())) {
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
else if (file(tlb).exists()) {
|
||||
// required for multi-platform build
|
||||
tasks.assemblePyPackage {
|
||||
from(rootProject.BIN_REPO + '/' + getGhidraRelativePath(project) + "/os/win_x86_64/dbgmodel.tlb") {
|
||||
from(tlb) {
|
||||
println "Copying existing tlb build artifact: " + tlb
|
||||
into("src/ghidradbg/dbgmodel/tlb")
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
def prebuiltTlb = new File(rootProject.BIN_REPO + '/' + getGhidraRelativePath(project) + "/os/win_x86_64/dbgmodel.tlb")
|
||||
if (prebuiltTlb.exists()) {
|
||||
println "Copying prebuilt dbgmodel.tlb"
|
||||
tasks.assemblePyPackage {
|
||||
from(rootProject.BIN_REPO + '/' + getGhidraRelativePath(project) + "/os/win_x86_64/dbgmodel.tlb") {
|
||||
into("src/ghidradbg/dbgmodel/tlb")
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
println "WARNING: dbgmodel.tlb omitted from ghidradbg python package"
|
||||
}
|
||||
}
|
||||
|
||||
distributePyDep("Pybag-2.2.10-py3-none-any.whl")
|
||||
distributePyDep("capstone-5.0.1-py3-none-win_amd64.whl")
|
||||
|
||||
Reference in New Issue
Block a user