summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-10-27 00:17:35 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-27 00:17:35 +0000
commit08d7d58b5b0b8f5497320805d06e1136e1ce80e1 (patch)
tree728674f041b557460c0c32981eab02645c0c5058 /tools
parentb7b8d145f88278f741e39bdede3732fcc6053570 (diff)
parent6f3ae7994ae4726092617bb28975fe528591b35c (diff)
downloadandroid_development-08d7d58b5b0b8f5497320805d06e1136e1ce80e1.tar.gz
android_development-08d7d58b5b0b8f5497320805d06e1136e1ce80e1.tar.bz2
android_development-08d7d58b5b0b8f5497320805d06e1136e1ce80e1.zip
Merge "Convert development/tools to Android.bp" am: 5f3caed3a7
am: 6f3ae7994a Change-Id: Ib4b7924a708f88c38c4f2686bbba3486751f8579
Diffstat (limited to 'tools')
-rw-r--r--tools/Android.bp1
-rw-r--r--tools/apkcheck/Android.bp20
-rw-r--r--tools/apkcheck/Android.mk33
-rw-r--r--tools/apkcheck/src/Android.mk28
-rw-r--r--tools/bugreport/Android.bp11
-rw-r--r--tools/bugreport/Android.mk36
-rw-r--r--tools/etc1tool/Android.bp23
-rw-r--r--tools/etc1tool/Android.mk21
-rw-r--r--tools/hosttestlib/Android.bp25
-rw-r--r--tools/hosttestlib/Android.mk28
-rw-r--r--tools/idegen/Android.bp5
-rw-r--r--tools/idegen/Android.mk12
-rw-r--r--tools/line_endings/Android.bp8
-rw-r--r--tools/line_endings/Android.mk14
-rw-r--r--tools/mkstubs/Android.bp22
-rw-r--r--tools/mkstubs/Android.mk28
-rw-r--r--tools/rmtypedefs/Android.bp24
-rw-r--r--tools/rmtypedefs/Android.mk33
-rw-r--r--tools/rmtypedefs/src/Android.mk31
19 files changed, 139 insertions, 264 deletions
diff --git a/tools/Android.bp b/tools/Android.bp
new file mode 100644
index 000000000..b44c29601
--- /dev/null
+++ b/tools/Android.bp
@@ -0,0 +1 @@
+subdirs = ["*"]
diff --git a/tools/apkcheck/Android.bp b/tools/apkcheck/Android.bp
new file mode 100644
index 000000000..72997b527
--- /dev/null
+++ b/tools/apkcheck/Android.bp
@@ -0,0 +1,20 @@
+// Copyright (C) 2010 The Android Open Source Project
+//
+// 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.
+
+java_binary_host {
+ name: "apkcheck",
+ wrapper: "etc/apkcheck",
+ manifest: "etc/manifest.txt",
+ srcs: ["**/*.java"],
+}
diff --git a/tools/apkcheck/Android.mk b/tools/apkcheck/Android.mk
deleted file mode 100644
index 1d7ab4eaf..000000000
--- a/tools/apkcheck/Android.mk
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright (C) 2010 The Android Open Source Project
-#
-# 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.
-
-LOCAL_PATH := $(call my-dir)
-
-# the execution script
-# ============================================================
-include $(CLEAR_VARS)
-LOCAL_IS_HOST_MODULE := true
-LOCAL_MODULE_CLASS := EXECUTABLES
-LOCAL_MODULE := apkcheck
-LOCAL_SRC_FILES := etc/apkcheck
-LOCAL_ADDITIONAL_DEPENDENCIES := $(HOST_OUT_JAVA_LIBRARIES)/apkcheck$(COMMON_JAVA_PACKAGE_SUFFIX)
-include $(BUILD_PREBUILT)
-
-# the other stuff
-# ============================================================
-subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
- src \
- ))
-
-include $(subdirs)
diff --git a/tools/apkcheck/src/Android.mk b/tools/apkcheck/src/Android.mk
deleted file mode 100644
index abc813aab..000000000
--- a/tools/apkcheck/src/Android.mk
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright (C) 2010 The Android Open Source Project
-#
-# 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.
-
-LOCAL_PATH := $(call my-dir)
-
-
-# apkcheck java library
-# ============================================================
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := $(call all-subdir-java-files)
-LOCAL_JAR_MANIFEST := ../etc/manifest.txt
-
-LOCAL_MODULE:= apkcheck
-
-include $(BUILD_HOST_JAVA_LIBRARY)
-
diff --git a/tools/bugreport/Android.bp b/tools/bugreport/Android.bp
new file mode 100644
index 000000000..1144516ee
--- /dev/null
+++ b/tools/bugreport/Android.bp
@@ -0,0 +1,11 @@
+// Copyright 2006 The Android Open Source Project
+//
+
+java_binary_host {
+ name: "BugReport",
+ wrapper: "bugreport",
+ manifest: "manifest-library.mf",
+ srcs: ["src/**/*.java"],
+ java_resource_dirs: ["resources"],
+ static_libs: ["jsilver"],
+}
diff --git a/tools/bugreport/Android.mk b/tools/bugreport/Android.mk
deleted file mode 100644
index 61e21e682..000000000
--- a/tools/bugreport/Android.mk
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 2006 The Android Open Source Project
-#
-
-LOCAL_PATH := $(call my-dir)
-
-# the script
-# ============================================================
-include $(CLEAR_VARS)
-
-LOCAL_IS_HOST_MODULE := true
-LOCAL_MODULE_CLASS := EXECUTABLES
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE := bugreport
-
-include $(BUILD_SYSTEM)/base_rules.mk
-
-$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/bugreport | $(ACP)
- @echo "Copy: $(PRIVATE_MODULE) ($@)"
- $(copy-file-to-new-target)
- $(hide) chmod 755 $@
-
-
-# the java
-# ============================================================
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := BugReport
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-LOCAL_JAR_MANIFEST := manifest-library.mf
-LOCAL_MODULE_TAGS := optional
-LOCAL_JAVA_RESOURCE_DIRS := resources
-LOCAL_STATIC_JAVA_LIBRARIES := \
- jsilver
-
-include $(BUILD_HOST_JAVA_LIBRARY)
-
diff --git a/tools/etc1tool/Android.bp b/tools/etc1tool/Android.bp
new file mode 100644
index 000000000..77460bf98
--- /dev/null
+++ b/tools/etc1tool/Android.bp
@@ -0,0 +1,23 @@
+// Copyright 2009 Google Inc. All Rights Reserved.
+//
+// Android.mk for etc1tool
+//
+
+cc_binary_host {
+ name: "etc1tool",
+
+ srcs: ["etc1tool.cpp"],
+
+ static_libs: [
+ "libexpat",
+ "libpng",
+ "libETC1",
+ "libz",
+ ],
+
+ target: {
+ windows: {
+ enabled: true,
+ },
+ },
+}
diff --git a/tools/etc1tool/Android.mk b/tools/etc1tool/Android.mk
deleted file mode 100644
index 61b62f034..000000000
--- a/tools/etc1tool/Android.mk
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright 2009 Google Inc. All Rights Reserved.
-#
-# Android.mk for etc1tool
-#
-
-LOCAL_PATH:= $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := etc1tool.cpp
-
-LOCAL_STATIC_LIBRARIES := \
- libexpat \
- libpng \
- libETC1 \
- libz
-
-LOCAL_MODULE := etc1tool
-LOCAL_MODULE_HOST_OS := darwin linux windows
-
-include $(BUILD_HOST_EXECUTABLE)
diff --git a/tools/hosttestlib/Android.bp b/tools/hosttestlib/Android.bp
new file mode 100644
index 000000000..e95e34310
--- /dev/null
+++ b/tools/hosttestlib/Android.bp
@@ -0,0 +1,25 @@
+// Copyright (C) 2009 The Android Open Source Project
+//
+// 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.
+
+java_library_host {
+ name: "hosttestlib",
+
+ // Only compile source java files in this lib.
+ srcs: ["src/**/*.java"],
+
+ libs: [
+ "ddmlib-prebuilt",
+ "junit",
+ ],
+}
diff --git a/tools/hosttestlib/Android.mk b/tools/hosttestlib/Android.mk
deleted file mode 100644
index 689018552..000000000
--- a/tools/hosttestlib/Android.mk
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright (C) 2009 The Android Open Source Project
-#
-# 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.
-
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-# Only compile source java files in this lib.
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-LOCAL_MODULE := hosttestlib
-
-LOCAL_JAVA_LIBRARIES := ddmlib-prebuilt junit-host
-
-include $(BUILD_HOST_JAVA_LIBRARY)
-
-
diff --git a/tools/idegen/Android.bp b/tools/idegen/Android.bp
new file mode 100644
index 000000000..5e57fe0cd
--- /dev/null
+++ b/tools/idegen/Android.bp
@@ -0,0 +1,5 @@
+java_library_host {
+ name: "idegen",
+ srcs: ["**/*.java"],
+ static_libs: ["guava"],
+}
diff --git a/tools/idegen/Android.mk b/tools/idegen/Android.mk
deleted file mode 100644
index 8771160dd..000000000
--- a/tools/idegen/Android.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-LOCAL_PATH:= $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_STATIC_JAVA_LIBRARIES := guavalib
-
-LOCAL_SRC_FILES := $(call all-subdir-java-files)
-
-LOCAL_MODULE:= idegen
-
-include $(BUILD_HOST_JAVA_LIBRARY)
-
diff --git a/tools/line_endings/Android.bp b/tools/line_endings/Android.bp
new file mode 100644
index 000000000..4e713ebaa
--- /dev/null
+++ b/tools/line_endings/Android.bp
@@ -0,0 +1,8 @@
+// Copyright 2007 The Android Open Source Project
+//
+// Copies files into the directory structure described by a manifest
+
+cc_binary_host {
+ name: "line_endings",
+ srcs: ["line_endings.c"],
+}
diff --git a/tools/line_endings/Android.mk b/tools/line_endings/Android.mk
deleted file mode 100644
index e3902ae25..000000000
--- a/tools/line_endings/Android.mk
+++ /dev/null
@@ -1,14 +0,0 @@
-# Copyright 2007 The Android Open Source Project
-#
-# Copies files into the directory structure described by a manifest
-
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := \
- line_endings.c
-
-LOCAL_MODULE := line_endings
-
-include $(BUILD_HOST_EXECUTABLE)
-
diff --git a/tools/mkstubs/Android.bp b/tools/mkstubs/Android.bp
new file mode 100644
index 000000000..cdc57ffa3
--- /dev/null
+++ b/tools/mkstubs/Android.bp
@@ -0,0 +1,22 @@
+//
+// Copyright (C) 2009 The Android Open Source Project
+//
+// 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.
+//
+
+java_library_host {
+ name: "mkstubs",
+ srcs: ["src/**/*.java"],
+ manifest: "manifest.txt",
+ static_libs: ["asm-5.2"],
+}
diff --git a/tools/mkstubs/Android.mk b/tools/mkstubs/Android.mk
deleted file mode 100644
index ddc9dd818..000000000
--- a/tools/mkstubs/Android.mk
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# Copyright (C) 2009 The Android Open Source Project
-#
-# 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.
-#
-LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := $(call all-java-files-under,src)
-
-LOCAL_JAR_MANIFEST := manifest.txt
-LOCAL_STATIC_JAVA_LIBRARIES := \
- asm-5.2
-
-LOCAL_MODULE := mkstubs
-
-include $(BUILD_HOST_JAVA_LIBRARY)
-
diff --git a/tools/rmtypedefs/Android.bp b/tools/rmtypedefs/Android.bp
new file mode 100644
index 000000000..1b64f4710
--- /dev/null
+++ b/tools/rmtypedefs/Android.bp
@@ -0,0 +1,24 @@
+// Copyright (C) 2013 The Android Open Source Project
+//
+// 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.
+
+java_binary_host {
+ name: "rmtypedefs",
+ srcs: ["src/**/*.java"],
+ manifest: "etc/manifest.txt",
+ wrapper: "etc/rmtypedefs",
+ static_libs: [
+ "asm-5.2",
+ "guava-21.0",
+ ],
+}
diff --git a/tools/rmtypedefs/Android.mk b/tools/rmtypedefs/Android.mk
deleted file mode 100644
index d3caaa1ab..000000000
--- a/tools/rmtypedefs/Android.mk
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright (C) 2013 The Android Open Source Project
-#
-# 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.
-
-LOCAL_PATH := $(call my-dir)
-
-# the execution script
-# ============================================================
-include $(CLEAR_VARS)
-LOCAL_IS_HOST_MODULE := true
-LOCAL_MODULE_CLASS := EXECUTABLES
-LOCAL_MODULE := rmtypedefs
-LOCAL_SRC_FILES := etc/rmtypedefs
-LOCAL_ADDITIONAL_DEPENDENCIES := $(HOST_OUT_JAVA_LIBRARIES)/rmtypedefs$(COMMON_JAVA_PACKAGE_SUFFIX)
-include $(BUILD_PREBUILT)
-
-# the other stuff
-# ============================================================
-subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
- src \
- ))
-
-include $(subdirs)
diff --git a/tools/rmtypedefs/src/Android.mk b/tools/rmtypedefs/src/Android.mk
deleted file mode 100644
index dfa8cc827..000000000
--- a/tools/rmtypedefs/src/Android.mk
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright (C) 2013 The Android Open Source Project
-#
-# 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.
-
-LOCAL_PATH := $(call my-dir)
-
-
-# rmtypedefs java library
-# ============================================================
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := $(call all-subdir-java-files)
-LOCAL_JAR_MANIFEST := ../etc/manifest.txt
-LOCAL_STATIC_JAVA_LIBRARIES := \
- asm-5.2 \
- guava-tools
-
-LOCAL_MODULE:= rmtypedefs
-
-include $(BUILD_HOST_JAVA_LIBRARY)
-