You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/rules.md
+23-22Lines changed: 23 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ please use one of the platform-specific application rules in
63
63
<tr id="swift_binary.deps">
64
64
<td><code>deps</code></td>
65
65
<td>
66
-
<p><code>List of <a hef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of targets that are dependencies of the target being built, which will be
66
+
<p><code>List of <a href="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of targets that are dependencies of the target being built, which will be
67
67
linked into that target.</p>
68
68
<p>If the Swift toolchain supports implementation-only imports (<code>private_deps</code> on
69
69
<code>swift_library</code>), then targets in <code>deps</code> are treated as regular
@@ -83,12 +83,12 @@ Linux), those dependencies will be <strong>ignored.</strong></p></td>
83
83
<trid="swift_binary.srcs">
84
84
<td><code>srcs</code></td>
85
85
<td>
86
-
<p><code>List of <ahef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of <code>.swift</code> source files that will be compiled into the library.</p></td>
86
+
<p><code>List of <ahref="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of <code>.swift</code> source files that will be compiled into the library.</p></td>
87
87
</tr>
88
88
<trid="swift_binary.data">
89
89
<td><code>data</code></td>
90
90
<td>
91
-
<p><code>List of <ahef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>The list of files needed by this target at runtime.</p>
91
+
<p><code>List of <ahref="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>The list of files needed by this target at runtime.</p>
92
92
<p>Files and targets named in the <code>data</code> attribute will appear in the <code>*.runfiles</code>
93
93
area of this target, if it has one. This may include data files needed by a
94
94
binary or library, or other programs needed by it.</p></td>
@@ -152,7 +152,7 @@ good build result caching.</li>
152
152
<tr id="swift_binary.swiftc_inputs">
153
153
<td><code>swiftc_inputs</code></td>
154
154
<td>
155
-
<p><code>List of <a hef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>Additional files that are referenced using <code>$(location ...)</code> in attributes that
155
+
<p><code>List of <a href="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>Additional files that are referenced using <code>$(location ...)</code> in attributes that
156
156
support location expansion.</p></td>
157
157
</tr>
158
158
</tbody>
@@ -214,7 +214,7 @@ any C++ declarations.
214
214
<tr id="swift_c_module.deps">
215
215
<td><code>deps</code></td>
216
216
<td>
217
-
<p><code>List of <a hef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; required</code></p><p>A list of C targets (or anything propagating <code>CcInfo</code>) that are dependencies of
217
+
<p><code>List of <a href="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; required</code></p><p>A list of C targets (or anything propagating <code>CcInfo</code>) that are dependencies of
218
218
this target and whose headers may be referenced by the module map.</p></td>
219
219
</tr>
220
220
<trid="swift_c_module.module_map">
@@ -330,14 +330,14 @@ swift_grpc_library(
330
330
<tr id="swift_grpc_library.deps">
331
331
<td><code>deps</code></td>
332
332
<td>
333
-
<p><code>List of <a hef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>Exactly one <code>swift_proto_library</code> or <code>swift_grpc_library</code> target that contains
333
+
<p><code>List of <a href="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>Exactly one <code>swift_proto_library</code> or <code>swift_grpc_library</code> target that contains
334
334
the Swift protos used by the services being generated. Test stubs should depend
335
335
on the <code>swift_grpc_library</code> implementing the service.</p></td>
336
336
</tr>
337
337
<trid="swift_grpc_library.srcs">
338
338
<td><code>srcs</code></td>
339
339
<td>
340
-
<p><code>List of <ahef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>Exactly one <code>proto_library</code> target that defines the services being generated.</p></td>
340
+
<p><code>List of <ahref="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>Exactly one <code>proto_library</code> target that defines the services being generated.</p></td>
341
341
</tr>
342
342
<trid="swift_grpc_library.flavor">
343
343
<td><code>flavor</code></td>
@@ -381,7 +381,7 @@ Allows for the use of precompiled Swift modules as dependencies in other
381
381
<tr id="swift_import.deps">
382
382
<td><code>deps</code></td>
383
383
<td>
384
-
<p><code>List of <a hef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of targets that are dependencies of the target being built, which will be
384
+
<p><code>List of <a href="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of targets that are dependencies of the target being built, which will be
385
385
linked into that target.</p>
386
386
<p>If the Swift toolchain supports implementation-only imports (<code>private_deps</code> on
387
387
<code>swift_library</code>), then targets in <code>deps</code> are treated as regular
@@ -401,15 +401,15 @@ Linux), those dependencies will be <strong>ignored.</strong></p></td>
401
401
<trid="swift_import.data">
402
402
<td><code>data</code></td>
403
403
<td>
404
-
<p><code>List of <ahef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>The list of files needed by this target at runtime.</p>
404
+
<p><code>List of <ahref="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>The list of files needed by this target at runtime.</p>
405
405
<p>Files and targets named in the <code>data</code> attribute will appear in the <code>*.runfiles</code>
406
406
area of this target, if it has one. This may include data files needed by a
407
407
binary or library, or other programs needed by it.</p></td>
408
408
</tr>
409
409
<trid="swift_import.archives">
410
410
<td><code>archives</code></td>
411
411
<td>
412
-
<p><code>List of <ahef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; required</code></p><p>The list of <code>.a</code> files provided to Swift targets that depend on this target.</p></td>
412
+
<p><code>List of <ahref="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; required</code></p><p>The list of <code>.a</code> files provided to Swift targets that depend on this target.</p></td>
413
413
</tr>
414
414
<trid="swift_import.module_name">
415
415
<td><code>module_name</code></td>
@@ -458,7 +458,7 @@ Compiles and links Swift code into a static library and Swift module.
458
458
<tr id="swift_library.deps">
459
459
<td><code>deps</code></td>
460
460
<td>
461
-
<p><code>List of <a hef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of targets that are dependencies of the target being built, which will be
461
+
<p><code>List of <a href="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of targets that are dependencies of the target being built, which will be
462
462
linked into that target.</p>
463
463
<p>If the Swift toolchain supports implementation-only imports (<code>private_deps</code> on
464
464
<code>swift_library</code>), then targets in <code>deps</code> are treated as regular
@@ -478,12 +478,12 @@ Linux), those dependencies will be <strong>ignored.</strong></p></td>
478
478
<trid="swift_library.srcs">
479
479
<td><code>srcs</code></td>
480
480
<td>
481
-
<p><code>List of <ahef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of <code>.swift</code> source files that will be compiled into the library.</p></td>
481
+
<p><code>List of <ahref="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of <code>.swift</code> source files that will be compiled into the library.</p></td>
482
482
</tr>
483
483
<trid="swift_library.data">
484
484
<td><code>data</code></td>
485
485
<td>
486
-
<p><code>List of <ahef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>The list of files needed by this target at runtime.</p>
486
+
<p><code>List of <ahref="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>The list of files needed by this target at runtime.</p>
487
487
<p>Files and targets named in the <code>data</code> attribute will appear in the <code>*.runfiles</code>
488
488
area of this target, if it has one. This may include data files needed by a
489
489
binary or library, or other programs needed by it.</p></td>
@@ -503,7 +503,7 @@ conformance.</p></td>
503
503
<td><code>copts</code></td>
504
504
<td>
505
505
<p><code>List of strings; optional</code></p><p>Additional compiler options that should be passed to <code>swiftc</code>. These strings are
506
-
subject to <code>$(location ...)</code> expansion.</p></td>
506
+
subject to <code>$(location ...)</code> and <code><ahref="https://docs.bazel.build/versions/master/be/make-variables.html">"Make" variable</a></code> expansion.</p></td>
507
507
</tr>
508
508
<trid="swift_library.defines">
509
509
<td><code>defines</code></td>
@@ -533,6 +533,7 @@ or if the target has the <code>swift.no_generated_header</code> feature enabled.
533
533
<td>
534
534
<p><code>List of strings; optional</code></p><p>Additional linker options that should be passed to the linker for the binary
535
535
that depends on this target. These strings are subject to <code>$(location ...)</code>
536
+
and <code><ahref="https://docs.bazel.build/versions/master/be/make-variables.html">"Make" variable</a></code> expansion.</p></td>
536
537
expansion.</p></td>
537
538
</tr>
538
539
<trid="swift_library.module_name">
@@ -546,7 +547,7 @@ non-identifier characters with underscores.</p></td>
546
547
<trid="swift_library.private_deps">
547
548
<td><code>private_deps</code></td>
548
549
<td>
549
-
<p><code>List of <ahef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of targets that are implementation-only dependencies of the target being
550
+
<p><code>List of <ahref="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of targets that are implementation-only dependencies of the target being
550
551
built. Libraries/linker flags from these dependencies will be propagated to
551
552
dependent for linking, but artifacts/flags required for compilation (such as
552
553
.swiftmodule files, C headers, and search paths) will not be propagated.</p>
@@ -564,7 +565,7 @@ Linux), those dependencies will be <strong>ignored.</strong></p></td>
564
565
<trid="swift_library.swiftc_inputs">
565
566
<td><code>swiftc_inputs</code></td>
566
567
<td>
567
-
<p><code>List of <ahef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>Additional files that are referenced using <code>$(location ...)</code> in attributes that
568
+
<p><code>List of <ahref="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>Additional files that are referenced using <code>$(location ...)</code> in attributes that
568
569
support location expansion.</p></td>
569
570
</tr>
570
571
</tbody>
@@ -614,7 +615,7 @@ symbol is defined; it is not repeated by the alias module.)
614
615
<tr id="swift_module_alias.deps">
615
616
<td><code>deps</code></td>
616
617
<td>
617
-
<p><code>List of <a hef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of targets that are dependencies of the target being built, which will be
618
+
<p><code>List of <a href="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of targets that are dependencies of the target being built, which will be
618
619
linked into that target. Allowed kinds are <code>swift_import</code> and <code>swift_library</code>
@@ -730,7 +731,7 @@ prevents unused modules from being loaded by `swiftc`.
730
731
<tr id="swift_proto_library.deps">
731
732
<td><code>deps</code></td>
732
733
<td>
733
-
<p><code>List of <a hef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>Exactly one <code>proto_library</code> target (or any target that propagates a <code>proto</code>
734
+
<p><code>List of <a href="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>Exactly one <code>proto_library</code> target (or any target that propagates a <code>proto</code>
734
735
provider) from which the Swift library should be generated.</p></td>
735
736
</tr>
736
737
</tbody>
@@ -795,7 +796,7 @@ to your BUILD file's `package()` declaration instead of the individual targets.
795
796
<tr id="swift_test.deps">
796
797
<td><code>deps</code></td>
797
798
<td>
798
-
<p><code>List of <a hef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of targets that are dependencies of the target being built, which will be
799
+
<p><code>List of <a href="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of targets that are dependencies of the target being built, which will be
799
800
linked into that target.</p>
800
801
<p>If the Swift toolchain supports implementation-only imports (<code>private_deps</code> on
801
802
<code>swift_library</code>), then targets in <code>deps</code> are treated as regular
@@ -815,12 +816,12 @@ Linux), those dependencies will be <strong>ignored.</strong></p></td>
815
816
<trid="swift_test.srcs">
816
817
<td><code>srcs</code></td>
817
818
<td>
818
-
<p><code>List of <ahef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of <code>.swift</code> source files that will be compiled into the library.</p></td>
819
+
<p><code>List of <ahref="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>A list of <code>.swift</code> source files that will be compiled into the library.</p></td>
819
820
</tr>
820
821
<trid="swift_test.data">
821
822
<td><code>data</code></td>
822
823
<td>
823
-
<p><code>List of <ahef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>The list of files needed by this target at runtime.</p>
824
+
<p><code>List of <ahref="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>The list of files needed by this target at runtime.</p>
824
825
<p>Files and targets named in the <code>data</code> attribute will appear in the <code>*.runfiles</code>
825
826
area of this target, if it has one. This may include data files needed by a
826
827
binary or library, or other programs needed by it.</p></td>
@@ -884,7 +885,7 @@ good build result caching.</li>
884
885
<tr id="swift_test.swiftc_inputs">
885
886
<td><code>swiftc_inputs</code></td>
886
887
<td>
887
-
<p><code>List of <a hef="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>Additional files that are referenced using <code>$(location ...)</code> in attributes that
888
+
<p><code>List of <a href="https://docs.bazel.build/versions/master/build-ref.html#labels">labels</a>; optional</code></p><p>Additional files that are referenced using <code>$(location ...)</code> in attributes that
0 commit comments