OSDN Git Service

Utils: convert Android.mk to Android.bp pie-x86 q-x86 android-x86-9.0-r1 android-x86-9.0-r2
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 21 Mar 2019 08:52:31 +0000 (16:52 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 21 Mar 2019 08:52:31 +0000 (16:52 +0800)
Since the framework.jar has been changed to use Android.bp,
we need to change analytics-utils to Android.bp as well.

Android.mk [deleted file]
Utils/Android.bp [new file with mode: 0644]
Utils/Android.mk [deleted file]

diff --git a/Android.mk b/Android.mk
deleted file mode 100644 (file)
index e3d645d..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#
-# Copyright (C) 2016 Jide Technology Ltd.
-#
-# 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.
-#
-
-include $(call all-subdir-makefiles)
diff --git a/Utils/Android.bp b/Utils/Android.bp
new file mode 100644 (file)
index 0000000..60d6c37
--- /dev/null
@@ -0,0 +1,16 @@
+// Utilities for Android-x86 Analytics
+//
+// Copyright (C) 2016-2019 Android-x86 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
+
+java_library_static {
+    name: "analytics-utils",
+    no_framework_libs: true,
+    srcs: ["src/**/*.java"],
+    sdk_version: "current",
+}
diff --git a/Utils/Android.mk b/Utils/Android.mk
deleted file mode 100644 (file)
index 555f4fc..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# Utilities for Android-x86 Analytics
-
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := $(call all-subdir-java-files)
-
-LOCAL_MODULE := analytics-utils
-LOCAL_MODULE_TAGS := optional
-LOCAL_SDK_VERSION := $(PLATFORM_SDK_VERSION)
-
-include $(BUILD_STATIC_JAVA_LIBRARY)