OSDN Git Service

Replace Android.bp with Android.mk
authorlambdadroid <lambdadroid@gmail.com>
Wed, 2 Jan 2019 20:37:16 +0000 (21:37 +0100)
committerlambdadroid <lambdadroid@gmail.com>
Sun, 6 Jan 2019 18:25:15 +0000 (19:25 +0100)
This is in prepration of conditional compilation of a minigbm importer.

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

diff --git a/Android.bp b/Android.bp
deleted file mode 100644 (file)
index da19632..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-// Copyright (C) 2019 Stephan Gerhold
-
-cc_binary {
-    name: "android.hardware.graphics.composer@2.1-service.drmfb",
-    relative_install_path: "hw",
-    vendor: true,
-    init_rc: ["android.hardware.graphics.composer@2.1-service.drmfb.rc"],
-
-    cpp_std: "c++17",
-
-    srcs: [
-        "service.cpp",
-        "DrmComposer.cpp",
-        "DrmDevice.cpp",
-        "DrmDisplay.cpp",
-        "DrmFramebuffer.cpp"
-    ],
-
-    header_libs: [
-        "android.hardware.graphics.composer@2.1-hal",
-    ],
-
-    shared_libs: [
-        "libbase",
-        "libbinder",
-        "libcutils",
-        "libdrm",
-        "libfmq",
-        "libhidlbase",
-        "libhidltransport",
-        "liblog",
-        "libsync",
-        "libutils",
-        "android.hardware.graphics.common@1.0",
-        "android.hardware.graphics.mapper@2.0",
-        "android.hardware.graphics.composer@2.1",
-    ],
-}
diff --git a/Android.mk b/Android.mk
new file mode 100644 (file)
index 0000000..5beaefc
--- /dev/null
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: Apache-2.0
+# Copyright (C) 2019 Stephan Gerhold
+
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := android.hardware.graphics.composer@2.1-service.drmfb
+LOCAL_MODULE_RELATIVE_PATH := hw
+LOCAL_VENDOR_MODULE := true
+LOCAL_INIT_RC := android.hardware.graphics.composer@2.1-service.drmfb.rc
+LOCAL_CPP_STD := c++17
+
+LOCAL_SRC_FILES := \
+    service.cpp \
+    DrmComposer.cpp \
+    DrmDevice.cpp \
+    DrmDisplay.cpp \
+    DrmFramebuffer.cpp
+
+LOCAL_HEADER_LIBRARIES := \
+    android.hardware.graphics.composer@2.1-hal
+
+LOCAL_SHARED_LIBRARIES := \
+    libbase \
+    libbinder \
+    libcutils \
+    libdrm \
+    libfmq \
+    libhidlbase \
+    libhidltransport \
+    liblog \
+    libsync \
+    libutils \
+    android.hardware.graphics.common@1.0 \
+    android.hardware.graphics.mapper@2.0 \
+    android.hardware.graphics.composer@2.1
+
+include $(BUILD_EXECUTABLE)