blob: d28f5122e051d5cdc8ae788b01c14fdd7d7fb2a6 [file] [log] [blame]
Jingwen Chen7810e172022-07-29 02:25:34 +00001// Copyright (C) 2022 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//
Colin Crossd079e0b2022-08-16 10:27:33 -07007// http://www.apache.org/licenses/LICENSE-2.0
Jingwen Chen7810e172022-07-29 02:25:34 +00008//
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.
14package apex
15
16import (
17 "android/soong/android"
18 "strings"
19)
20
21// This file contains the bp2build integration for the apex package.
22
23// Export constants as Starlark using bp2build to Bazel.
24func BazelApexToolchainVars() string {
25 content := []string{
26 "# GENERATED BY SOONG. DO NOT EDIT.",
27 "default_manifest_version = " + android.DefaultUpdatableModuleVersion, // constants.go is different in every branch.
28 }
29 return strings.Join(content, "\n")
30}