Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 1 | // Copyright (C) 2015 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 | |
| 15 | sourceFiles = [ |
| 16 | "pose_client.cpp", |
| 17 | "sensor_client.cpp", |
| 18 | ] |
| 19 | |
| 20 | includeFiles = [ |
| 21 | "include", |
| 22 | ] |
| 23 | |
| 24 | staticLibraries = [ |
| 25 | "libbufferhub", |
Jiwen 'Steve' Cai | a361361 | 2017-03-08 17:41:48 -0800 | [diff] [blame] | 26 | "libbufferhubqueue", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 27 | "libdvrcommon", |
| 28 | "libpdx_default_transport", |
| 29 | ] |
| 30 | |
| 31 | sharedLibraries = [ |
| 32 | "libbase", |
| 33 | "libcutils", |
| 34 | "libhardware", |
| 35 | "liblog", |
| 36 | "libutils", |
Mark Urbanus | 8a71b13 | 2017-03-16 11:06:51 -0700 | [diff] [blame] | 37 | "libui", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 38 | ] |
| 39 | |
| 40 | cc_library { |
| 41 | srcs: sourceFiles, |
| 42 | export_include_dirs: includeFiles, |
| 43 | static_libs: staticLibraries, |
| 44 | shared_libs: sharedLibraries, |
| 45 | name: "libvrsensor", |
| 46 | } |
| 47 | |
| 48 | testFiles = ["tests/sensor_app_tests.cpp"] |
| 49 | |
| 50 | cc_test { |
| 51 | name: "sensor_app_tests", |
| 52 | tags: ["optional"], |
| 53 | |
| 54 | srcs: testFiles, |
| 55 | |
| 56 | shared_libs: [ |
| 57 | "libEGL", |
| 58 | "libGLESv1_CM", |
| 59 | "libGLESv2", |
| 60 | "libvulkan", |
| 61 | "libsync", |
| 62 | ] + sharedLibraries, |
| 63 | |
| 64 | static_libs: [ |
| 65 | "libgmock_main", |
| 66 | "libgmock", |
| 67 | "libdisplay", |
| 68 | "libeds", |
| 69 | "libvrsensor", |
| 70 | "libdvrgraphics", |
| 71 | ] + staticLibraries, |
| 72 | |
| 73 | } |