xref: /aosp_15_r20/external/jazzer-api/init.bzl (revision 33edd6723662ea34453766bfdca85dbfdd5342b8)
1# Copyright 2021 Code Intelligence GmbH
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"""Dependency initialization utilities."""
16
17load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
18load("@com_github_johnynek_bazel_jar_jar//:jar_jar.bzl", "jar_jar_repositories")
19load("@io_bazel_rules_kotlin//kotlin:dependencies.bzl", "kt_download_local_dev_dependencies")
20load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories")
21load("@fmeum_rules_jni//jni:repositories.bzl", "rules_jni_dependencies")
22load("@build_bazel_apple_support//lib:repositories.bzl", "apple_support_dependencies")
23
24def jazzer_init():
25    bazel_skylib_workspace()
26    kt_download_local_dev_dependencies()
27    kotlin_repositories()
28    native.register_toolchains("@jazzer//bazel/toolchains:kotlin_toolchain")
29    jar_jar_repositories()
30    rules_jni_dependencies()
31    apple_support_dependencies()
32