1// 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 19package { 20 default_applicable_licenses: ["Android-Apache-2.0"], 21} 22 23blueprint_go_binary { 24 name: "bpfix", 25 srcs: [ 26 "cmd/main.go", 27 ], 28 deps: [ 29 "bpfix-cmd", 30 ], 31} 32 33bootstrap_go_package { 34 name: "bpfix-cmd", 35 pkgPath: "android/soong/bpfix/cmd_lib", 36 srcs: [ 37 "cmd_lib/bpfix.go", 38 ], 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: [ 51 "bpfix/bpfix_test.go", 52 ], 53 deps: [ 54 "blueprint-parser", 55 ], 56} 57