| Paul Thomson | f44c6b8 | 2021-12-01 13:53:58 +0000 | [diff] [blame] | 1 | // Copyright 2022 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 | |
| 15 | package { |
| 16 | default_applicable_licenses: ["frameworks_native_license"], |
| 17 | } |
| 18 | |
| 19 | cc_library_shared { |
| 20 | name: "libgpuwork", |
| 21 | srcs: [ |
| 22 | "GpuWork.cpp", |
| 23 | ], |
| 24 | header_libs: [ |
| Maciej Żenczykowski | 4710630 | 2022-02-10 15:59:07 -0800 | [diff] [blame] | 25 | "bpf_headers", |
| Paul Thomson | f44c6b8 | 2021-12-01 13:53:58 +0000 | [diff] [blame] | 26 | "gpu_work_structs", |
| 27 | ], |
| 28 | shared_libs: [ |
| 29 | "libbase", |
| Paul Thomson | 17298bc | 2022-01-06 17:58:08 +0000 | [diff] [blame] | 30 | "libbinder", |
| Paul Thomson | f44c6b8 | 2021-12-01 13:53:58 +0000 | [diff] [blame] | 31 | "libbpf_bcc", |
| Paul Thomson | f44c6b8 | 2021-12-01 13:53:58 +0000 | [diff] [blame] | 32 | "libcutils", |
| 33 | "liblog", |
| Paul Thomson | 17298bc | 2022-01-06 17:58:08 +0000 | [diff] [blame] | 34 | "libstatslog", |
| 35 | "libstatspull", |
| Paul Thomson | f44c6b8 | 2021-12-01 13:53:58 +0000 | [diff] [blame] | 36 | "libutils", |
| 37 | ], |
| 38 | export_include_dirs: [ |
| 39 | "include", |
| 40 | ], |
| 41 | export_header_lib_headers: [ |
| 42 | "gpu_work_structs", |
| 43 | ], |
| 44 | export_shared_lib_headers: [ |
| 45 | "libbase", |
| Paul Thomson | 17298bc | 2022-01-06 17:58:08 +0000 | [diff] [blame] | 46 | "libstatspull", |
| Paul Thomson | f44c6b8 | 2021-12-01 13:53:58 +0000 | [diff] [blame] | 47 | ], |
| 48 | cppflags: [ |
| 49 | "-Wall", |
| 50 | "-Werror", |
| 51 | "-Wformat", |
| 52 | "-Wthread-safety", |
| 53 | "-Wunused", |
| 54 | "-Wunreachable-code", |
| 55 | ], |
| 56 | required: [ |
| 57 | "bpfloader", |
| 58 | "gpu_work.o", |
| 59 | ], |
| 60 | } |