1// This is auto-generated. DO NOT EDIT.
2
3package {
4    // A default list here prevents the license LSC from adding its own list which would
5    // be unnecessary as every module in the sdk already has its own licenses property.
6    default_applicable_licenses: ["Android-Apache-2.0"],
7}
8
9apex_contributions_defaults {
10    name: "conscrypt-module-host-exports.contributions",
11    contents: [
12        "prebuilt_conscrypt-unbundled",
13        "prebuilt_libconscrypt_openjdk_jni",
14    ],
15}
16
17java_import {
18    name: "conscrypt-unbundled",
19    visibility: ["//visibility:public"],
20    apex_available: ["//apex_available:platform"],
21    licenses: ["conscrypt-module-host-exports_external_conscrypt_license"],
22    device_supported: false,
23    host_supported: true,
24    min_sdk_version: "31",
25    target: {
26        linux_bionic: {
27            jars: ["java/linux_bionic/conscrypt-unbundled.jar"],
28        },
29        linux_glibc: {
30            jars: ["java/linux_glibc/conscrypt-unbundled.jar"],
31        },
32    },
33}
34
35license {
36    name: "conscrypt-module-host-exports_external_conscrypt_license",
37    visibility: ["//visibility:private"],
38    license_kinds: [
39        "SPDX-license-identifier-Apache-2.0",
40        "legacy_unencumbered",
41    ],
42    license_text: [
43        "licenses/external/conscrypt/LICENSE",
44        "licenses/external/conscrypt/NOTICE",
45        "licenses/external/conscrypt/licenses/LICENSE.harmony.txt",
46        "licenses/external/conscrypt/licenses/LICENSE.netty.txt",
47    ],
48}
49
50cc_prebuilt_library_shared {
51    name: "libconscrypt_openjdk_jni",
52    visibility: ["//visibility:public"],
53    apex_available: ["//apex_available:platform"],
54    licenses: ["conscrypt-module-host-exports_external_conscrypt_license"],
55    device_supported: false,
56    host_supported: true,
57    stl: "libc++_static",
58    sanitize: {
59        never: true,
60    },
61    target: {
62        host: {
63            enabled: false,
64        },
65        linux_bionic: {
66            compile_multilib: "64",
67        },
68        linux_bionic_x86_64: {
69            enabled: true,
70            srcs: ["linux_bionic/x86_64/lib/libconscrypt_openjdk_jni.so"],
71        },
72        linux_glibc: {
73            compile_multilib: "both",
74        },
75        linux_glibc_x86_64: {
76            enabled: true,
77            srcs: ["linux_glibc/x86_64/lib/libconscrypt_openjdk_jni.so"],
78        },
79        linux_glibc_x86: {
80            enabled: true,
81            srcs: ["linux_glibc/x86/lib/libconscrypt_openjdk_jni.so"],
82        },
83    },
84    strip: {
85        none: true,
86    },
87}
88