Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion ddprof-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def createDebugExtractionTask(config, linkTask) {
description = 'Extract debug symbols from release library'
workingDir project.buildDir

// Declare outputs so Gradle knows what files this task creates
outputs.file getDebugFilePath(config)

doFirst {
def sourceFile = linkTask.get().linkedFile.get().asFile
def debugFile = getDebugFilePath(config)
Expand Down Expand Up @@ -127,7 +130,7 @@ def createDebugCopyTask(config, extractDebugTask) {
}
dependsOn extractDebugTask
from file("$buildDir/lib/main/${config.name}/${osIdentifier()}/${archIdentifier()}/debug")
into file(libraryTargetPath(config.name + '-debug'))
into file(libraryTargetPath(config.name))
include '**/*.debug'
include '**/*.dSYM/**'
}
Expand Down Expand Up @@ -252,6 +255,8 @@ tasks.register('copyExternalLibs', Copy) {
from(project.getProperty("with-libs")) {
include "**/*.so"
include "**/*.dylib"
include "**/*.debug"
include "**/*.dSYM/**"
}
into "${projectDir}/build/classes/java/main/META-INF/native-libs"
}
Expand Down Expand Up @@ -433,6 +438,7 @@ buildConfigNames().each { name ->
if (!project.hasProperty('skip-native')) {
dependsOn copyTask
}

from sourceSets.main.output.classesDirs
from files(libraryTargetBase(name)) {
include "**/*"
Expand Down Expand Up @@ -598,6 +604,8 @@ tasks.register('javadocJar', Jar) {
from javadoc.destinationDir
}



tasks.register('scanBuild', Exec) {
workingDir "${projectDir}/src/test/make"
commandLine 'scan-build'
Expand Down
2 changes: 1 addition & 1 deletion gradle/configurations.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def commonLinuxCompilerArgs = [
"-DCOUNTERS"
]

def commonLinuxLinkerArgs = ["-ldl", "-Wl,-z,defs", "--verbose", "-lpthread", "-lm", "-lrt", "-v"]
def commonLinuxLinkerArgs = ["-ldl", "-Wl,-z,defs", "--verbose", "-lpthread", "-lm", "-lrt", "-v", "-Wl,--build-id"]

def commonMacosCompilerArgs = commonLinuxCompilerArgs + ["-D_XOPEN_SOURCE", "-D_DARWIN_C_SOURCE"]

Expand Down
Loading