// Copyright (C) 2022 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// This file is automatically generated by gen_android_bp.py. Do not edit.

// GN: Package-Artificial
package {
    default_applicable_licenses: [
        "tot_cronet_third_party_rust_log_v0_4_license",
    ],
}

// GN: License-Artificial
license {
    name: "tot_cronet_third_party_rust_log_v0_4_license",
    visibility: [
        ":__subpackages__",
    ],
    license_text: [
        "LICENSE",
    ],
    license_kinds: [
        "SPDX-license-identifier-Apache-2.0",
    ],
}

// GN: //third_party/rust/log/v0_4:lib
rust_ffi_static {
    name: "liblog__5ca9d3f4be387055",
    srcs: [
        "src/__private_api.rs",
        "src/kv/error.rs",
        "src/kv/key.rs",
        "src/kv/mod.rs",
        "src/kv/source.rs",
        "src/kv/value.rs",
        "src/lib.rs",
        "src/macros.rs",
        "src/serde.rs",
    ],
    host_cross_supported: false,
    apex_available: [
        "com.android.tethering",
    ],
    min_sdk_version: "30",
    visibility: [
        "//external/cronet:__subpackages__",
    ],
    crate_name: "log",
    crate_root: "src/lib.rs",
    rustlibs: [
        "liballoc_error_handler_impl_ffi__b3956dbf57d32035",
        "libbuild_srust_sallocator_callocator__f1643c64cea8f315",
    ],
    target: {
        android_arm: {
            edition: "2021",
            features: [
                "release_max_level_info",
                "std",
            ],
            flags: [
                "-Cmetadata=log-0.4",
                "-Cforce-unwind-tables=yes",
                "-Crelocation-model=pic",
                "-Cdefault-linker-libraries",
                "-Clto=no",
                "-Ccodegen-units=1",
                "-Copt-level=s",
                "-Cdebuginfo=1",
                "-Awarnings",
            ],
        },
        android_arm64: {
            edition: "2021",
            features: [
                "release_max_level_info",
                "std",
            ],
            flags: [
                "-Cmetadata=log-0.4",
                "-Cforce-unwind-tables=yes",
                "-Crelocation-model=pic",
                "-Cdefault-linker-libraries",
                "-Clto=no",
                "-Ccodegen-units=1",
                "-Copt-level=3",
                "-Cdebuginfo=1",
                "-Awarnings",
            ],
        },
        android_riscv64: {
            edition: "2021",
            features: [
                "release_max_level_info",
                "std",
            ],
            flags: [
                "-Cmetadata=log-0.4",
                "-Cforce-unwind-tables=yes",
                "-Crelocation-model=pic",
                "-Cdefault-linker-libraries",
                "-Clto=no",
                "-Ccodegen-units=1",
                "-Copt-level=s",
                "-Cdebuginfo=1",
                "-Awarnings",
            ],
        },
        android_x86: {
            edition: "2021",
            features: [
                "release_max_level_info",
                "std",
            ],
            flags: [
                "-Cmetadata=log-0.4",
                "-Cforce-unwind-tables=yes",
                "-Crelocation-model=pic",
                "-Cdefault-linker-libraries",
                "-Clto=no",
                "-Ccodegen-units=1",
                "-Copt-level=s",
                "-Cdebuginfo=1",
                "-Awarnings",
            ],
        },
        android_x86_64: {
            edition: "2021",
            features: [
                "release_max_level_info",
                "std",
            ],
            flags: [
                "-Cmetadata=log-0.4",
                "-Cforce-unwind-tables=yes",
                "-Crelocation-model=pic",
                "-Cdefault-linker-libraries",
                "-Clto=no",
                "-Ccodegen-units=1",
                "-Copt-level=3",
                "-Cdebuginfo=1",
                "-Awarnings",
            ],
        },
        host: {
            compile_multilib: "64",
        },
    },
}

// GN: //third_party/rust/log/v0_4:lib__testing
rust_ffi_static {
    name: "liblog__7d83bd71ca2985fc",
    srcs: [
        "src/__private_api.rs",
        "src/kv/error.rs",
        "src/kv/key.rs",
        "src/kv/mod.rs",
        "src/kv/source.rs",
        "src/kv/value.rs",
        "src/lib.rs",
        "src/macros.rs",
        "src/serde.rs",
    ],
    host_supported: true,
    host_cross_supported: false,
    apex_available: [
        "com.android.tethering",
    ],
    min_sdk_version: "30",
    visibility: [
        "//external/cronet:__subpackages__",
    ],
    crate_name: "log",
    crate_root: "src/lib.rs",
    rustlibs: [
        "liballoc_error_handler_impl_ffi__c9b74a82dac7abd8",
        "libbuild_srust_sallocator_callocator__005dbc46df2cb5b2",
    ],
    target: {
        android_arm: {
            edition: "2021",
            features: [
                "release_max_level_info",
                "std",
            ],
            flags: [
                "-Cmetadata=log-0.4",
                "-Cforce-unwind-tables=yes",
                "-Crelocation-model=pic",
                "-Cdefault-linker-libraries",
                "-Clto=no",
                "-Ccodegen-units=1",
                "-Copt-level=s",
                "-Cdebuginfo=1",
                "-Awarnings",
            ],
        },
        android_arm64: {
            edition: "2021",
            features: [
                "release_max_level_info",
                "std",
            ],
            flags: [
                "-Cmetadata=log-0.4",
                "-Cforce-unwind-tables=yes",
                "-Crelocation-model=pic",
                "-Cdefault-linker-libraries",
                "-Clto=no",
                "-Ccodegen-units=1",
                "-Copt-level=3",
                "-Cdebuginfo=1",
                "-Awarnings",
            ],
        },
        android_riscv64: {
            edition: "2021",
            features: [
                "release_max_level_info",
                "std",
            ],
            flags: [
                "-Cmetadata=log-0.4",
                "-Cforce-unwind-tables=yes",
                "-Crelocation-model=pic",
                "-Cdefault-linker-libraries",
                "-Clto=no",
                "-Ccodegen-units=1",
                "-Copt-level=s",
                "-Cdebuginfo=1",
                "-Awarnings",
            ],
        },
        android_x86: {
            edition: "2021",
            features: [
                "release_max_level_info",
                "std",
            ],
            flags: [
                "-Cmetadata=log-0.4",
                "-Cforce-unwind-tables=yes",
                "-Crelocation-model=pic",
                "-Cdefault-linker-libraries",
                "-Clto=no",
                "-Ccodegen-units=1",
                "-Copt-level=s",
                "-Cdebuginfo=1",
                "-Awarnings",
            ],
        },
        android_x86_64: {
            edition: "2021",
            features: [
                "release_max_level_info",
                "std",
            ],
            flags: [
                "-Cmetadata=log-0.4",
                "-Cforce-unwind-tables=yes",
                "-Crelocation-model=pic",
                "-Cdefault-linker-libraries",
                "-Clto=no",
                "-Ccodegen-units=1",
                "-Copt-level=3",
                "-Cdebuginfo=1",
                "-Awarnings",
            ],
        },
        host: {
            compile_multilib: "64",
            edition: "2021",
            features: [
                "release_max_level_info",
                "std",
            ],
            flags: [
                "-Cmetadata=log-0.4",
                "-Cforce-unwind-tables=no",
                "-Crelocation-model=pic",
                "-Cdefault-linker-libraries",
                "-Clto=no",
                "-Ccodegen-units=1",
                "-Copt-level=3",
                "-Cdebuginfo=1",
                "-Awarnings",
            ],
        },
    },
}
