1# Copyright (C) 2019 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15# This file is used only in standalone builds. This file is ignored both in 16# embedder builds (i.e. when other projects pull perfetto under /third_party/ 17# or similar) and in google internal builds. 18 19workspace(name = "perfetto") 20 21new_local_repository( 22 name = "perfetto_cfg", 23 path = "bazel/standalone", 24 build_file_content = "", 25) 26 27# We already have the same setup for 'rules_android', see 'MODULE.bazel' file, 28# however, 'rules_jvm_external' don't support Android SDK being set by 29# 'rules_android'. So we need to set it here as well. 30android_sdk_repository( 31 name = "androidsdk", 32 api_level = 35, 33 build_tools_version = "35.0.1", 34) 35 36# We can't setup 'rules_jvm_external' in 'MODULE.bazel' because of bug: 37# https://github.com/bazel-contrib/rules_jvm_external/issues/1320 38 39# Order for 'load' and 'setup' statements is important, do not change! 40load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps") 41 42rules_jvm_external_deps() 43 44load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup") 45 46rules_jvm_external_setup() 47 48load("@rules_jvm_external//:defs.bzl", "maven_install") 49 50maven_install( 51 artifacts = [ 52 "androidx.test:runner:1.6.2", 53 "androidx.test:monitor:1.7.2", 54 "com.google.truth:truth:1.4.4", 55 "junit:junit:4.13.2", 56 "androidx.test.ext:junit:1.2.1", 57 ], 58 repositories = [ 59 "https://maven.google.com", 60 "https://repo1.maven.org/maven2", 61 ], 62) 63 64load("@perfetto//bazel:deps.bzl", "perfetto_deps") 65perfetto_deps() 66 67load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") 68protobuf_deps()