blob: 9e1e51672406df2696245a91c3a843de0430e378 [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
Bob Badour3c538232021-02-12 21:26:48 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_native_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 // SPDX-license-identifier-MIT
22 // SPDX-license-identifier-Unicode-DFS
23 default_applicable_licenses: ["frameworks_native_license"],
24}
25
Stephen Kiazyke77dce22017-03-14 15:38:12 -070026localIncludeFiles = [
27 "include",
28]
29
30sharedLibraries = [
31 "libbase",
32 "libcutils",
33 "liblog",
34 "libutils",
35 "libEGL",
36 "libGLESv2",
37 "libui",
38 "libgui",
39 "libhardware",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080040 "libpdx_default_transport",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070041]
42
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080043staticLibraries = ["libbroadcastring"]
Stephen Kiazyke77dce22017-03-14 15:38:12 -070044
45headerLibraries = [
46 "libeigen",
47]
48
49cc_library {
Stephen Kiazyke77dce22017-03-14 15:38:12 -070050 local_include_dirs: localIncludeFiles,
51
52 cflags: [
53 "-DLOG_TAG=\"libdvrcommon\"",
54 "-DTRACE=0",
Chih-Hung Hsiehe1900832017-10-05 14:27:38 -070055 "-Wall",
56 "-Werror",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070057 ],
58 export_include_dirs: localIncludeFiles,
59
Stephen Kiazyke77dce22017-03-14 15:38:12 -070060 header_libs: headerLibraries,
61 export_header_lib_headers: headerLibraries,
62
63 name: "libdvrcommon",
64}
65
66testFiles = [
67 "tests/numeric_test.cpp",
68 "tests/pose_test.cpp",
69]
70
71cc_test {
72 name: "libdvrcommon_test",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070073
74 srcs: testFiles,
Chih-Hung Hsiehe1900832017-10-05 14:27:38 -070075 cflags: [
76 "-Wall",
77 "-Werror",
78 "-Wno-unused-parameter",
79 ],
Stephen Kiazyke77dce22017-03-14 15:38:12 -070080
81 shared_libs: sharedLibraries,
82
83 static_libs: [
84 "libgmock_main",
85 "libgmock",
86 "libgtest",
87 "libdvrcommon",
88 ] + staticLibraries,
89}