Skip to content

Commit 4a8eba2

Browse files
authored
Merge pull request #1278 from microsoft/littleaj/master_native_debug
add debug build for native perf counter dlls
2 parents 0a65047 + ee17c6b commit 4a8eba2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

core/native.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ model {
6363
}
6464
buildTypes {
6565
release
66+
debug
6667
}
6768
platforms {
6869
x86 { architecture "x86" }
@@ -85,6 +86,12 @@ model {
8586
}
8687
}
8788

89+
if ((System.properties["isRelease"] ?: "false").toBoolean()) {
90+
targetBuildTypes "release"
91+
} else {
92+
targetBuildTypes "debug"
93+
}
94+
8895
binaries.all {
8996
if (delegate instanceof StaticLibraryBinarySpec) {
9097
buildable = false
@@ -93,7 +100,7 @@ model {
93100
sharedLibraryFile = ReconstructFileName(sharedLibraryFile, buildType, targetPlatform)
94101

95102
tasks.all { t ->
96-
logger.info "Adding task \"processResources\" a dependency on task \"$t.name\""
103+
logger.info "Adding \"processResources\".dependsOn \"$t\" (${t.getClass()})"
97104
processResources.dependsOn t
98105
}
99106

@@ -161,6 +168,7 @@ sourceSets {
161168
resources {
162169
exclude "**/*.exp"
163170
exclude "**/*.lib"
171+
exclude "**/*.pdb"
164172
}
165173
}
166174
}

0 commit comments

Comments
 (0)