blob: 719ed9b198997a03dec1204239593c456cad78cd [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 "buffer_hub_client.cpp",
17 "buffer_hub_rpc.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070018 "ion_buffer.cpp",
19]
20
21localIncludeFiles = [
22 "include",
23]
24
25staticLibraries = [
26 "libdvrcommon",
27 "libpdx_default_transport",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070028]
29
30sharedLibraries = [
31 "libbase",
32 "libcutils",
33 "libhardware",
34 "liblog",
35 "libui",
36 "libutils",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070037 "libnativewindow"
38]
39
40HeaderLibraries = [
41 "libnativebase_headers",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070042]
43
44cc_library {
45 srcs: sourceFiles,
46 cflags: [
47 "-DLOG_TAG=\"libbufferhub\"",
Chih-Hung Hsieh91f25222017-10-11 11:59:33 -070048 "-DTRACE=0",
49 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070050 ],
51 export_include_dirs: localIncludeFiles,
52 static_libs: staticLibraries,
53 shared_libs: sharedLibraries,
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070054 header_libs: HeaderLibraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070055 name: "libbufferhub",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070056 export_header_lib_headers: [
57 "libnativebase_headers",
58 ],
Stephen Kiazyke77dce22017-03-14 15:38:12 -070059}
60
61cc_test {
62 tags: ["optional"],
63 srcs: ["bufferhub_tests.cpp"],
64 static_libs: ["libbufferhub"] + staticLibraries,
65 shared_libs: sharedLibraries,
66 name: "bufferhub_tests",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070067}
68