...

Text file src/github.com/google/flatbuffers/WORKSPACE

Documentation: github.com/google/flatbuffers

     1workspace(name = "com_github_google_flatbuffers")
     2
     3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
     4
     5http_archive(
     6    name = "platforms",
     7    sha256 = "379113459b0feaf6bfbb584a91874c065078aa673222846ac765f86661c27407",
     8    urls = [
     9        "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz",
    10        "https://github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz",
    11    ],
    12)
    13
    14http_archive(
    15    name = "build_bazel_rules_swift",
    16    sha256 = "a2fd565e527f83fb3f9eb07eb9737240e668c9242d3bc318712efa54a7deda97",
    17    url = "https://github.com/bazelbuild/rules_swift/releases/download/0.27.0/rules_swift.0.27.0.tar.gz",
    18)
    19
    20load(
    21    "@build_bazel_rules_swift//swift:repositories.bzl",
    22    "swift_rules_dependencies",
    23)
    24
    25swift_rules_dependencies()
    26
    27load(
    28    "@build_bazel_rules_swift//swift:extras.bzl",
    29    "swift_rules_extra_dependencies",
    30)
    31
    32swift_rules_extra_dependencies()
    33
    34http_archive(
    35    name = "io_bazel_rules_go",
    36    sha256 = "ae013bf35bd23234d1dea46b079f1e05ba74ac0321423830119d3e787ec73483",
    37    urls = [
    38        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.36.0/rules_go-v0.36.0.zip",
    39        "https://github.com/bazelbuild/rules_go/releases/download/v0.36.0/rules_go-v0.36.0.zip",
    40    ],
    41)
    42
    43load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies")
    44
    45go_rules_dependencies()
    46
    47##### Protobuf
    48_PROTOBUF_VERSION = "3.15.2"
    49
    50http_archive(
    51    name = "com_google_protobuf",
    52    strip_prefix = "protobuf-" + _PROTOBUF_VERSION,
    53    urls = [
    54        "https://github.com/protocolbuffers/protobuf/archive/v" + _PROTOBUF_VERSION + ".tar.gz",
    55    ],
    56)
    57
    58##### GRPC
    59_GRPC_VERSION = "1.49.0"  # https://github.com/grpc/grpc/releases/tag/v1.48.0
    60
    61http_archive(
    62    name = "com_github_grpc_grpc",
    63    patch_args = ["-p1"],
    64    patches = ["//grpc:build_grpc_with_cxx14.patch"],
    65    sha256 = "15715e1847cc9e42014f02c727dbcb48e39dbdb90f79ad3d66fe4361709ff935",
    66    strip_prefix = "grpc-" + _GRPC_VERSION,
    67    urls = ["https://github.com/grpc/grpc/archive/refs/tags/v" + _GRPC_VERSION + ".tar.gz"],
    68)
    69
    70load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
    71
    72grpc_deps()
    73
    74load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
    75
    76grpc_extra_deps()
    77
    78# rules_go from https://github.com/bazelbuild/rules_go/releases/tag/v0.34.0
    79
    80http_archive(
    81    name = "aspect_rules_js",
    82    sha256 = "124ed29fb0b3d0cba5b44f8f8e07897cf61b34e35e33b1f83d1a943dfd91b193",
    83    strip_prefix = "rules_js-1.24.0",
    84    url = "https://github.com/aspect-build/rules_js/releases/download/v1.24.0/rules_js-v1.24.0.tar.gz",
    85)
    86
    87load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
    88
    89rules_js_dependencies()
    90
    91load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock", "pnpm_repository")
    92
    93pnpm_repository(name = "pnpm")
    94
    95http_archive(
    96    name = "aspect_rules_ts",
    97    sha256 = "8eb25d1fdafc0836f5778d33fb8eaac37c64176481d67872b54b0a05de5be5c0",
    98    strip_prefix = "rules_ts-1.3.3",
    99    url = "https://github.com/aspect-build/rules_ts/releases/download/v1.3.3/rules_ts-v1.3.3.tar.gz",
   100)
   101
   102load("@aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies")
   103
   104rules_ts_dependencies(
   105    # Since rules_ts doesn't always have the newest integrity hashes, we
   106    # compute it manually here.
   107    #   $ curl --silent https://registry.npmjs.org/typescript/5.0.4 | jq ._integrity
   108    ts_integrity = "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==",
   109    ts_version_from = "//:package.json",
   110)
   111
   112load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
   113
   114nodejs_register_toolchains(
   115    name = "nodejs",
   116    node_version = DEFAULT_NODE_VERSION,
   117)
   118
   119npm_translate_lock(
   120    name = "npm",
   121    npmrc = "//:.npmrc",
   122    pnpm_lock = "//:pnpm-lock.yaml",
   123    # Set this to True when the lock file needs to be updated, commit the
   124    # changes, then set to False again.
   125    update_pnpm_lock = False,
   126    verify_node_modules_ignored = "//:.bazelignore",
   127)
   128
   129load("@npm//:repositories.bzl", "npm_repositories")
   130
   131npm_repositories()
   132
   133http_archive(
   134    name = "aspect_rules_esbuild",
   135    sha256 = "2ea31bd97181a315e048be693ddc2815fddda0f3a12ca7b7cc6e91e80f31bac7",
   136    strip_prefix = "rules_esbuild-0.14.4",
   137    url = "https://github.com/aspect-build/rules_esbuild/releases/download/v0.14.4/rules_esbuild-v0.14.4.tar.gz",
   138)
   139
   140# Register a toolchain containing esbuild npm package and native bindings
   141load("@aspect_rules_esbuild//esbuild:repositories.bzl", "LATEST_VERSION", "esbuild_register_toolchains")
   142
   143esbuild_register_toolchains(
   144    name = "esbuild",
   145    esbuild_version = LATEST_VERSION,
   146)
   147
   148http_file(
   149    name = "bazel_linux_x86_64",
   150    downloaded_file_path = "bazel",
   151    executable = True,
   152    sha256 = "e89747d63443e225b140d7d37ded952dacea73aaed896bca01ccd745827c6289",
   153    urls = [
   154        "https://github.com/bazelbuild/bazel/releases/download/6.1.2/bazel-6.1.2-linux-x86_64",
   155    ],
   156)

View as plain text