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
"""
Defines the postprocessing build rule for the Google Maps APIs.
"""
"""Target to build a post-processed ads-specific GAPIC assembly package.
Explodes a GAPIC assembly package, runs language-specific post-processing, and repackages.
This macro assumes srcs contains in a single input, namely a {{language}}_assembly_pkg target
produced by a gapic-generator build target.
There must be a corresponding postprocessing_{language}.sh script to invoke.
Args:
name: defines the name of the main target
srcs: collection containing exactly 1 build target, namely a
{{language}}_assembly_pkg target produced by gapic-generator
language: the programming language to post-process
(e.g., "java", "csharp", "php", etc.); there must be a matching
post-processin script of the form `postprocessing_{language}.sh
in this package
visibility (optional): marco visibility setting;
(see https://docs.bazel.build/versions/master/skylark/macros.html)
"""
=
=
"""Takes the first label in srcs and returns its target name.
Args:
srcs: a collection of build labels of the form "//package/name:target"
Returns:
The first element's target (i.e.- the part after the ":"), else None if empty.
"""
=
return
return None