blob: 68b9c811dc15cb628becc5a1ed6a26eb373a13d6 [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",
Chris Forbes73feb062017-04-19 17:16:48 -070028 "libgrallocusage",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070029]
30
31sharedLibraries = [
32 "libbase",
33 "libcutils",
34 "libhardware",
35 "liblog",
36 "libui",
37 "libutils",
38]
39
40cc_library {
41 srcs: sourceFiles,
42 cflags: [
43 "-DLOG_TAG=\"libbufferhub\"",
44 "-DTRACE=0"
45 ],
46 export_include_dirs: localIncludeFiles,
47 static_libs: staticLibraries,
48 shared_libs: sharedLibraries,
49 name: "libbufferhub",
50}
51
52cc_test {
53 tags: ["optional"],
54 srcs: ["bufferhub_tests.cpp"],
55 static_libs: ["libbufferhub"] + staticLibraries,
56 shared_libs: sharedLibraries,
57 name: "bufferhub_tests",
58}
59