From fa32e29a1fe81e5472aabc65d3aa25a5af5aec55 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Thu, 19 Oct 2017 22:18:23 -0700 Subject: 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 --- tegra/Android.bp | 14 ++++++++++++++ tegra/Android.mk | 19 ------------------- 2 files changed, 14 insertions(+), 19 deletions(-) create mode 100644 tegra/Android.bp delete mode 100644 tegra/Android.mk (limited to 'tegra') diff --git a/tegra/Android.bp b/tegra/Android.bp new file mode 100644 index 00000000..33eaf6c5 --- /dev/null +++ b/tegra/Android.bp @@ -0,0 +1,14 @@ +cc_library_shared { + name: "libdrm_tegra", + vendor: true, + shared_libs: ["libdrm"], + + srcs: ["tegra.c"], + + cflags: [ + "-DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1", + "-Wall", + "-Werror", + "-Wno-unused-variable", + ], +} diff --git a/tegra/Android.mk b/tegra/Android.mk deleted file mode 100644 index cae4ff68..00000000 --- a/tegra/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE := libdrm_tegra - -LOCAL_SHARED_LIBRARIES := libdrm - -LOCAL_SRC_FILES := tegra.c - -LOCAL_CFLAGS := \ - -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1 \ - -Wall -Werror -Wno-unused-variable - -LOCAL_SHARED_LIBRARIES := \ - libdrm - -LOCAL_VENDOR_MODULE := true - -include $(BUILD_SHARED_LIBRARY) -- cgit v1.2.3-54-g00ecf