summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
author Lukacs T. Berki <lberki@google.com> 2021-08-11 11:10:28 +0200
committer Lukacs T. Berki <lberki@google.com> 2021-08-11 15:15:02 +0200
commitf656b8434bcb0035902000408d0b59d45eded73a (patch)
tree78baf8f57dfdcb39c48393a228c38fdb8ff41455 /ui
parent2c40569db0fe26084e634753586bf5f6b18b36ef (diff)
Cut the multiproduct_kati -> soong-ui-build dep.
This is done by moving SetupSignals() to its own little package. There are a number of tiny little utility packages for soong_ui we might be better of merging, but that's for another change (maybe) Test: Presubmits. Change-Id: I07b0ca98bfb8884ef4223d665e632183b9896a0d
Diffstat (limited to 'ui')
-rw-r--r--ui/build/Android.bp1
-rw-r--r--ui/signal/Android.bp28
-rw-r--r--ui/signal/signal.go (renamed from ui/build/signal.go)2
3 files changed, 29 insertions, 2 deletions
diff --git a/ui/build/Android.bp b/ui/build/Android.bp
index 37940bafa..3dc87f584 100644
--- a/ui/build/Android.bp
+++ b/ui/build/Android.bp
@@ -61,7 +61,6 @@ bootstrap_go_package {
"proc_sync.go",
"rbe.go",
"sandbox_config.go",
- "signal.go",
"soong.go",
"test_build.go",
"upload.go",
diff --git a/ui/signal/Android.bp b/ui/signal/Android.bp
new file mode 100644
index 000000000..08933a130
--- /dev/null
+++ b/ui/signal/Android.bp
@@ -0,0 +1,28 @@
+// Copyright 2021 Google Inc. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+bootstrap_go_package {
+ name: "soong-ui-signal",
+ pkgPath: "android/soong/ui/signal",
+ srcs: [
+ "signal.go",
+ ],
+ deps: [
+ "soong-ui-logger",
+ ],
+}
diff --git a/ui/build/signal.go b/ui/signal/signal.go
index 6643e2ffb..4929a7bfe 100644
--- a/ui/build/signal.go
+++ b/ui/signal/signal.go
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package build
+package signal
import (
"os"