@@ -54,6 +54,76 @@ load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependen
54
54
55
55
rules_foreign_cc_dependencies ()
56
56
57
+ http_archive (
58
+ name = "com_google_protobuf" ,
59
+ sha256 = "87407cd28e7a9c95d9f61a098a53cf031109d451a7763e7dd1253abf8b4df422" ,
60
+ strip_prefix = "protobuf-3.19.1" ,
61
+ urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz" ],
62
+ patches = [
63
+ "@//third_party:com_google_protobuf_fixes.diff"
64
+ ],
65
+ patch_args = [
66
+ "-p1" ,
67
+ ],
68
+ )
69
+
70
+ # Load Zlib before initializing TensorFlow and the iOS build rules to guarantee
71
+ # that the target @zlib//:mini_zlib is available
72
+ http_archive (
73
+ name = "zlib" ,
74
+ build_file = "@//third_party:zlib.BUILD" ,
75
+ sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1" ,
76
+ strip_prefix = "zlib-1.2.11" ,
77
+ urls = [
78
+ "http://mirror.bazel.build/zlib.net/fossils/zlib-1.2.11.tar.gz" ,
79
+ "http://zlib.net/fossils/zlib-1.2.11.tar.gz" , # 2017-01-15
80
+ ],
81
+ patches = [
82
+ "@//third_party:zlib.diff" ,
83
+ ],
84
+ patch_args = [
85
+ "-p1" ,
86
+ ],
87
+ )
88
+
89
+ # iOS basic build deps.
90
+ http_archive (
91
+ name = "build_bazel_rules_apple" ,
92
+ sha256 = "3e2c7ae0ddd181c4053b6491dad1d01ae29011bc322ca87eea45957c76d3a0c3" ,
93
+ url = "https://github.com/bazelbuild/rules_apple/releases/download/2.1.0/rules_apple.2.1.0.tar.gz" ,
94
+ patches = [
95
+ # Bypass checking ios unit test runner when building MP ios applications.
96
+ "@//third_party:build_bazel_rules_apple_bypass_test_runner_check.diff"
97
+ ],
98
+ patch_args = [
99
+ "-p1" ,
100
+ ],
101
+ )
102
+
103
+ load (
104
+ "@build_bazel_rules_apple//apple:repositories.bzl" ,
105
+ "apple_rules_dependencies" ,
106
+ )
107
+ apple_rules_dependencies ()
108
+
109
+ load (
110
+ "@build_bazel_rules_swift//swift:repositories.bzl" ,
111
+ "swift_rules_dependencies" ,
112
+ )
113
+ swift_rules_dependencies ()
114
+
115
+ load (
116
+ "@build_bazel_rules_swift//swift:extras.bzl" ,
117
+ "swift_rules_extra_dependencies" ,
118
+ )
119
+ swift_rules_extra_dependencies ()
120
+
121
+ load (
122
+ "@build_bazel_apple_support//lib:repositories.bzl" ,
123
+ "apple_support_dependencies" ,
124
+ )
125
+ apple_support_dependencies ()
126
+
57
127
# This is used to select all contents of the archives for CMake-based packages to give CMake access to them.
58
128
all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
59
129
@@ -133,19 +203,6 @@ http_archive(
133
203
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz" ],
134
204
)
135
205
136
- http_archive (
137
- name = "com_google_protobuf" ,
138
- sha256 = "87407cd28e7a9c95d9f61a098a53cf031109d451a7763e7dd1253abf8b4df422" ,
139
- strip_prefix = "protobuf-3.19.1" ,
140
- urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz" ],
141
- patches = [
142
- "@//third_party:com_google_protobuf_fixes.diff"
143
- ],
144
- patch_args = [
145
- "-p1" ,
146
- ],
147
- )
148
-
149
206
load ("@//third_party/flatbuffers:workspace.bzl" , flatbuffers = "repo" )
150
207
flatbuffers ()
151
208
@@ -319,63 +376,6 @@ http_archive(
319
376
],
320
377
)
321
378
322
- # Load Zlib before initializing TensorFlow and the iOS build rules to guarantee
323
- # that the target @zlib//:mini_zlib is available
324
- http_archive (
325
- name = "zlib" ,
326
- build_file = "@//third_party:zlib.BUILD" ,
327
- sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1" ,
328
- strip_prefix = "zlib-1.2.11" ,
329
- urls = [
330
- "http://mirror.bazel.build/zlib.net/fossils/zlib-1.2.11.tar.gz" ,
331
- "http://zlib.net/fossils/zlib-1.2.11.tar.gz" , # 2017-01-15
332
- ],
333
- patches = [
334
- "@//third_party:zlib.diff" ,
335
- ],
336
- patch_args = [
337
- "-p1" ,
338
- ],
339
- )
340
-
341
- # iOS basic build deps.
342
- http_archive (
343
- name = "build_bazel_rules_apple" ,
344
- sha256 = "f94e6dddf74739ef5cb30f000e13a2a613f6ebfa5e63588305a71fce8a8a9911" ,
345
- url = "https://github.com/bazelbuild/rules_apple/releases/download/1.1.3/rules_apple.1.1.3.tar.gz" ,
346
- patches = [
347
- # Bypass checking ios unit test runner when building MP ios applications.
348
- "@//third_party:build_bazel_rules_apple_bypass_test_runner_check.diff"
349
- ],
350
- patch_args = [
351
- "-p1" ,
352
- ],
353
- )
354
-
355
- load (
356
- "@build_bazel_rules_apple//apple:repositories.bzl" ,
357
- "apple_rules_dependencies" ,
358
- )
359
- apple_rules_dependencies ()
360
-
361
- load (
362
- "@build_bazel_rules_swift//swift:repositories.bzl" ,
363
- "swift_rules_dependencies" ,
364
- )
365
- swift_rules_dependencies ()
366
-
367
- load (
368
- "@build_bazel_rules_swift//swift:extras.bzl" ,
369
- "swift_rules_extra_dependencies" ,
370
- )
371
- swift_rules_extra_dependencies ()
372
-
373
- load (
374
- "@build_bazel_apple_support//lib:repositories.bzl" ,
375
- "apple_support_dependencies" ,
376
- )
377
- apple_support_dependencies ()
378
-
379
379
# More iOS deps.
380
380
381
381
http_archive (
0 commit comments