1// This is auto-generated. DO NOT EDIT.
2
3// blueprint rules added by vendor/google/build/mainline_modules_sdks.py
4// to support coexistence.
5blueprint_package_includes {
6    match_all: ["com.android.mainline"]
7}
8
9package {
10    // A default list here prevents the license LSC from adding its own list which would
11    // be unnecessary as every module in the sdk already has its own licenses property.
12    default_applicable_licenses: ["Android-Apache-2.0"],
13}
14
15prebuilt_bootclasspath_fragment {
16    name: "com.android.conscrypt-bootclasspath-fragment",
17    // Do not prefer prebuilt if the Soong config variable "module_build_from_source" in namespace "ANDROID" is true.
18    use_source_config_var: {
19        config_namespace: "ANDROID",
20        var_name: "module_build_from_source",
21    },
22    visibility: ["//external/conscrypt:__subpackages__"],
23    apex_available: ["com.android.conscrypt"],
24    licenses: ["conscrypt-module-sdk_external_conscrypt_license"],
25    contents: ["conscrypt"],
26    fragments: [
27        {
28            apex: "com.android.art",
29            module: "art-bootclasspath-fragment",
30        },
31    ],
32    api: {
33        stub_libs: ["conscrypt.module.public.api"],
34    },
35    core_platform_api: {
36        stub_libs: ["conscrypt.module.platform.api"],
37    },
38    hidden_api: {
39        max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"],
40        annotation_flags: "hiddenapi/annotation-flags.csv",
41        metadata: "hiddenapi/metadata.csv",
42        index: "hiddenapi/index.csv",
43        signature_patterns: "hiddenapi/signature-patterns.csv",
44        filtered_stub_flags: "hiddenapi/filtered-stub-flags.csv",
45        filtered_flags: "hiddenapi/filtered-flags.csv",
46    },
47}
48
49java_import {
50    name: "conscrypt",
51    // Do not prefer prebuilt if the Soong config variable "module_build_from_source" in namespace "ANDROID" is true.
52    use_source_config_var: {
53        config_namespace: "ANDROID",
54        var_name: "module_build_from_source",
55    },
56    visibility: [
57        "//device:__subpackages__",
58        "//external/conscrypt:__subpackages__",
59    ],
60    apex_available: [
61        "com.android.conscrypt",
62        "test_com.android.conscrypt",
63    ],
64    licenses: ["conscrypt-module-sdk_external_conscrypt_license"],
65    jars: ["java_boot_libs/snapshot/jars/are/invalid/conscrypt.jar"],
66    min_sdk_version: "29",
67    permitted_packages: [
68        "android.net.ssl",
69        "com.android.org.conscrypt",
70    ],
71}
72
73java_sdk_library_import {
74    name: "conscrypt.module.public.api",
75    // Do not prefer prebuilt if the Soong config variable "module_build_from_source" in namespace "ANDROID" is true.
76    use_source_config_var: {
77        config_namespace: "ANDROID",
78        var_name: "module_build_from_source",
79    },
80    visibility: [
81        "//build/soong/java/core-libraries",
82        "//external/conscrypt",
83        "//frameworks/base",
84        "//frameworks/base/api",
85        "//libcore",
86        "//packages/modules/IPsec",
87        "//packages/modules/common/sdk",
88        "//prebuilts:__subpackages__",
89    ],
90    apex_available: ["//apex_available:platform"],
91    licenses: ["conscrypt-module-sdk_external_conscrypt_license"],
92    shared_library: false,
93    public: {
94        jars: ["sdk_library/public/conscrypt-stubs.jar"],
95        stub_srcs: ["sdk_library/public/conscrypt.srcjar"],
96        current_api: "sdk_library/public/conscrypt.txt",
97        removed_api: "sdk_library/public/conscrypt-removed.txt",
98        annotations: "sdk_library/public/conscrypt_annotations.zip",
99        sdk_version: "none",
100    },
101    system: {
102        jars: ["sdk_library/system/conscrypt-stubs.jar"],
103        stub_srcs: ["sdk_library/system/conscrypt.srcjar"],
104        current_api: "sdk_library/system/conscrypt.txt",
105        removed_api: "sdk_library/system/conscrypt-removed.txt",
106        annotations: "sdk_library/system/conscrypt_annotations.zip",
107        sdk_version: "none",
108    },
109    module_lib: {
110        jars: ["sdk_library/module-lib/conscrypt-stubs.jar"],
111        stub_srcs: ["sdk_library/module-lib/conscrypt.srcjar"],
112        current_api: "sdk_library/module-lib/conscrypt.txt",
113        removed_api: "sdk_library/module-lib/conscrypt-removed.txt",
114        annotations: "sdk_library/module-lib/conscrypt_annotations.zip",
115        sdk_version: "none",
116    },
117}
118
119java_sdk_library_import {
120    name: "conscrypt.module.platform.api",
121    // Do not prefer prebuilt if the Soong config variable "module_build_from_source" in namespace "ANDROID" is true.
122    use_source_config_var: {
123        config_namespace: "ANDROID",
124        var_name: "module_build_from_source",
125    },
126    visibility: [
127        "//build/soong/java/core-libraries",
128        "//external/conscrypt",
129        "//external/wycheproof",
130        "//libcore/mmodules/core_platform_api",
131        "//prebuilts:__subpackages__",
132    ],
133    apex_available: ["//apex_available:platform"],
134    licenses: ["conscrypt-module-sdk_external_conscrypt_license"],
135    shared_library: false,
136    public: {
137        jars: ["sdk_library/public/conscrypt-coreplatform-stubs.jar"],
138        stub_srcs: ["sdk_library/public/conscrypt-coreplatform.srcjar"],
139        current_api: "sdk_library/public/conscrypt-coreplatform.txt",
140        removed_api: "sdk_library/public/conscrypt-coreplatform-removed.txt",
141        sdk_version: "none",
142    },
143}
144
145java_sdk_library_import {
146    name: "conscrypt.module.intra.core.api",
147    // Do not prefer prebuilt if the Soong config variable "module_build_from_source" in namespace "ANDROID" is true.
148    use_source_config_var: {
149        config_namespace: "ANDROID",
150        var_name: "module_build_from_source",
151    },
152    visibility: [
153        "//external/conscrypt",
154        "//external/okhttp",
155        "//libcore:__subpackages__",
156        "//prebuilts:__subpackages__",
157    ],
158    apex_available: ["//apex_available:platform"],
159    licenses: ["conscrypt-module-sdk_external_conscrypt_license"],
160    shared_library: false,
161    public: {
162        jars: ["sdk_library/public/conscrypt.module.intra.core.api-stubs.jar"],
163        stub_srcs: ["sdk_library/public/conscrypt.module.intra.core.api.srcjar"],
164        current_api: "sdk_library/public/conscrypt.module.intra.core.api.txt",
165        removed_api: "sdk_library/public/conscrypt.module.intra.core.api-removed.txt",
166        sdk_version: "none",
167    },
168}
169
170license {
171    name: "conscrypt-module-sdk_external_conscrypt_license",
172    visibility: ["//visibility:private"],
173    license_kinds: [
174        "SPDX-license-identifier-Apache-2.0",
175        "legacy_unencumbered",
176    ],
177    license_text: [
178        "licenses/external/conscrypt/LICENSE",
179        "licenses/external/conscrypt/NOTICE",
180        "licenses/external/conscrypt/licenses/LICENSE.harmony.txt",
181        "licenses/external/conscrypt/licenses/LICENSE.netty.txt",
182    ],
183}
184
185cc_prebuilt_library_shared {
186    name: "libconscrypt_jni",
187    // Do not prefer prebuilt if the Soong config variable "module_build_from_source" in namespace "ANDROID" is true.
188    use_source_config_var: {
189        config_namespace: "ANDROID",
190        var_name: "module_build_from_source",
191    },
192    visibility: ["//external/conscrypt:__subpackages__"],
193    apex_available: ["//apex_available:platform"],
194    licenses: ["conscrypt-module-sdk_external_conscrypt_license"],
195    stl: "c++_static",
196    compile_multilib: "both",
197    shared_libs: ["liblog"],
198    arch: {
199        arm64: {
200            srcs: ["arm64/lib/libconscrypt_jni.so"],
201        },
202        x86_64: {
203            srcs: ["x86_64/lib/libconscrypt_jni.so"],
204        },
205        arm: {
206            srcs: ["arm/lib/libconscrypt_jni.so"],
207        },
208        x86: {
209            srcs: ["x86/lib/libconscrypt_jni.so"],
210        },
211    },
212}
213