summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-07-31 01:13:47 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-07-31 01:13:47 +0000
commiteb1c985dd8c81767358553992c5c1c9deb11710c (patch)
treefeed71f2d5b0ad64a35af6b0ddc21f6422fff48d
parent866422f0161a540705c6d9e1f960b706c17842fd (diff)
parent6c3e622eb06d656a4c79b88d6b340daa8f4bf78c (diff)
downloadsdk-android11-d1-s1-release.tar.gz
Change-Id: I7b3a88a26377b46ad2f6bc2f254f421cc6db2932
-rw-r--r--renderscript/Android.bp95
-rw-r--r--renderscript/Android.mk84
2 files changed, 95 insertions, 84 deletions
diff --git a/renderscript/Android.bp b/renderscript/Android.bp
new file mode 100644
index 000000000..42a2748c1
--- /dev/null
+++ b/renderscript/Android.bp
@@ -0,0 +1,95 @@
+//
+// 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.
+//
+
+//#################################
+cc_prebuilt_library_shared {
+ name: "librsjni",
+ sdk_version: "23",
+ arch: {
+ arm: {
+ srcs: ["lib/arm/librsjni.so"],
+ },
+ arm64: {
+ srcs: ["lib/arm64/librsjni.so"],
+ },
+ x86: {
+ srcs: ["lib/x86/librsjni.so"],
+ },
+ x86_64: {
+ srcs: ["lib/x86_64/librsjni.so"],
+ },
+ },
+}
+
+//#################################
+cc_prebuilt_library_shared {
+ name: "libRSSupport",
+ sdk_version: "23",
+ arch: {
+ arm: {
+ srcs: ["lib/arm/libRSSupport.so"],
+ },
+ arm64: {
+ srcs: ["lib/arm64/libRSSupport.so"],
+ },
+ x86: {
+ srcs: ["lib/x86/libRSSupport.so"],
+ },
+ x86_64: {
+ srcs: ["lib/x86_64/libRSSupport.so"],
+ },
+ },
+}
+
+//#################################
+cc_prebuilt_library_shared {
+ name: "libRSSupportIO",
+ sdk_version: "23",
+ arch: {
+ arm: {
+ srcs: ["lib/arm/libRSSupportIO.so"],
+ },
+ arm64: {
+ srcs: ["lib/arm64/libRSSupportIO.so"],
+ },
+ x86: {
+ srcs: ["lib/x86/libRSSupportIO.so"],
+ },
+ x86_64: {
+ srcs: ["lib/x86_64/libRSSupportIO.so"],
+ },
+ },
+}
+
+//#################################
+java_import {
+ name: "android-support-v8-renderscript",
+ jars: ["lib/javalib.jar"],
+
+ // 23 as specified at frameworks/rs/support/Android.mk
+ sdk_version: "23",
+}
+
+//#################################
+java_import {
+ name: "android-support-v8-renderscript-legacy",
+ jars: ["lib/javalib_legacy.jar"],
+
+ // 23 as specified at frameworks/rs/support/Android.mk
+ sdk_version: "23",
+}
+
+//#################################
diff --git a/renderscript/Android.mk b/renderscript/Android.mk
deleted file mode 100644
index fb4b043ae..000000000
--- a/renderscript/Android.mk
+++ /dev/null
@@ -1,84 +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)
-
-ifneq (,$(TARGET_BUILD_APPS))
-
-##################################
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := librsjni
-LOCAL_SRC_FILES := lib/$(TARGET_ARCH)/$(LOCAL_MODULE).so
-LOCAL_MODULE_CLASS := SHARED_LIBRARIES
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_SUFFIX := .so
-
-include $(BUILD_PREBUILT)
-
-##################################
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := libRSSupport
-LOCAL_SRC_FILES := lib/$(TARGET_ARCH)/$(LOCAL_MODULE).so
-LOCAL_MODULE_CLASS := SHARED_LIBRARIES
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_SUFFIX := .so
-
-include $(BUILD_PREBUILT)
-
-##################################
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := libRSSupportIO
-LOCAL_SRC_FILES := lib/$(TARGET_ARCH)/$(LOCAL_MODULE).so
-LOCAL_MODULE_CLASS := SHARED_LIBRARIES
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_SUFFIX := .so
-
-include $(BUILD_PREBUILT)
-
-##################################
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := android-support-v8-renderscript
-LOCAL_SRC_FILES := lib/javalib.jar
-LOCAL_MODULE_CLASS := JAVA_LIBRARIES
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_SUFFIX := .jar
-LOCAL_UNINSTALLABLE_MODULE := true
-# 23 as specified at frameworks/rs/support/Android.mk
-LOCAL_SDK_VERSION := 23
-
-include $(BUILD_PREBUILT)
-
-##################################
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := android-support-v8-renderscript-legacy
-LOCAL_SRC_FILES := lib/javalib_legacy.jar
-LOCAL_MODULE_CLASS := JAVA_LIBRARIES
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_SUFFIX := .jar
-LOCAL_UNINSTALLABLE_MODULE := true
-# 23 as specified at frameworks/rs/support/Android.mk
-LOCAL_SDK_VERSION := 23
-
-include $(BUILD_PREBUILT)
-
-##################################
-
-endif # TARGET_BUILD_APPS