blob: b244e3abbbdcf4f560d2c3eef92546090209dbf7 [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
19blueprint_go_binary {
20 name: "bpfix",
21 srcs: [
Justin DeMartinoac38d7e2019-10-15 17:45:05 -070022 "cmd/main.go",
23 ],
24 deps: [
25 "bpfix-cmd",
26 ],
27}
28
29bootstrap_go_package {
30 name: "bpfix-cmd",
Colin Crossce239422019-11-08 14:17:49 -080031 pkgPath: "android/soong/bpfix/cmd_lib",
Justin DeMartinoac38d7e2019-10-15 17:45:05 -070032 srcs: [
Colin Crossce239422019-11-08 14:17:49 -080033 "cmd_lib/bpfix.go",
Jeff Gastonaff66e52017-06-19 15:39:54 -070034 ],
35 deps: [
36 "bpfix-lib",
37 ],
38}
39
40bootstrap_go_package {
41 name: "bpfix-lib",
42 pkgPath: "android/soong/bpfix/bpfix",
43 srcs: [
44 "bpfix/bpfix.go",
45 ],
46 testSrcs: [
ThiƩbaud Weksteen5e291c22020-06-26 14:04:00 +020047 "bpfix/bpfix_test.go",
Jeff Gastonaff66e52017-06-19 15:39:54 -070048 ],
49 deps: [
50 "blueprint-parser",
51 ],
52}