diff options
Diffstat (limited to 'tests/modetest')
-rw-r--r-- | tests/modetest/Android.mk | 19 | ||||
-rw-r--r-- | tests/modetest/buffers.c | 3 | ||||
-rw-r--r-- | tests/modetest/modetest.c | 2 |
3 files changed, 23 insertions, 1 deletions
diff --git a/tests/modetest/Android.mk b/tests/modetest/Android.mk new file mode 100644 index 00000000..3cea6c15 --- /dev/null +++ b/tests/modetest/Android.mk @@ -0,0 +1,19 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := \ + buffers.c \ + modetest.c + +LOCAL_MODULE := modetest +LOCAL_MODULE_TAGS := optional + +LOCAL_C_INCLUDES += \ + $(LOCAL_PATH)/../.. \ + $(LOCAL_PATH)/../../include/drm \ + $(LOCAL_PATH)/../../libkms + +LOCAL_SHARED_LIBRARIES := libdrm libkms + +include $(BUILD_EXECUTABLE) diff --git a/tests/modetest/buffers.c b/tests/modetest/buffers.c index 50863811..45bd34d3 100644 --- a/tests/modetest/buffers.c +++ b/tests/modetest/buffers.c @@ -23,8 +23,9 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ - +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include <assert.h> #include <errno.h> diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index c91bb9d1..c111c791 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -37,7 +37,9 @@ * TODO: use cairo to write the mode info on the selected output once * the mode has been programmed, along with possible test patterns. */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include <assert.h> #include <stdio.h> |