Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2018 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
| 17 | // |
| 18 | // bpfLoad binary |
| 19 | // |
| 20 | cc_binary { |
| 21 | name: "bpfloader", |
| 22 | |
Chenbo Feng | 4c9e9ec | 2018-10-16 20:31:52 -0700 | [diff] [blame] | 23 | defaults: ["bpf_defaults"], |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 24 | cflags: [ |
| 25 | "-Wall", |
| 26 | "-Werror", |
| 27 | "-Wthread-safety", |
| 28 | ], |
| 29 | sanitize: { |
| 30 | integer_overflow: true, |
| 31 | }, |
| 32 | clang: true, |
| 33 | shared_libs: [ |
| 34 | "libcutils", |
Chenbo Feng | 79a4da2 | 2018-11-08 11:32:31 -0800 | [diff] [blame] | 35 | "libbpf_android", |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 36 | "libbase", |
| 37 | "liblog", |
| 38 | "libnetdutils", |
Joel Fernandes | d76a200 | 2018-10-16 13:19:58 -0700 | [diff] [blame] | 39 | "libbpf", |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 40 | ], |
| 41 | srcs: [ |
| 42 | "BpfLoader.cpp", |
| 43 | ], |
| 44 | |
Joel Fernandes | 6e1341e | 2018-11-29 11:36:13 -0800 | [diff] [blame] | 45 | init_rc: ["bpfloader.rc"], |
| 46 | |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 47 | required: [ |
Connor O'Brien | 8fa2949 | 2020-02-14 21:15:43 -0800 | [diff] [blame] | 48 | "time_in_state.o" |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 49 | ], |
| 50 | |
| 51 | } |