summaryrefslogtreecommitdiff
path: root/tests/framebuffer/Android.mk
blob: 2c048573873550805dee89c8b1943bee1a91db7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES:= \
	refresh.c

LOCAL_SHARED_LIBRARIES := \
	libcutils

LOCAL_MODULE:= test-fb-refresh

LOCAL_MODULE_TAGS := optional

ifeq ($(TARGET_SIMULATOR),true)
  ifeq ($(HOST_OS),linux)
    # need this for clock_gettime()
    LOCAL_LDLIBS += -lrt
  endif
endif

include $(BUILD_EXECUTABLE)

##

ifneq ($(TARGET_SIMULATOR),true)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := fb_test.c
LOCAL_MODULE = test-fb-simple
LOCAL_MODULE_TAGS := optional
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_STATIC_LIBRARIES := libc
include $(BUILD_EXECUTABLE)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := mdp_test.c
LOCAL_MODULE = test-mdp
LOCAL_MODULE_TAGS := optional
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_STATIC_LIBRARIES := libc
include $(BUILD_EXECUTABLE)

endif # sim