summaryrefslogtreecommitdiff
path: root/preopt2cachename
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-05-09 16:26:42 -0700
committerDan Willemsen <dwillemsen@google.com>2018-05-09 16:39:41 -0700
commit9f022b4b5d6b7dde25290e793eb8b5c5239659af (patch)
treec9d82f2cc68caf511e8c1e47b3963e709173d818 /preopt2cachename
parentdc0191161cb4557535e89d45c8cfdd2305dcef4e (diff)
downloadextras-9f022b4b5d6b7dde25290e793eb8b5c5239659af.tar.gz
Convert more of system/extras to Soong
See build/soong/README.md for more information. Some modules are no longer installed by default on eng/debug builds, but I didn't see any automatic references to them. If they're commonly used by users, they can be added into build/make with PRODUCT_PACKAGES_ENG / PRODUCT_PACKAGES_DEBUG. Otherwise everyone's compiles get a little smaller. Some modules also moved from /system/xbin to /system/bin, as we've deprecated xbin. I checked codesearch for references to the full paths and couldn't find any. Test: cd system/extras; mma Test: for the modules changing locations, check cs/ for references Change-Id: I4ffd99d3dcf50e4d5cb2197824abc11973214133
Diffstat (limited to 'preopt2cachename')
-rw-r--r--preopt2cachename/Android.bp31
-rw-r--r--preopt2cachename/Android.mk32
2 files changed, 31 insertions, 32 deletions
diff --git a/preopt2cachename/Android.bp b/preopt2cachename/Android.bp
new file mode 100644
index 00000000..63fea15d
--- /dev/null
+++ b/preopt2cachename/Android.bp
@@ -0,0 +1,31 @@
+// Copyright 2016 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.
+
+cc_binary {
+ name: "preopt2cachename",
+
+ srcs: ["preopt2cachename.cpp"],
+
+ shared_libs: [
+ "libsysutils",
+ "liblog",
+ "libcutils",
+ "libbase",
+ ],
+
+ cflags: [
+ "-Werror",
+ "-Wall",
+ ],
+}
diff --git a/preopt2cachename/Android.mk b/preopt2cachename/Android.mk
deleted file mode 100644
index b5a51d99..00000000
--- a/preopt2cachename/Android.mk
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 2016 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_MODULE:= preopt2cachename
-
-LOCAL_SRC_FILES := \
- preopt2cachename.cpp
-
-LOCAL_SHARED_LIBRARIES := \
- libsysutils \
- liblog \
- libcutils \
- libbase
-
-LOCAL_CFLAGS := -Werror -Wall
-
-include $(BUILD_EXECUTABLE)