-
Notifications
You must be signed in to change notification settings - Fork 383
/
Copy pathWORKSPACE
67 lines (54 loc) · 2.11 KB
/
WORKSPACE
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
# Copyright (C) 2019 The Android Open Source Project
#
# Licensed 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.
# This file is used only in standalone builds. This file is ignored both in
# embedder builds (i.e. when other projects pull perfetto under /third_party/
# or similar) and in google internal builds.
workspace(name = "perfetto")
new_local_repository(
name = "perfetto_cfg",
path = "bazel/standalone",
build_file_content = "",
)
# We already have the same setup for 'rules_android', see 'MODULE.bazel' file,
# however, 'rules_jvm_external' don't support Android SDK being set by
# 'rules_android'. So we need to set it here as well.
android_sdk_repository(
name = "androidsdk",
path = "buildtools/android_sdk",
api_level = 35,
build_tools_version = "35.0.1",
)
# We can't setup 'rules_jvm_external' in 'MODULE.bazel' because of bug:
# https://github.com/bazel-contrib/rules_jvm_external/issues/1320
# Order for 'load' and 'setup' statements is important, do not change!
load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")
rules_jvm_external_deps()
load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")
rules_jvm_external_setup()
load("@rules_jvm_external//:defs.bzl", "maven_install")
maven_install(
artifacts = [
"androidx.test:runner:1.6.2",
"androidx.test:monitor:1.7.2",
"junit:junit:4.13.2",
],
repositories = [
"https://maven.google.com",
"https://repo1.maven.org/maven2",
],
)
load("@perfetto//bazel:deps.bzl", "perfetto_deps")
perfetto_deps()
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()