blob: 376630e61e1bf6faeabb0fe1b46097f2c9c12218 [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",
26 "libdvrcommon",
27 "libpdx_default_transport",
28]
29
30sharedLibraries = [
31 "libbase",
32 "libcutils",
33 "libhardware",
34 "liblog",
35 "libutils",
36]
37
38cc_library {
39 srcs: sourceFiles,
40 export_include_dirs: includeFiles,
41 static_libs: staticLibraries,
42 shared_libs: sharedLibraries,
43 name: "libvrsensor",
44}
45
46testFiles = ["tests/sensor_app_tests.cpp"]
47
48cc_test {
49 name: "sensor_app_tests",
50 tags: ["optional"],
51
52 srcs: testFiles,
53
54 shared_libs: [
55 "libEGL",
56 "libGLESv1_CM",
57 "libGLESv2",
58 "libvulkan",
59 "libsync",
60 ] + sharedLibraries,
61
62 static_libs: [
63 "libgmock_main",
64 "libgmock",
65 "libdisplay",
66 "libeds",
67 "libvrsensor",
68 "libdvrgraphics",
69 ] + staticLibraries,
70
71}