You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Android_boot_image_editor/aosp/libsparse/sparse/build.gradle.kts

25 lines
553 B
Kotlin

plugins {
`cpp-library`
}
library {
targetMachines.set(listOf(machines.linux.x86_64, machines.macOS.x86_64))
linkage.set(listOf(Linkage.STATIC))
dependencies {
implementation(project(":aosp:libsparse:base"))
}
}
tasks.withType(CppCompile::class.java).configureEach {
macros.put("NDEBUG", null)
compilerArgs.add("-Wall")
compilerArgs.add("-std=c++17")
}
tasks.withType(LinkSharedLibrary::class.java).configureEach {
linkerArgs.add("-lz")
}
tasks.withType(CreateStaticLibrary::class.java).configureEach {
}