aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Willemsen2017-10-20 00:18:23 -0500
committerDan Willemsen2017-10-23 14:27:31 -0500
commitfa32e29a1fe81e5472aabc65d3aa25a5af5aec55 (patch)
treeddc9bf3abee1194215f500913f95229b33b928f7 /freedreno
parentc6ebab75df64ad6ff2be83cd53bb7d02955d7438 (diff)
downloadexternal-libgbm-fa32e29a1fe81e5472aabc65d3aa25a5af5aec55.tar.gz
external-libgbm-fa32e29a1fe81e5472aabc65d3aa25a5af5aec55.tar.xz
external-libgbm-fa32e29a1fe81e5472aabc65d3aa25a5af5aec55.zip
Convert to Android.bp
See build/soong/README.md for more information about Soong. Removes BOARD_GPU_DRIVERS, which wasn't affecting anything, since none of the HAVE_* macros are defined. Even if they were, we'd prefer to compile all of them so that a single library can support multiple boards. Test: mmma external/libdrm Change-Id: Ie01736bce6cf41e3da5040fe5341ade0634b5111
Diffstat (limited to 'freedreno')
-rw-r--r--freedreno/Android.bp11
-rw-r--r--freedreno/Android.mk14
-rw-r--r--freedreno/Android.sources.bp16
3 files changed, 27 insertions, 14 deletions
diff --git a/freedreno/Android.bp b/freedreno/Android.bp
new file mode 100644
index 00000000..9fca9b12
--- /dev/null
+++ b/freedreno/Android.bp
@@ -0,0 +1,11 @@
1build = ["Android.sources.bp"]
2
3cc_library_shared {
4 name: "libdrm_freedreno",
5 defaults: [
6 "libdrm_defaults",
7 "libdrm_freedreno_sources",
8 ],
9 vendor: true,
10 shared_libs: ["libdrm"],
11}
diff --git a/freedreno/Android.mk b/freedreno/Android.mk
deleted file mode 100644
index c1289145..00000000
--- a/freedreno/Android.mk
+++ /dev/null
@@ -1,14 +0,0 @@
1LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4# Import variables LIBDRM_FREEDRENO_FILES, LIBDRM_FREEDRENO_H_FILES
5include $(LOCAL_PATH)/Makefile.sources
6
7LOCAL_MODULE := libdrm_freedreno
8LOCAL_VENDOR_MODULE := true
9LOCAL_SHARED_LIBRARIES := libdrm
10
11LOCAL_SRC_FILES := $(LIBDRM_FREEDRENO_FILES)
12
13include $(LIBDRM_COMMON_MK)
14include $(BUILD_SHARED_LIBRARY)
diff --git a/freedreno/Android.sources.bp b/freedreno/Android.sources.bp
new file mode 100644
index 00000000..3c1ca316
--- /dev/null
+++ b/freedreno/Android.sources.bp
@@ -0,0 +1,16 @@
1// Autogenerated with Android.sources.bp.mk
2
3cc_defaults {
4 name: "libdrm_freedreno_sources",
5 srcs: [
6 "freedreno_device.c",
7 "freedreno_pipe.c",
8 "freedreno_ringbuffer.c",
9 "freedreno_bo.c",
10 "freedreno_bo_cache.c",
11 "msm/msm_bo.c",
12 "msm/msm_device.c",
13 "msm/msm_pipe.c",
14 "msm/msm_ringbuffer.c",
15 ],
16}