1// 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
19package {
20    default_applicable_licenses: ["Android-Apache-2.0"],
21}
22
23blueprint_go_binary {
24    name: "androidmk",
25    srcs: [
26        "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",
40    ],
41    testSrcs: [
42        "androidmk/androidmk_test.go",
43    ],
44    deps: [
45        "androidmk-parser",
46        "blueprint-parser",
47        "bpfix-lib",
48    ],
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",
62        "parser/parser_test.go",
63    ],
64}
65