blob: f04d01c4e0a21095b87403d77d6d5cbdbfdef775 [file] [log] [blame]
Dan Willemsen377737a2016-08-15 15:02:23 -07001// Copyright 2015 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
Dan Willemsen377737a2016-08-15 15:02:23 -070023blueprint_go_binary {
24 name: "androidmk",
25 srcs: [
Justin DeMartinoac38d7e2019-10-15 17:45:05 -070026 "cmd/androidmk.go",
27 ],
28 deps: [
29 "androidmk-lib",
30 ],
31}
32
33bootstrap_go_package {
34 name: "androidmk-lib",
35 pkgPath: "android/soong/androidmk/androidmk",
36 srcs: [
37 "androidmk/android.go",
38 "androidmk/androidmk.go",
39 "androidmk/values.go",
Dan Willemsen377737a2016-08-15 15:02:23 -070040 ],
41 testSrcs: [
Justin DeMartinoac38d7e2019-10-15 17:45:05 -070042 "androidmk/androidmk_test.go",
Dan Willemsen377737a2016-08-15 15:02:23 -070043 ],
44 deps: [
45 "androidmk-parser",
46 "blueprint-parser",
Jeff Gastonc381fd02017-06-19 15:40:12 -070047 "bpfix-lib",
Dan Willemsen377737a2016-08-15 15:02:23 -070048 ],
49}
50
51bootstrap_go_package {
52 name: "androidmk-parser",
53 pkgPath: "android/soong/androidmk/parser",
54 srcs: [
55 "parser/ast.go",
56 "parser/make_strings.go",
57 "parser/parser.go",
58 "parser/scope.go",
59 ],
60 testSrcs: [
61 "parser/make_strings_test.go",
Dan Willemsen43398532018-02-21 02:10:29 -080062 "parser/parser_test.go",
Dan Willemsen377737a2016-08-15 15:02:23 -070063 ],
64}