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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19bootstrap_go_package { 20 name: "soong-ui-build-paths", 21 pkgPath: "android/soong/ui/build/paths", 22 srcs: [ 23 "paths/config.go", 24 "paths/logs.go", 25 ], 26 testSrcs: [ 27 "paths/logs_test.go", 28 ], 29} 30 31bootstrap_go_package { 32 name: "soong-ui-build", 33 pkgPath: "android/soong/ui/build", 34 deps: [ 35 "blueprint", 36 "blueprint-bootstrap", 37 "blueprint-microfactory", 38 "soong-finder", 39 "soong-remoteexec", 40 "soong-shared", 41 "soong-ui-build-paths", 42 "soong-ui-logger", 43 "soong-ui-metrics", 44 "soong-ui-status", 45 "soong-ui-terminal", 46 "soong-ui-tracer", 47 ], 48 srcs: [ 49 "build.go", 50 "cleanbuild.go", 51 "config.go", 52 "context.go", 53 "staging_snapshot.go", 54 "dumpvars.go", 55 "environment.go", 56 "exec.go", 57 "finder.go", 58 "goma.go", 59 "kati.go", 60 "ninja.go", 61 "path.go", 62 "proc_sync.go", 63 "rbe.go", 64 "sandbox_config.go", 65 "soong.go", 66 "test_build.go", 67 "upload.go", 68 "util.go", 69 ], 70 testSrcs: [ 71 "cleanbuild_test.go", 72 "config_test.go", 73 "environment_test.go", 74 "proc_sync_test.go", 75 "rbe_test.go", 76 "staging_snapshot_test.go", 77 "upload_test.go", 78 "util_test.go", 79 ], 80 darwin: { 81 srcs: [ 82 "config_darwin.go", 83 "sandbox_darwin.go", 84 ], 85 }, 86 linux: { 87 srcs: [ 88 "config_linux.go", 89 "sandbox_linux.go", 90 ], 91 testSrcs: [ 92 "sandbox_linux_test.go", 93 ], 94 }, 95} 96