blob: d59182efe750d1906258610043c8c3a60f114016 [file] [log] [blame]
Stephen Kiazyke77dce22017-03-14 15:38:12 -07001// 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
15sourceFiles = [
16 "pose_client.cpp",
17 "sensor_client.cpp",
Okan Arikanb13d4772017-03-31 14:04:51 -070018 "latency_model.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070019]
20
21includeFiles = [
22 "include",
23]
24
25staticLibraries = [
26 "libbufferhub",
Jiwen 'Steve' Caia3613612017-03-08 17:41:48 -080027 "libbufferhubqueue",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070028 "libdvrcommon",
29 "libpdx_default_transport",
30]
31
32sharedLibraries = [
33 "libbase",
34 "libcutils",
35 "libhardware",
36 "liblog",
37 "libutils",
Mark Urbanus8a71b132017-03-16 11:06:51 -070038 "libui",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070039]
40
41cc_library {
42 srcs: sourceFiles,
43 export_include_dirs: includeFiles,
44 static_libs: staticLibraries,
45 shared_libs: sharedLibraries,
46 name: "libvrsensor",
47}
48
49testFiles = ["tests/sensor_app_tests.cpp"]
50
51cc_test {
52 name: "sensor_app_tests",
53 tags: ["optional"],
54
55 srcs: testFiles,
56
57 shared_libs: [
58 "libEGL",
59 "libGLESv1_CM",
60 "libGLESv2",
61 "libvulkan",
62 "libsync",
63 ] + sharedLibraries,
64
65 static_libs: [
66 "libgmock_main",
67 "libgmock",
68 "libdisplay",
69 "libeds",
70 "libvrsensor",
71 "libdvrgraphics",
72 ] + staticLibraries,
73
74}