forked from typedb/bazel-distribution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
128 lines (108 loc) · 3.36 KB
/
BUILD
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
exports_files(["bazelbuild_rules_python-export-requirements-bzl-for-stardoc.patch"])
# Stardoc is unable to generate documentation unless it can
# load files that our rule files depends on via load(...)
# statements.
# This means it needs to have them accessible within the
# sandbox, which it can only do if it depends on the files
# as source.
# https://github.com/bazelbuild/skydoc/issues/166
bzl_library(
name = "stardoc_hacks",
srcs = [
"@rules_pkg//:pkg.bzl",
"@rules_pkg//:path.bzl",
"@rules_pkg//:rpm.bzl",
"@bazel_tools//tools:bzl_srcs",
"@graknlabs_bazel_distribution_pip//:requirements.bzl",
"@rules_python//python:whl.bzl",
],
)
stardoc(
name = "docs",
input = "doc_hub.bzl",
out = "README.md",
deps = [
"//apt:lib",
"//aws:lib",
"//azure:lib",
"//brew:lib",
"//common:lib",
"//gcp:lib",
"//github:lib",
"//maven:lib",
"//npm:lib",
"//packer:lib",
"//pip:lib",
"//rpm:lib",
":stardoc_hacks",
],
symbol_names = [
# From: //apt:rules.bzl
"assemble_apt",
"deploy_apt",
# From: //aws:rules.bzl
"assemble_aws",
# From: //azure:rules.bzl
"assemble_azure",
# From: //brew:rules.bzl
"deploy_brew",
# From: //common:assemble_versioned.bzl
"assemble_versioned",
# From: //common:checksum.bzl
"checksum",
# From: //common:generate_json_config.bzl
"generate_json_config",
# From: //common:java_deps.bzl
"MAVEN_COORDINATES_PREFIX",
"JarToMavenCoordinatesMapping",
"TransitiveJarToMavenCoordinatesMapping",
"java_deps",
# From: //common:rules.bzl
"assemble_targz",
"assemble_zip",
# From: //common:tgz2zip.bzl
"tgz2zip",
# From: //gcp:rules.bzl
"assemble_gcp",
# From: //github:rules.bzl
"deploy_github",
# From: //maven:rules.bzl
"JavaLibInfo",
"MavenPomInfo",
"MavenDeploymentInfo",
"assemble_maven",
"deploy_maven",
# From: //npm:rules.bzl
"assemble_npm",
"deploy_npm",
# From: //packer:rules.bzl
"assemble_packer",
"deploy_packer",
# From: //pip:rules.bzl
"assemble_pip",
"deploy_pip",
# From: //rpm:rules.bzl
"assemble_rpm",
"deploy_rpm",
],
)