xref: /aosp_15_r20/external/bazelbuild-rules_android/src/tools/ak/akcommands.go (revision 9e965d6fece27a77de5377433c2f7e6999b8cc0b)
1// Copyright 2023 The Bazel Authors. All rights reserved.
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// Package akcommands provides a map of all AK commands to their respective binaries.
16package akcommands
17
18import (
19	"src/tools/ak/bucketize/bucketize"
20	"src/tools/ak/compile/compile"
21	"src/tools/ak/dex/dex"
22	"src/tools/ak/extractaar/extractaar"
23	"src/tools/ak/finalrjar/finalrjar"
24	"src/tools/ak/generatemanifest/generatemanifest"
25	"src/tools/ak/link/link"
26	"src/tools/ak/liteparse/liteparse"
27	"src/tools/ak/manifest/manifest"
28	"src/tools/ak/mindex/mindex"
29	"src/tools/ak/nativelib/nativelib"
30	"src/tools/ak/patch/patch"
31	"src/tools/ak/repack/repack"
32	"src/tools/ak/rjar/rjar"
33	"src/tools/ak/shellapk/shellapk"
34	"src/tools/ak/types"
35)
36
37var (
38	// Cmds map AK commands to their respective binaries
39	Cmds = map[string]types.Command{
40		"bucketize":        bucketize.Cmd,
41		"compile":          compile.Cmd,
42		"dex":              dex.Cmd,
43		"extractaar":       extractaar.Cmd,
44		"link":             link.Cmd,
45		"liteparse":        liteparse.Cmd,
46		"generatemanifest": generatemanifest.Cmd,
47		"manifest":         manifest.Cmd,
48		"mindex":           mindex.Cmd,
49		"nativelib":        nativelib.Cmd,
50		"patch":            patch.Cmd,
51		"repack":           repack.Cmd,
52		"rjar":             rjar.Cmd,
53		"finalrjar":        finalrjar.Cmd,
54		"shellapk":         shellapk.Cmd,
55	}
56)
57