Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [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 | // Library including the network stack, used to compile the network stack app, or linked into the |
| 18 | // system server on devices that run the stack there |
| 19 | java_library { |
| 20 | name: "NetworkStackLib", |
Remi NGUYEN VAN | 4c30b41 | 2019-01-29 21:32:48 +0900 | [diff] [blame^] | 21 | sdk_version: "system_current", |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 22 | installable: true, |
| 23 | srcs: [ |
| 24 | "src/**/*.java", |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 25 | ":framework-networkstack-shared-srcs", |
Remi NGUYEN VAN | e67b0c3a | 2018-12-27 16:43:56 +0900 | [diff] [blame] | 26 | ":services-networkstack-shared-srcs", |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 27 | ], |
Remi NGUYEN VAN | 0e3d0923 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 28 | static_libs: [ |
Remi NGUYEN VAN | 231b52b | 2019-01-29 15:38:52 +0900 | [diff] [blame] | 29 | "netd_aidl_interface-java", |
| 30 | "networkstack-aidl-interfaces-java", |
Remi NGUYEN VAN | 0e3d0923 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 31 | ] |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | // Updatable network stack packaged as an application |
| 35 | android_app { |
| 36 | name: "NetworkStack", |
Remi NGUYEN VAN | 4c30b41 | 2019-01-29 21:32:48 +0900 | [diff] [blame^] | 37 | sdk_version: "system_current", |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 38 | certificate: "platform", |
| 39 | privileged: true, |
| 40 | static_libs: [ |
| 41 | "NetworkStackLib" |
| 42 | ], |
| 43 | manifest: "AndroidManifest.xml", |
| 44 | } |