Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Android/hardware/hardware/nxp/nxp_mcu_loader/   (Android Betriebssystem Version 17©)  Datei vom 26.5.2026 mit Größe 2 kB image not shown  

Quelle  Android.bp   Sprache: unbekannt

 
Spracherkennung für: .bp vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

// Copyright (C) 2025 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.
package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

// Library

rust_defaults {
    name: "libnxp_mcu_loader_defaults",
    srcs: ["src/lib.rs"],
    host_supported: true,
    rustlibs: [
        "libanyhow",
        "libcrc",
        "libdowncast_rs",
        "libgpio_cdev",
        "liblog_rust",
        "libnix",
        "libnum_enum",
        "libserialport",
        "libspidev",
        "libstrum",
    ],
    proc_macros: [
        "libstrum_macros",
    ],
}

rust_library {
    name: "libnxp_mcu_loader",
    crate_name: "nxp_mcu_loader",
    defaults: ["libnxp_mcu_loader_defaults"],
    host_supported: true,
    vendor_available: true,
}

rust_test_host {
    name: "libnxp_mcu_loader_unit_tests",
    defaults: ["libnxp_mcu_loader_defaults"],
    test_suites: ["general-tests"],
    rustlibs: [
        "libenv_logger",
        "libtempfile",
    ],
}

// CLI

rust_defaults {
    name: "nxp_mcu_loader_defaults",
    srcs: ["src/bin/nxp-mcu-loader/main.rs"],
    host_supported: true,
    rustlibs: [
        "libanyhow",
        "libgpio_cdev",
        "liblog_rust",
        "libstrum",
        "libclap",
        "libclap_builder",
        "libenv_logger",
        "libnxp_mcu_loader",
    ],
    proc_macros: [
        "libclap_derive",
    ],
}

rust_binary {
    name: "nxp_mcu_loader",
    defaults: ["nxp_mcu_loader_defaults"],
    vendor_available: true,
    prefer_rlib: true, // Statically link rustlibs
}

[Dauer der Verarbeitung: 0.18 Sekunden, vorverarbeitet 2026-06-28]