1// 2// Copyright (C) 2018 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_team: "trendy_team_android_sensors", 19 // See: http://go/android-license-faq 20 // A large-scale-change added 'default_applicable_licenses' to import 21 // all of the 'license_kinds' from "hardware_interfaces_license" 22 // to get the below license kinds: 23 // SPDX-license-identifier-Apache-2.0 24 default_applicable_licenses: ["hardware_interfaces_license"], 25} 26 27// Prefer to use these defaults to pull in VtsHalSensorsTargetTestUtils + its 28// dependencies 29cc_defaults { 30 name: "VtsHalSensorsDefaults", 31 defaults: [ 32 "android.hardware.graphics.allocator-ndk_shared", 33 "android.hardware.graphics.common-ndk_shared", 34 ], 35 shared_libs: [ 36 "libbinder_ndk", 37 "libutils", 38 "libvndksupport", 39 "libui", 40 ], 41 static_libs: [ 42 "libaidlcommonsupport", 43 "VtsHalSensorsTargetTestUtils", 44 ], 45} 46 47cc_library_static { 48 name: "VtsHalSensorsTargetTestUtils", 49 defaults: [ 50 "VtsHalTargetTestDefaults", 51 "android.hardware.graphics.allocator-ndk_shared", 52 "android.hardware.graphics.common-ndk_shared", 53 ], 54 cflags: ["-DLOG_TAG=\"sensors_hidl_hal_test\""], 55 export_include_dirs: [ 56 "include", 57 ], 58 local_include_dirs: [ 59 "include/sensors-vts-utils", 60 ], 61 // Targets that depend on us need to also include these 62 shared_libs: [ 63 "libbinder_ndk", 64 "libutils", 65 "libvndksupport", 66 "libui", 67 ], 68 static_libs: [ 69 "android.hardware.sensors@1.0", 70 "android.hardware.sensors@2.0", 71 "android.hardware.sensors@2.1", 72 "libaidlcommonsupport", 73 ], 74} 75