Chris Weir | 7b1428f | 2021-11-22 09:59:07 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2021 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 | |
Bob Badour | dc205e0 | 2021-12-09 18:54:17 -0800 | [diff] [blame] | 17 | package { |
Aditya Choudhary | ad2ba1b | 2024-02-05 15:45:22 +0000 | [diff] [blame] | 18 | default_team: "trendy_team_fwk_wifi_hal", |
Bob Badour | dc205e0 | 2021-12-09 18:54:17 -0800 | [diff] [blame] | 19 | // See: http://go/android-license-faq |
| 20 | // A large-scale-change added 'default_applicable_licenses' to import |
| 21 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 22 | // to get the below license kinds: |
| 23 | // SPDX-license-identifier-Apache-2.0 |
| 24 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 25 | } |
| 26 | |
Chris Weir | 7b1428f | 2021-11-22 09:59:07 -0800 | [diff] [blame] | 27 | cc_binary { |
| 28 | name: "android.hardware.net.nlinterceptor-service.default", |
Chris Weir | 7b1428f | 2021-11-22 09:59:07 -0800 | [diff] [blame] | 29 | vendor: true, |
| 30 | relative_install_path: "hw", |
| 31 | defaults: ["nlinterceptor@defaults"], |
| 32 | shared_libs: [ |
| 33 | "android.hardware.net.nlinterceptor-V1-ndk", |
| 34 | "libbase", |
| 35 | "libbinder_ndk", |
| 36 | ], |
| 37 | static_libs: [ |
| 38 | "libnlinterceptor", |
| 39 | "libnl++", |
| 40 | ], |
| 41 | srcs: [ |
| 42 | "InterceptorRelay.cpp", |
| 43 | "NetlinkInterceptor.cpp", |
| 44 | "service.cpp", |
| 45 | "util.cpp", |
| 46 | ], |
Kenn Frankel | ae3f1fb | 2023-10-19 17:47:27 -0700 | [diff] [blame] | 47 | installable: false, // installed in APEX |
| 48 | } |
| 49 | |
| 50 | apex { |
| 51 | name: "com.android.hardware.net.nlinterceptor", |
| 52 | vendor: true, |
| 53 | manifest: "apex_manifest.json", |
| 54 | file_contexts: "apex_file_contexts", |
| 55 | key: "com.android.hardware.key", |
| 56 | certificate: ":com.android.hardware.certificate", |
| 57 | updatable: false, |
| 58 | binaries: [ |
| 59 | "android.hardware.net.nlinterceptor-service.default", |
| 60 | ], |
| 61 | prebuilts: [ |
| 62 | "nlinterceptor.rc", |
| 63 | "nlinterceptor.xml", |
| 64 | ], |
| 65 | } |
| 66 | |
| 67 | prebuilt_etc { |
| 68 | name: "nlinterceptor.rc", |
| 69 | src: "nlinterceptor.rc", |
| 70 | installable: false, |
| 71 | } |
| 72 | |
| 73 | prebuilt_etc { |
| 74 | name: "nlinterceptor.xml", |
| 75 | src: "nlinterceptor.xml", |
| 76 | sub_dir: "vintf", |
| 77 | installable: false, |
Chris Weir | 7b1428f | 2021-11-22 09:59:07 -0800 | [diff] [blame] | 78 | } |