blob: 7ea37a7718984fd3810bec4fbde1a98a4b6747ed [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 = [
Stephen Kiazyke77dce22017-03-14 15:38:12 -070026 "libpdx_default_transport",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070027]
28
29sharedLibraries = [
30 "libbase",
Jiwen 'Steve' Caia88e3ee2017-11-03 17:33:33 -070031 "libbinder",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070032 "libcutils",
33 "libhardware",
34 "liblog",
35 "libui",
36 "libutils",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070037 "libnativewindow"
38]
39
Corey Tabaka52ea25c2017-09-13 18:02:48 -070040headerLibraries = [
41 "libdvr_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070042 "libnativebase_headers",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070043]
44
45cc_library {
46 srcs: sourceFiles,
47 cflags: [
48 "-DLOG_TAG=\"libbufferhub\"",
Corey Tabaka52ea25c2017-09-13 18:02:48 -070049 "-DTRACE=0",
50 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
Chih-Hung Hsiehe1900832017-10-05 14:27:38 -070051 "-Wall",
52 "-Werror",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070053 ],
54 export_include_dirs: localIncludeFiles,
55 static_libs: staticLibraries,
56 shared_libs: sharedLibraries,
Corey Tabaka52ea25c2017-09-13 18:02:48 -070057 header_libs: headerLibraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070058 name: "libbufferhub",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070059 export_header_lib_headers: [
60 "libnativebase_headers",
61 ],
Jiwen 'Steve' Cai0f950842018-01-16 17:05:54 -080062 vendor_available: false,
63 vndk: {
64 enabled: true,
65 },
Stephen Kiazyke77dce22017-03-14 15:38:12 -070066}
67
68cc_test {
69 tags: ["optional"],
Jiwen 'Steve' Cai9e7f3032017-10-20 18:39:47 -070070 srcs: ["buffer_hub-test.cpp"],
Stephen Kiazyke77dce22017-03-14 15:38:12 -070071 static_libs: ["libbufferhub"] + staticLibraries,
72 shared_libs: sharedLibraries,
Corey Tabaka52ea25c2017-09-13 18:02:48 -070073 header_libs: headerLibraries,
Jiwen 'Steve' Cai9e7f3032017-10-20 18:39:47 -070074 name: "buffer_hub-test",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070075}
76