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.
50 lines
1.3 KiB
Groovy
50 lines
1.3 KiB
Groovy
apply plugin: "c"
|
|
apply plugin: "cpp"
|
|
apply plugin: "cpp-unit-test"
|
|
|
|
model {
|
|
buildTypes {
|
|
release
|
|
}
|
|
|
|
components {
|
|
avbx(NativeLibrarySpec) {
|
|
sources {
|
|
cpp {
|
|
lib project: ":aosp:libavb1.2", library: "avb"
|
|
}
|
|
}
|
|
binaries.all {
|
|
cCompiler.args << "-Wall" << "-g"
|
|
cppCompiler.args << "-std=c++17"
|
|
}
|
|
}
|
|
|
|
avbVerifier(NativeExecutableSpec) {
|
|
sources {
|
|
cpp {
|
|
lib project: ":aosp:libavb1.2", library: "avb", linkage: "static"
|
|
lib project: ":avbImpl", library: "avbx", linkage: "static"
|
|
}
|
|
}
|
|
binaries.all {
|
|
cppCompiler.define "XXX"
|
|
cppCompiler.args << '-std=c++17'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
task v1(type:Exec) {
|
|
workingDir "."
|
|
environment preloads: "vbmeta boot", requests: "boot dtbo vendor_boot", suffix: ""
|
|
commandLine "./build/exe/avbVerifier/avbVerifier"
|
|
}
|
|
|
|
task v2(type:Exec) {
|
|
description "verify non-AB recovery mode"
|
|
workingDir "."
|
|
environment preloads: "", requests: "recovery", suffix: ""
|
|
commandLine "./build/exe/avbVerifier/avbVerifier"
|
|
}
|