From 88f5cb6eb00b5e741ed349d27c2f5cd64db7a99e Mon Sep 17 00:00:00 2001 From: Thad House Date: Mon, 24 Jan 2022 20:32:17 -0800 Subject: [PATCH] [build] Publish PDBs with C++ tools (#3960) --- glass/publish.gradle | 8 ++++++++ outlineviewer/publish.gradle | 8 ++++++++ roborioteamnumbersetter/publish.gradle | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/glass/publish.gradle b/glass/publish.gradle index 909d4a284e..f2e3da7161 100644 --- a/glass/publish.gradle +++ b/glass/publish.gradle @@ -130,6 +130,14 @@ model { } from(applicationPath) + + if (binary.targetPlatform.operatingSystem.isWindows()) { + def exePath = binary.executable.file.absolutePath + exePath = exePath.substring(0, exePath.length() - 4) + def pdbPath = new File(exePath + '.pdb') + from(pdbPath) + } + into(nativeUtils.getPlatformPath(binary)) } diff --git a/outlineviewer/publish.gradle b/outlineviewer/publish.gradle index b0fa202016..aa350098ba 100644 --- a/outlineviewer/publish.gradle +++ b/outlineviewer/publish.gradle @@ -76,6 +76,14 @@ model { } from(applicationPath) + + if (binary.targetPlatform.operatingSystem.isWindows()) { + def exePath = binary.executable.file.absolutePath + exePath = exePath.substring(0, exePath.length() - 4) + def pdbPath = new File(exePath + '.pdb') + from(pdbPath) + } + into(nativeUtils.getPlatformPath(binary)) } diff --git a/roborioteamnumbersetter/publish.gradle b/roborioteamnumbersetter/publish.gradle index 103be9f5e6..3e8e6c3055 100644 --- a/roborioteamnumbersetter/publish.gradle +++ b/roborioteamnumbersetter/publish.gradle @@ -76,6 +76,14 @@ model { } from(applicationPath) + + if (binary.targetPlatform.operatingSystem.isWindows()) { + def exePath = binary.executable.file.absolutePath + exePath = exePath.substring(0, exePath.length() - 4) + def pdbPath = new File(exePath + '.pdb') + from(pdbPath) + } + into(nativeUtils.getPlatformPath(binary)) }