forked from Snapchat/djinni
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
77 lines (62 loc) · 2.79 KB
/
WORKSPACE
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
workspace(name="snap_djinni")
load("//bzl:deps.bzl", "djinni_deps")
djinni_deps()
load("//bzl:scala_config.bzl", "djinni_scala_config")
djinni_scala_config()
load("//bzl:setup_deps.bzl", "djinni_setup_deps")
djinni_setup_deps()
# --- Everything below is only used for examples and tests
# android_sdk_repository fails to find build_tools if we don't explicitly set a version.
android_sdk_repository(name = "androidsdk")
android_ndk_repository(name = "androidndk", api_level = 21)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
build_bazel_rules_apple_version = "1.0.1"
http_archive(
name = "build_bazel_rules_apple",
sha256 = "36072d4f3614d309d6a703da0dfe48684ec4c65a89611aeb9590b45af7a3e592",
url = "https://github.com/bazelbuild/rules_apple/releases/download/{0}/rules_apple.{0}.tar.gz"
.format(build_bazel_rules_apple_version),
)
build_bazel_rules_swift_version = "1.0.0"
http_archive(
name = "build_bazel_rules_swift",
sha256 = "12057b7aa904467284eee640de5e33853e51d8e31aae50b3fb25d2823d51c6b8",
url = "https://github.com/bazelbuild/rules_swift/releases/download/{0}/rules_swift.{0}.tar.gz"
.format(build_bazel_rules_swift_version),
)
build_bazel_apple_support_version = "1.0.0"
http_archive(
name = "build_bazel_apple_support",
sha256 = "df317473b5894dd8eb432240d209271ebc83c76bb30c55481374b36ddf1e4fd1",
url = "https://github.com/bazelbuild/apple_support/releases/download/{0}/apple_support.{0}.tar.gz"
.format(build_bazel_apple_support_version),
)
rules_kotlin_version = "legacy-1.3.0"
http_archive(
name = "io_bazel_rules_kotlin",
url = "https://github.com/bazelbuild/rules_kotlin/archive/{}.zip".format(rules_kotlin_version),
type = "zip",
strip_prefix = "rules_kotlin-{}".format(rules_kotlin_version),
sha256 = "4fd769fb0db5d3c6240df8a9500515775101964eebdf85a3f9f0511130885fde",
)
load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")
load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies")
load("@build_bazel_apple_support//lib:repositories.bzl", "apple_support_dependencies")
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains")
apple_rules_dependencies()
swift_rules_dependencies()
apple_support_dependencies()
kotlin_repositories()
kt_register_toolchains()
emsdk_version = "3.1.8"
http_archive(
name = "emsdk",
strip_prefix = "emsdk-%s/bazel" % emsdk_version,
type = "zip",
url = "https://github.com/emscripten-core/emsdk/archive/%s.zip" % emsdk_version,
sha256 = "7795202a50ab09958d8943f79110de4386ff0f38bf4c97ec1a896885f28fe1cf",
)
load("@emsdk//:deps.bzl", emsdk_deps = "deps")
emsdk_deps()
load("@emsdk//:emscripten_deps.bzl", emsdk_emscripten_deps = "emscripten_deps")
emsdk_emscripten_deps()