blob: 6d48f18385bd32a42f92af1f430de7877302d53d [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",
18]
19
20includeFiles = [
21 "include",
22]
23
24staticLibraries = [
25 "libbufferhub",
Jiwen 'Steve' Caia3613612017-03-08 17:41:48 -080026 "libbufferhubqueue",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070027 "libdvrcommon",
28 "libpdx_default_transport",
29]
30
31sharedLibraries = [
32 "libbase",
33 "libcutils",
34 "libhardware",
35 "liblog",
36 "libutils",
Mark Urbanus8a71b132017-03-16 11:06:51 -070037 "libui",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070038]
39
40cc_library {
41 srcs: sourceFiles,
42 export_include_dirs: includeFiles,
43 static_libs: staticLibraries,
44 shared_libs: sharedLibraries,
45 name: "libvrsensor",
46}
47
48testFiles = ["tests/sensor_app_tests.cpp"]
49
50cc_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}