1// Copyright (C) 2016 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 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "frameworks_native_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["frameworks_native_license"], 22} 23 24localIncludeFiles = [ 25 "include", 26] 27 28sharedLibraries = [ 29 "libbase", 30 "libcutils", 31 "liblog", 32 "libutils", 33 "libEGL", 34 "libGLESv2", 35 "libui", 36 "libgui", 37 "libhardware", 38 "libpdx_default_transport", 39] 40 41staticLibraries = ["libbroadcastring"] 42 43headerLibraries = [ 44 "libeigen", 45] 46 47cc_library { 48 local_include_dirs: localIncludeFiles, 49 50 cflags: [ 51 "-DLOG_TAG=\"libdvrcommon\"", 52 "-DTRACE=0", 53 "-Wall", 54 "-Werror", 55 ], 56 export_include_dirs: localIncludeFiles, 57 58 header_libs: headerLibraries, 59 export_header_lib_headers: headerLibraries, 60 61 name: "libdvrcommon", 62} 63 64testFiles = [ 65 "tests/numeric_test.cpp", 66 "tests/pose_test.cpp", 67] 68 69cc_test { 70 name: "libdvrcommon_test", 71 72 srcs: testFiles, 73 cflags: [ 74 "-Wall", 75 "-Werror", 76 "-Wno-unused-parameter", 77 ], 78 79 shared_libs: sharedLibraries, 80 81 static_libs: [ 82 "libgmock_main", 83 "libgmock", 84 "libgtest", 85 "libdvrcommon", 86 ] + staticLibraries, 87} 88