# Copyright 2025 - The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the', help='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', help='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. """netsim module""" module( name = "netsim", version = "0.0.1", ) bazel_dep(name = "bazel_skylib", version = "1.8.1") bazel_dep(name = "grpc", version = "1.72.0") bazel_dep(name = "rules_cc", version = "0.2.3") bazel_dep(name = "rules_proto", version = "7.0.2") bazel_dep(name = "rules_python", version = "1.4.0") bazel_dep(name = "rules_rust", version = "0.61.0") bazel_dep(name = "platforms", version = "1.0.0") bazel_dep(name = "protobuf", version = "30.2") # pcre2 needed by glib. bazel_dep(name = "pcre2", version = "10.46-DEV") bazel_dep(name = "glib", version = "2.82.2.bcr.5") # Non-module repos new_local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository") new_local_repository( name = "rootcanal", build_file = "//bazel_deps:rootcanal.BUILD.bazel", path = "../../tools/rootcanal", ) new_local_repository( name = "libslirp", build_file = "//bazel_deps:libslirp.BUILD.bazel", path = "../../external/libslirp", ) new_local_repository( name = "protobuf-rust", build_file = "//bazel_deps:protobuf-rust.BUILD.bazel", path = "../../external/rust/android-crates-io/crates/protobuf", ) [ new_local_repository( name = create, build_file = "//bazel_deps:{}.BUILD.bazel".format(create), path = "../../external/rust/android-crates-io/crates/{}".format(create), ) for create in [ "aho-corasick", "android_log-sys", "anstyle", "anyhow", "argh", "argh_derive", "argh_shared", "arrayvec", "base64", "byteorder", "bytes", "cfg-if", "chrono", "clap", "clap_builder", "clap_derive", "clap_lex", "codespan-reporting", "crc32fast", "crossbeam-utils", "data-encoding", "env_logger", "equivalent", "etherparse", "flate2", "fnv", "foldhash", "futures", "futures-channel", "futures-core", "futures-executor", "futures-io", "futures-macro", "futures-sink", "futures-task", "futures-util", "getrandom", "glam", "grpcio", "grpcio-sys", "hashbrown", "heck", "hex", "http", "httparse", "itoa", "libc", "libz-sys", "libz-rs-sys", "lock_api", "log", "memchr", "mio", "num_cpus", "num-bigint", "num-derive", "num-integer", "num-traits", "once_cell", "parking_lot", "parking_lot_core", "pdl-compiler", "pdl-runtime", "pest", "pest_derive", "pest_generator", "pest_meta", "pin-project-lite", "pin-utils", "ppv-lite86", "prettyplease", "proc-macro2", "protobuf-json-mapping", "protobuf-support", "quote", "rand", "rand_chacha", "rand_core", "regex", "regex-automata", "regex-syntax", "ryu", "scopeguard", "serde", "serde_derive", "serde_json", "signal-hook-registry", "slab", "smallvec", "socket2", "strsim", "syn", "termcolor", "thiserror", "thiserror-impl", "tokio", "tokio-macros", "tokio-stream", "tokio-util", "tungstenite", "ucd-trie", "unicode-ident", "unicode-width", "utf-8", "windows_aarch64_gnullvm", "windows_i686_gnullvm", "windows_x86_64_gnullvm", "windows-sys", "windows-targets", "zerocopy", "zerocopy-derive", "zip", "zlib-rs", ] ] [ new_local_repository( name = crate, build_file = "//bazel_deps:{}.BUILD.bazel".format(crate), path = "../../external/qemu/android/third_party/rust/crates/{}-{}".format(crate, version), ) for crate, version in [ ("aead", "0.5.2"), ("aes", "0.8.4"), ("ccm", "0.5.0"), ("cipher", "0.4.4"), ("cpufeatures", "0.2.16"), ("crypto-common", "0.1.6"), ("ctr", "0.9.2"), ("generic-array", "0.14.7"), ("inout", "0.1.3"), ("subtle", "2.6.1"), ("typenum", "1.17.0"), ] ] new_local_repository( name = "pica", build_file = "//bazel_deps:pica.BUILD.bazel", path = "../../external/rust/crates/pica", ) # Dependencies needed for external/wpa_supplicant_8 bazel_dep(name = "abseil-cpp", version = "20250127.1") bazel_dep(name = "googletest", version = "1.17.0") new_local_repository( name = "wpa_supplicant_8", build_file = "//bazel_deps:wpa_supplicant_8.BUILD.bazel", path = "../../external/wpa_supplicant_8", ) new_local_repository( name = "qemu", build_file = "//bazel_deps:qemu.BUILD.bazel", path = "../../external/qemu", ) new_local_repository( name = "aemu-base", build_file = "//bazel_deps:aemu-base.BUILD.bazel", path = "../../hardware/google/aemu/base", ) new_local_repository( name = "fmtlib", build_file = "//bazel_deps:fmtlib.BUILD.bazel", path = "../../external/fmtlib", ) bazel_dep(name = "boringssl", version = "0.20241024.0") bazel_dep(name = "cxx.rs", version = "1.0.175")