-
-
Notifications
You must be signed in to change notification settings - Fork 559
Expand file tree
/
Copy pathMODULE.bazel
More file actions
151 lines (125 loc) · 5.39 KB
/
Copy pathMODULE.bazel
File metadata and controls
151 lines (125 loc) · 5.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
module(name = "maplibre")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "rules_apple", version = "4.3.2")
bazel_dep(name = "rules_swift", version = "3.3.0")
bazel_dep(name = "rules_xcodeproj", version = "3.3.0")
bazel_dep(name = "aspect_rules_js", version = "2.8.1")
bazel_dep(name = "rules_nodejs", version = "6.6.2")
bazel_dep(name = "libuv", version = "1.48.0")
bazel_dep(name = "apple_support", version = "1.24.5", repo_name = "build_bazel_apple_support")
bazel_dep(name = "rules_cc", version = "0.2.14")
bazel_dep(name = "rules_shell", version = "0.6.1")
bazel_dep(name = "rules_swift_package_manager", version = "1.3.0")
bazel_dep(name = "googletest", version = "1.17.0.bcr.2")
bazel_dep(name = "maplibre-tile-spec", version = "0.0.0", repo_name = "maplibre_tile_spec")
local_path_override(
module_name = "maplibre-tile-spec",
path = "vendor/maplibre-tile-spec",
)
# rules_xcodeproj accidentally includes a trailing comma in the generated
# Testing.framework rsync exclusion, causing intermittent test-host build races.
# TODO: Remove this override once the upstream fix is released:
# https://github.com/MobileNativeFoundation/rules_xcodeproj/pull/3321
single_version_override(
module_name = "rules_xcodeproj",
patch_strip = 1,
patches = ["//bazel/patches/rules_xcodeproj:testing-framework.patch"],
version = "3.3.0",
)
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True)
node.toolchain(node_version = "20.14.0")
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)
npm.npm_translate_lock(
name = "npm",
data = ["package.json"],
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
use_repo(npm, "npm")
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")
# Allows developers to use the matching pnpm version, for example:
# bazel run -- @pnpm --dir /home/runner/work/rules_js/rules_js install
use_repo(pnpm, "pnpm")
provisioning_profile_repository = use_extension("@rules_apple//apple:apple.bzl", "provisioning_profile_repository_extension")
provisioning_profile_repository.setup()
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
# This file was created as follows:
# Download shapefile from NPS
# https://public-nps.opendata.arcgis.com/datasets/a40e2faa953b4c5cb7fe10004dc3008e_0/explore?location=0.213550%2C-12.488250%2C2.00
# ogr2ogr -f GeoJSON pois.json -t_srs EPSG:4326 nps-pois.shp
# tippecanoe -o pois-nps.mbtiles pois.json
http_file(
name = "pois_nps_mbtiles",
downloaded_file_path = "pois-nps.mbtiles",
sha256 = "6a218702a5a60bb6358494217cac2836a087355ac092f6b01f089d8b1b2842ca",
url = "https://maplibre-native.s3.eu-central-1.amazonaws.com/ios-swift-example-app-resources/pois-nps.mbtiles",
)
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "glfw",
build_file = "@//vendor:glfw.BUILD",
integrity = "sha256-tewASycS/Qjohh3CcUKPBId1IAot9xnM9XUUO6dJo+k=",
strip_prefix = "glfw-3.4",
urls = ["https://github.com/glfw/glfw/releases/download/3.4/glfw-3.4.zip"],
)
new_git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
new_git_repository(
name = "tinyobjloader",
commit = "3bb554cf74428d7db13418b4aca1b9752a1d2be8",
remote = "https://github.com/tinyobjloader/tinyobjloader.git",
)
swift_deps = use_extension("@rules_swift_package_manager//:extensions.bzl", "swift_deps")
swift_deps.from_package(
resolved = "platform/ios/app-swift/Package.resolved",
swift = "platform/ios/app-swift/Package.swift",
)
# https://github.com/cgrindel/rules_swift_package_manager?tab=readme-ov-file#quickstart
# This is generated by the ruleset. Do not edit
use_repo(
swift_deps,
"swift_package",
"swiftpkg_polyline",
"swiftpkg_sentry_cocoa",
)
darwin_config = use_repo_rule("//platform/darwin:bazel/darwin_config_repository_rule.bzl", "darwin_config")
darwin_config(
name = "darwin_config",
)
bazel_dep(name = "rules_rust", version = "0.67.0")
bazel_dep(name = "cxx.rs", version = "1.0.157")
# The registry is not always up to date
# See https://registry.bazel.build/modules/cxx.rs
git_override(
module_name = "cxx.rs",
remote = "https://github.com/dtolnay/cxx.git",
tag = "1.0.157",
)
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = "2021",
extra_target_triples = [
"aarch64-apple-ios-sim",
"x86_64-apple-ios",
"aarch64-apple-ios",
"aarch64-apple-darwin",
"x86_64-apple-darwin",
],
)
use_repo(rust, "rust_toolchains")
register_toolchains("@rust_toolchains//:all")
# Configure and register shell toolchains required by rules_shell.
# Fixes: "No matching toolchains found for types: @@rules_shell+//shell:toolchain_type"
sh_configure = use_extension("@rules_shell//shell/private/extensions:sh_configure.bzl", "sh_configure")
use_repo(sh_configure, "local_config_shell")
register_toolchains("@local_config_shell//:all")
register_toolchains(
"//bazel/tools/shell:osx_sh_toolchain_exec",
)
crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
crate.from_cargo(
name = "crates",
cargo_lockfile = "//rustutils:Cargo.lock",
manifests = ["//rustutils:Cargo.toml"],
)
use_repo(crate, "crates")