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.
25 lines
553 B
Plaintext
25 lines
553 B
Plaintext
6 years ago
|
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 {
|
||
|
}
|