Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 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 | |
Bob Badour | 02040de | 2021-02-03 18:08:28 -0800 | [diff] [blame] | 19 | package { |
| 20 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 21 | } |
| 22 | |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 23 | blueprint_go_binary { |
| 24 | name: "androidmk", |
| 25 | srcs: [ |
Justin DeMartino | ac38d7e | 2019-10-15 17:45:05 -0700 | [diff] [blame] | 26 | "cmd/androidmk.go", |
| 27 | ], |
| 28 | deps: [ |
| 29 | "androidmk-lib", |
| 30 | ], |
| 31 | } |
| 32 | |
| 33 | bootstrap_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 Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 40 | ], |
| 41 | testSrcs: [ |
Justin DeMartino | ac38d7e | 2019-10-15 17:45:05 -0700 | [diff] [blame] | 42 | "androidmk/androidmk_test.go", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 43 | ], |
| 44 | deps: [ |
| 45 | "androidmk-parser", |
| 46 | "blueprint-parser", |
Jeff Gaston | c381fd0 | 2017-06-19 15:40:12 -0700 | [diff] [blame] | 47 | "bpfix-lib", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 48 | ], |
| 49 | } |
| 50 | |
| 51 | bootstrap_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 Willemsen | 4339853 | 2018-02-21 02:10:29 -0800 | [diff] [blame] | 62 | "parser/parser_test.go", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 63 | ], |
| 64 | } |