1// Copyright (C) 2017 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_library_shared { 20 name: "libsensorndkbridge", 21 proprietary: true, 22 srcs: [ 23 "ALooper.cpp", 24 "ASensorEventQueue.cpp", 25 "ASensorManager.cpp", 26 ], 27 cflags: [ 28 "-Wall", 29 "-Werror", 30 ], 31 shared_libs: [ 32 "libbase", 33 "libbinder_ndk", 34 "libutils", 35 "android.frameworks.sensorservice-V1-ndk", 36 "android.hardware.sensors-V2-ndk", 37 ], 38 static_libs: [ 39 "android.hardware.sensors-V1-convert", 40 ], 41 42 header_libs: [ 43 "libandroid_sensor_headers", 44 ], 45 46 export_header_lib_headers: [ 47 "libandroid_sensor_headers", 48 ], 49 50 export_shared_lib_headers: [ 51 "android.frameworks.sensorservice-V1-ndk", 52 ], 53 export_static_lib_headers: [ 54 "android.hardware.sensors-V1-convert", 55 ], 56} 57