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", |
Chiachang Wang | f09e3e3 | 2019-02-22 11:13:07 +0800 | [diff] [blame^] | 31 | "datastallprotosnano", |
Remi NGUYEN VAN | 0e3d0923 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 32 | ] |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | // Updatable network stack packaged as an application |
| 36 | android_app { |
| 37 | name: "NetworkStack", |
Remi NGUYEN VAN | 4c30b41 | 2019-01-29 21:32:48 +0900 | [diff] [blame] | 38 | sdk_version: "system_current", |
Remi NGUYEN VAN | ab96bc7 | 2019-02-15 17:45:03 +0900 | [diff] [blame] | 39 | certificate: "networkstack", |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 40 | privileged: true, |
| 41 | static_libs: [ |
| 42 | "NetworkStackLib" |
| 43 | ], |
Remi NGUYEN VAN | 1b57e8e | 2019-02-14 18:19:14 +0900 | [diff] [blame] | 44 | jarjar_rules: "jarjar-rules-shared.txt", |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 45 | manifest: "AndroidManifest.xml", |
Remi NGUYEN VAN | d8c75a0 | 2019-01-30 21:45:56 +0900 | [diff] [blame] | 46 | required: ["NetworkStackPermissionStub"], |
Chiachang Wang | f09e3e3 | 2019-02-22 11:13:07 +0800 | [diff] [blame^] | 47 | } |