blob: a72d9b4e1f91aaba08492587037cbee1d5eb5049 [file] [log] [blame]
Jeff Gastonaff66e52017-06-19 15:39:54 -07001// Copyright 2017 Google Inc. 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//
16// androidmk Android.mk to Blueprints translator
17//
18
Bob Badour02040de2021-02-03 18:08:28 -080019package {
20 default_applicable_licenses: ["Android-Apache-2.0"],
21}
22
Jeff Gastonaff66e52017-06-19 15:39:54 -070023blueprint_go_binary {
24 name: "bpfix",
25 srcs: [
Justin DeMartinoac38d7e2019-10-15 17:45:05 -070026 "cmd/main.go",
27 ],
28 deps: [
29 "bpfix-cmd",
30 ],
31}
32
33bootstrap_go_package {
34 name: "bpfix-cmd",
Colin Crossce239422019-11-08 14:17:49 -080035 pkgPath: "android/soong/bpfix/cmd_lib",
Justin DeMartinoac38d7e2019-10-15 17:45:05 -070036 srcs: [
Colin Crossce239422019-11-08 14:17:49 -080037 "cmd_lib/bpfix.go",
Jeff Gastonaff66e52017-06-19 15:39:54 -070038 ],
39 deps: [
40 "bpfix-lib",
41 ],
42}
43
44bootstrap_go_package {
45 name: "bpfix-lib",
46 pkgPath: "android/soong/bpfix/bpfix",
47 srcs: [
48 "bpfix/bpfix.go",
49 ],
50 testSrcs: [
ThiƩbaud Weksteen5e291c22020-06-26 14:04:00 +020051 "bpfix/bpfix_test.go",
Jeff Gastonaff66e52017-06-19 15:39:54 -070052 ],
53 deps: [
54 "blueprint-parser",
Yuntao Xu21be0e22021-11-22 09:30:08 -080055 "blueprint-pathtools",
Jeff Gastonaff66e52017-06-19 15:39:54 -070056 ],
57}