• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1workspace(name = "org_tensorflow")
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
4
5http_archive(
6    name = "io_bazel_rules_closure",
7    sha256 = "43c9b882fa921923bcba764453f4058d102bece35a37c9f6383c713004aacff1",
8    strip_prefix = "rules_closure-9889e2348259a5aad7e805547c1a0cf311cfcd91",
9    urls = [
10        "https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/9889e2348259a5aad7e805547c1a0cf311cfcd91.tar.gz",
11        "https://github.com/bazelbuild/rules_closure/archive/9889e2348259a5aad7e805547c1a0cf311cfcd91.tar.gz",  # 2018-12-21
12    ],
13)
14
15load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
16
17closure_repositories()
18
19load("//third_party/toolchains/preconfig/generate:archives.bzl",
20     "bazel_toolchains_archive")
21
22bazel_toolchains_archive()
23
24load(
25    "@bazel_toolchains//repositories:repositories.bzl",
26    bazel_toolchains_repositories = "repositories",
27)
28
29bazel_toolchains_repositories()
30
31load(
32    "@io_bazel_rules_docker//repositories:repositories.bzl",
33    container_repositories = "repositories",
34)
35
36container_repositories()
37
38load("//third_party/toolchains/preconfig/generate:workspace.bzl",
39     "remote_config_workspace")
40
41remote_config_workspace()
42
43# Apple and Swift rules.
44http_archive(
45    name = "build_bazel_rules_apple",
46    sha256 = "4b90786009fa8df25230442244bad2832ba8d6bc4987f68150a7de59c8827e90",
47    strip_prefix = "rules_apple-0.14.0",
48    urls = ["https://github.com/bazelbuild/rules_apple/archive/0.14.0.tar.gz"],
49)
50http_file(
51    name = "xctestrunner",
52    executable = 1,
53    urls = ["https://github.com/google/xctestrunner/releases/download/0.2.6/ios_test_runner.par"],
54)
55
56http_archive(
57    name = "bazel_skylib",
58    sha256 = "2c62d8cd4ab1e65c08647eb4afe38f51591f43f7f0885e7769832fa137633dcb",
59    strip_prefix = "bazel-skylib-0.7.0",
60    urls = ["https://github.com/bazelbuild/bazel-skylib/archive/0.7.0.tar.gz"],
61)
62
63http_archive(
64    name = "build_bazel_apple_support",
65    sha256 = "835663c4bb02f4bf01dce8a2a176df7fa682dbb867d3698ae12258c1628bb8f0",
66    strip_prefix = "apple_support-0.5.0",
67    urls = ["https://github.com/bazelbuild/apple_support/archive/0.5.0.tar.gz"],
68)
69
70http_archive(
71    name = "build_bazel_rules_swift",
72    sha256 = "32d124878cd49775d84f59ba90440c8b23b7c775aec8fec1978f751c76ddee8a",
73    strip_prefix = "rules_swift-0.7.0",
74    urls = ["https://github.com/bazelbuild/rules_swift/archive/0.7.0.tar.gz"],
75)
76
77http_archive(
78    name = "com_github_apple_swift_swift_protobuf",
79    type = "zip",
80    strip_prefix = "swift-protobuf-1.2.0/",
81    urls = ["https://github.com/apple/swift-protobuf/archive/1.2.0.zip"],
82)
83
84# Use swift_rules_dependencies to fetch the tolchains.
85# Since we defined all the "git_repository" rules above, the following call will
86# skip redefining them.
87load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies")
88swift_rules_dependencies()
89
90# We must check the bazel version before trying to parse any other BUILD
91# files, in case the parsing of those build files depends on the bazel
92# version we require here.
93load("//tensorflow:version_check.bzl", "check_bazel_version_at_least")
94check_bazel_version_at_least("0.19.0")
95
96load("//tensorflow:workspace.bzl", "tf_workspace")
97
98load("//third_party/android:android_configure.bzl", "android_configure")
99android_configure(name="local_config_android")
100load("@local_config_android//:android.bzl", "android_workspace")
101android_workspace()
102
103# Please add all new TensorFlow dependencies in workspace.bzl.
104tf_workspace()
105
106http_archive(
107    name = "inception_v1",
108    build_file = "//:models.BUILD",
109    sha256 = "7efe12a8363f09bc24d7b7a450304a15655a57a7751929b2c1593a71183bb105",
110    urls = [
111        "http://storage.googleapis.com/download.tensorflow.org/models/inception_v1.zip",
112        "http://download.tensorflow.org/models/inception_v1.zip",
113    ],
114)
115
116http_archive(
117    name = "mobile_ssd",
118    build_file = "//:models.BUILD",
119    sha256 = "bddd81ea5c80a97adfac1c9f770e6f55cbafd7cce4d3bbe15fbeb041e6b8f3e8",
120    urls = [
121        "http://storage.googleapis.com/download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
122        "http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_android_export.zip",
123    ],
124)
125
126http_archive(
127    name = "mobile_multibox",
128    build_file = "//:models.BUILD",
129    sha256 = "859edcddf84dddb974c36c36cfc1f74555148e9c9213dedacf1d6b613ad52b96",
130    urls = [
131        "http://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip",
132        "http://download.tensorflow.org/models/mobile_multibox_v1a.zip",
133    ],
134)
135
136http_archive(
137    name = "stylize",
138    build_file = "//:models.BUILD",
139    sha256 = "3d374a730aef330424a356a8d4f04d8a54277c425e274ecb7d9c83aa912c6bfa",
140    urls = [
141        "http://storage.googleapis.com/download.tensorflow.org/models/stylize_v1.zip",
142        "http://download.tensorflow.org/models/stylize_v1.zip",
143    ],
144)
145
146http_archive(
147    name = "speech_commands",
148    build_file = "//:models.BUILD",
149    sha256 = "c3ec4fea3158eb111f1d932336351edfe8bd515bb6e87aad4f25dbad0a600d0c",
150    urls = [
151        "http://storage.googleapis.com/download.tensorflow.org/models/speech_commands_v0.01.zip",
152        "http://download.tensorflow.org/models/speech_commands_v0.01.zip",
153    ],
154)
155