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