Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 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 | |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame^] | 15 | package { |
| 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 | |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 24 | localIncludeFiles = [ |
| 25 | "include", |
| 26 | ] |
| 27 | |
| 28 | sharedLibraries = [ |
| 29 | "libbase", |
| 30 | "libcutils", |
| 31 | "liblog", |
| 32 | "libutils", |
| 33 | "libEGL", |
| 34 | "libGLESv2", |
| 35 | "libui", |
| 36 | "libgui", |
| 37 | "libhardware", |
Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 38 | "libpdx_default_transport", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 39 | ] |
| 40 | |
Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 41 | staticLibraries = ["libbroadcastring"] |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 42 | |
| 43 | headerLibraries = [ |
| 44 | "libeigen", |
| 45 | ] |
| 46 | |
| 47 | cc_library { |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 48 | local_include_dirs: localIncludeFiles, |
| 49 | |
| 50 | cflags: [ |
| 51 | "-DLOG_TAG=\"libdvrcommon\"", |
| 52 | "-DTRACE=0", |
Chih-Hung Hsieh | e190083 | 2017-10-05 14:27:38 -0700 | [diff] [blame] | 53 | "-Wall", |
| 54 | "-Werror", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 55 | ], |
| 56 | export_include_dirs: localIncludeFiles, |
| 57 | |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 58 | header_libs: headerLibraries, |
| 59 | export_header_lib_headers: headerLibraries, |
| 60 | |
| 61 | name: "libdvrcommon", |
| 62 | } |
| 63 | |
| 64 | testFiles = [ |
| 65 | "tests/numeric_test.cpp", |
| 66 | "tests/pose_test.cpp", |
| 67 | ] |
| 68 | |
| 69 | cc_test { |
| 70 | name: "libdvrcommon_test", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 71 | |
| 72 | srcs: testFiles, |
Chih-Hung Hsieh | e190083 | 2017-10-05 14:27:38 -0700 | [diff] [blame] | 73 | cflags: [ |
| 74 | "-Wall", |
| 75 | "-Werror", |
| 76 | "-Wno-unused-parameter", |
| 77 | ], |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 78 | |
| 79 | shared_libs: sharedLibraries, |
| 80 | |
| 81 | static_libs: [ |
| 82 | "libgmock_main", |
| 83 | "libgmock", |
| 84 | "libgtest", |
| 85 | "libdvrcommon", |
| 86 | ] + staticLibraries, |
| 87 | } |