diff options
Diffstat (limited to 'libkms')
-rw-r--r-- | libkms/Android.mk | 22 | ||||
-rw-r--r-- | libkms/api.c | 3 | ||||
-rw-r--r-- | libkms/linux.c | 3 |
3 files changed, 26 insertions, 2 deletions
diff --git a/libkms/Android.mk b/libkms/Android.mk new file mode 100644 index 00000000..d5507c7d --- /dev/null +++ b/libkms/Android.mk @@ -0,0 +1,22 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := \ + linux.c \ + dumb.c \ + api.c + +LOCAL_MODULE := libkms +LOCAL_MODULE_TAGS := optional +LOCAL_SHARED_LIBRARIES := libdrm + +LOCAL_C_INCLUDES += \ + $(LOCAL_PATH)/.. \ + $(LOCAL_PATH)/../include/drm + +LOCAL_COPY_HEADERS_TO := libdrm +LOCAL_COPY_HEADERS := \ + libkms.h + +include $(BUILD_SHARED_LIBRARY) diff --git a/libkms/api.c b/libkms/api.c index 5befaa0f..c3dac750 100644 --- a/libkms/api.c +++ b/libkms/api.c @@ -25,8 +25,9 @@ * **************************************************************************/ - +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include <errno.h> #include <stdlib.h> #include <string.h> diff --git a/libkms/linux.c b/libkms/linux.c index 4f861213..2e1b10d2 100644 --- a/libkms/linux.c +++ b/libkms/linux.c @@ -29,8 +29,9 @@ * going from fd to pci id via fstat and udev. */ - +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include <errno.h> #include <stdio.h> #include <stdlib.h> |