blob: eb78348f4afbf8dcb3c5acc86ae9d7e51b5d19c5 [file] [log] [blame]
Stephen Kiazyke77dce22017-03-14 15:38:12 -07001// Copyright (C) 2016 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 "frame_time_history.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070017 "sync_util.cpp",
18]
19
20localIncludeFiles = [
21 "include",
22]
23
24sharedLibraries = [
25 "libbase",
26 "libcutils",
27 "liblog",
28 "libutils",
29 "libEGL",
30 "libGLESv2",
31 "libui",
32 "libgui",
33 "libhardware",
34]
35
36staticLibraries = ["libpdx_default_transport"]
37
38headerLibraries = [
39 "libeigen",
40]
41
42cc_library {
43 srcs: sourceFiles,
44 local_include_dirs: localIncludeFiles,
45
46 cflags: [
47 "-DLOG_TAG=\"libdvrcommon\"",
48 "-DTRACE=0",
49 ],
50 export_include_dirs: localIncludeFiles,
51
52 shared_libs: sharedLibraries,
53 static_libs: staticLibraries,
54 header_libs: headerLibraries,
55 export_header_lib_headers: headerLibraries,
56
57 name: "libdvrcommon",
58}
59
60testFiles = [
61 "tests/numeric_test.cpp",
62 "tests/pose_test.cpp",
63]
64
65cc_test {
66 name: "libdvrcommon_test",
67 tags: ["optional"],
68
69 srcs: testFiles,
70
71 shared_libs: sharedLibraries,
72
73 static_libs: [
74 "libgmock_main",
75 "libgmock",
76 "libgtest",
77 "libdvrcommon",
78 ] + staticLibraries,
79}