blob: 2f1d2f5c6eb40c5c089307680c486603287e340f [file] [log] [blame]
Stephen Kiazyke77dce22017-03-14 15:38:12 -07001// Copyright (C) 2008 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 "predictor.cpp",
17 "buffered_predictor.cpp",
18 "linear_predictor.cpp",
19 "polynomial_predictor.cpp",
20 "dvr_pose_predictor.cpp",
21]
22
23includeFiles = [
24 "include",
25]
26
27staticLibraries = ["libvrsensor"]
28
29sharedLibraries = []
30
31headerLibraries = [ "libeigen" ]
32
33cc_library {
34 srcs: sourceFiles,
35 cflags: [
36 "-DLOG_TAG=\"libposepredictor\"",
37 "-DTRACE=0",
38 ],
39 export_include_dirs: includeFiles,
40 static_libs: staticLibraries,
41 shared_libs: sharedLibraries,
42 header_libs: headerLibraries,
43 export_header_lib_headers: headerLibraries,
44 name: "libposepredictor",
45}
46
47cc_test {
48 tags: ["optional"],
49 srcs: [
50 "predictor_tests.cpp",
51 "linear_predictor_tests.cpp",
52 "polynomial_predictor_tests.cpp",
53 ],
54
55 static_libs: ["libposepredictor"] + staticLibraries,
56 shared_libs: sharedLibraries,
57 name: "pose_predictor_tests",
58}