blob: 69b6422d1dc77973442e843c27b233054297575a [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",
Jiwen 'Steve' Caia8049a22018-03-28 15:14:02 -070018 "detached_buffer.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070019 "ion_buffer.cpp",
20]
21
22localIncludeFiles = [
23 "include",
24]
25
Stephen Kiazyke77dce22017-03-14 15:38:12 -070026sharedLibraries = [
27 "libbase",
Jiwen 'Steve' Caia88e3ee2017-11-03 17:33:33 -070028 "libbinder",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070029 "libcutils",
30 "libhardware",
31 "liblog",
32 "libui",
33 "libutils",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080034 "libnativewindow",
35 "libpdx_default_transport",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070036]
37
Corey Tabaka52ea25c2017-09-13 18:02:48 -070038headerLibraries = [
39 "libdvr_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070040 "libnativebase_headers",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070041]
42
43cc_library {
44 srcs: sourceFiles,
45 cflags: [
46 "-DLOG_TAG=\"libbufferhub\"",
Corey Tabaka52ea25c2017-09-13 18:02:48 -070047 "-DTRACE=0",
48 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
Chih-Hung Hsiehe1900832017-10-05 14:27:38 -070049 "-Wall",
50 "-Werror",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070051 ],
52 export_include_dirs: localIncludeFiles,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070053 shared_libs: sharedLibraries,
Corey Tabaka52ea25c2017-09-13 18:02:48 -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 {
Jiwen 'Steve' Cai9e7f3032017-10-20 18:39:47 -070062 srcs: ["buffer_hub-test.cpp"],
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080063 static_libs: ["libbufferhub"],
Stephen Kiazyke77dce22017-03-14 15:38:12 -070064 shared_libs: sharedLibraries,
Corey Tabaka52ea25c2017-09-13 18:02:48 -070065 header_libs: headerLibraries,
Jiwen 'Steve' Cai9e7f3032017-10-20 18:39:47 -070066 name: "buffer_hub-test",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070067}
68