OSDN Git Service

proptest: Add Android support
authorThierry Reding <treding@nvidia.com>
Wed, 9 Dec 2015 17:37:41 +0000 (18:37 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 18 Dec 2015 17:44:03 +0000 (17:44 +0000)
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
tests/proptest/Android.mk [new file with mode: 0644]
tests/proptest/Makefile.am
tests/proptest/Makefile.sources [new file with mode: 0644]

diff --git a/tests/proptest/Android.mk b/tests/proptest/Android.mk
new file mode 100644 (file)
index 0000000..d0ab5c9
--- /dev/null
@@ -0,0 +1,13 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+include $(LOCAL_PATH)/Makefile.sources
+
+LOCAL_SRC_FILES := $(PROPTEST_FILES)
+
+LOCAL_MODULE := proptest
+
+LOCAL_SHARED_LIBRARIES := libdrm
+LOCAL_STATIC_LIBRARIES := libdrm_util
+
+include $(BUILD_EXECUTABLE)
index 1428820..3fde46b 100644 (file)
@@ -1,3 +1,5 @@
+include Makefile.sources
+
 AM_CFLAGS = \
        $(WARN_CFLAGS)\
        -I$(top_srcdir)/include/drm \
@@ -12,8 +14,8 @@ noinst_PROGRAMS = \
        proptest
 endif
 
-proptest_SOURCES = \
-       proptest.c
+proptest_SOURCES = $(PROPTEST_FILES)
+
 proptest_LDADD = \
        $(top_builddir)/libdrm.la \
        $(top_builddir)/tests/util/libutil.la
diff --git a/tests/proptest/Makefile.sources b/tests/proptest/Makefile.sources
new file mode 100644 (file)
index 0000000..446110d
--- /dev/null
@@ -0,0 +1,2 @@
+PROPTEST_FILES := \
+       proptest.c