platform_frameworks_native/libs/binderthreadstate/Android.bp
Jooyung Han 7bcb89317d Set min_sdk_version to be part of mainline modules
Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.

For now setting min_sdk_version doesn't change build outputs.
But build-time checks will be added soon.

Exempt-From-Owner-Approval: cherry-pick from aosp

Bug: 152655956
Test: m
Merged-In: Ifea5ed988fad2e0d29271e6e9cbf0e12100b37d9
Change-Id: Ifea5ed988fad2e0d29271e6e9cbf0e12100b37d9
(cherry picked from commit a395c8d9aa)
2020-05-11 08:33:49 +00:00

67 lines
1.6 KiB
Text

// Copyright (C) 2018 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// DO NOT ADD NEW USAGES OF THIS
// See comments in header file.
cc_library_static {
name: "libbinderthreadstateutils",
double_loadable: true,
vendor_available: true,
host_supported: true,
shared_libs: [
"libbinder",
"libhidlbase", // libhwbinder is in here
],
export_include_dirs: ["include"],
cflags: [
"-Wall",
"-Werror",
],
min_sdk_version: "29",
}
hidl_package_root {
name: "binderthreadstateutilstest",
}
aidl_interface {
name: "binderthreadstateutilstest.aidl",
unstable: true,
srcs: ["IAidlStuff.aidl"],
}
cc_test {
name: "libbinderthreadstateutils_test",
srcs: ["test.cpp"],
static_libs: [
"binderthreadstateutilstest@1.0",
"binderthreadstateutilstest.aidl-cpp",
"libbinderthreadstateutils",
],
shared_libs: [
"libbase",
"libbinder",
"libcutils",
"libhidlbase",
"libutils",
"liblog",
],
test_suites: [
"general-tests",
],
require_root: true,
}