blob: fe4dfc792a8e493e31d7a8ceb58a9eb39904b04c [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 Badour3306e492021-02-25 15:35:37 -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 default_applicable_licenses: ["frameworks_native_license"],
22}
23
Stephen Kiazyke77dce22017-03-14 15:38:12 -070024localIncludeFiles = [
25 "include",
26]
27
28sharedLibraries = [
29 "libbase",
30 "libcutils",
31 "liblog",
32 "libutils",
33 "libEGL",
34 "libGLESv2",
35 "libui",
36 "libgui",
37 "libhardware",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080038 "libpdx_default_transport",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070039]
40
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080041staticLibraries = ["libbroadcastring"]
Stephen Kiazyke77dce22017-03-14 15:38:12 -070042
43headerLibraries = [
44 "libeigen",
45]
46
47cc_library {
Stephen Kiazyke77dce22017-03-14 15:38:12 -070048 local_include_dirs: localIncludeFiles,
49
50 cflags: [
51 "-DLOG_TAG=\"libdvrcommon\"",
52 "-DTRACE=0",
Chih-Hung Hsiehe1900832017-10-05 14:27:38 -070053 "-Wall",
54 "-Werror",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070055 ],
56 export_include_dirs: localIncludeFiles,
57
Stephen Kiazyke77dce22017-03-14 15:38:12 -070058 header_libs: headerLibraries,
59 export_header_lib_headers: headerLibraries,
60
61 name: "libdvrcommon",
62}
63
64testFiles = [
65 "tests/numeric_test.cpp",
66 "tests/pose_test.cpp",
67]
68
69cc_test {
70 name: "libdvrcommon_test",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070071
72 srcs: testFiles,
Chih-Hung Hsiehe1900832017-10-05 14:27:38 -070073 cflags: [
74 "-Wall",
75 "-Werror",
76 "-Wno-unused-parameter",
77 ],
Stephen Kiazyke77dce22017-03-14 15:38:12 -070078
79 shared_libs: sharedLibraries,
80
81 static_libs: [
82 "libgmock_main",
83 "libgmock",
84 "libgtest",
85 "libdvrcommon",
86 ] + staticLibraries,
87}