13 bin_PROGRAMS += test_hwcomposer
16 if HAS_LIBNFC_NXP_HEADERS
17 bin_PROGRAMS += test_nfc
20 # Please re-enable your test programs according to android
21 # if HAS_ANDROID_X_Y_Z
22 # bin_PROGRAMS += test_audio
25 test_audio_SOURCES = test_audio.c
27 -I$(top_srcdir)/include
29 $(top_builddir)/common/libhybris-common.la \
30 $(top_builddir)/hardware/libhardware.la
32 test_egl_SOURCES = test_egl.c
34 -I$(top_srcdir)/include \
35 -I$(top_srcdir)/include/android \
36 -I$(top_srcdir)/egl/platforms/common
39 test_egl_CFLAGS += -DLIBHYBRIS_WANTS_MESA_X11_HEADERS
42 $(top_builddir)/common/libhybris-common.la \
43 $(top_builddir)/egl/libEGL.la
45 test_egl_configs_SOURCES = test_egl_configs.c
46 test_egl_configs_CFLAGS = \
47 -I$(top_srcdir)/include \
48 -I$(top_srcdir)/include/android
49 test_egl_configs_LDADD = \
50 $(top_builddir)/common/libhybris-common.la \
51 $(top_builddir)/egl/libEGL.la
53 test_glesv2_SOURCES = test_glesv2.c
54 test_glesv2_CFLAGS = \
55 -I$(top_srcdir)/include \
56 -I$(top_srcdir)/include/android
58 test_glesv2_CFLAGS += -DLIBHYBRIS_WANTS_MESA_X11_HEADERS
62 $(top_builddir)/common/libhybris-common.la \
63 $(top_builddir)/egl/libEGL.la \
64 $(top_builddir)/glesv2/libGLESv2.la
66 test_hwcomposer_SOURCES = test_hwcomposer.cpp
67 test_hwcomposer_CXXFLAGS = \
68 -I$(top_srcdir)/include \
69 -I$(top_srcdir)/include/android \
70 -I$(top_srcdir)/common \
71 -I$(top_srcdir)/egl/platforms/common \
72 -I$(top_srcdir)/egl/platforms/hwcomposer \
73 -I$(top_srcdir)/libsync
76 test_hwcomposer_CXXFLAGS += -DLIBHYBRIS_WANTS_MESA_X11_HEADERS
78 test_hwcomposer_LDADD = \
80 $(top_builddir)/common/libhybris-common.la \
81 $(top_builddir)/egl/platforms/hwcomposer/libhybris-hwcomposerwindow.la \
82 $(top_builddir)/egl/platforms/common/libhybris-eglplatformcommon.la \
83 $(top_builddir)/egl/libEGL.la \
84 $(top_builddir)/glesv2/libGLESv2.la \
85 $(top_builddir)/libsync/libsync.la \
86 $(top_builddir)/hardware/libhardware.la
88 test_sensors_SOURCES = test_sensors.c
89 test_sensors_CFLAGS = \
90 -I$(top_srcdir)/include \
91 -I$(top_srcdir)/include/android
92 test_sensors_LDADD = \
93 $(top_builddir)/common/libhybris-common.la \
94 $(top_builddir)/hardware/libhardware.la
96 test_lights_SOURCES = test_lights.c
97 test_lights_CFLAGS = \
98 -I$(top_srcdir)/include \
99 -I$(top_srcdir)/include/android
101 test_lights_LDADD = \
102 $(top_builddir)/common/libhybris-common.la \
103 $(top_builddir)/hardware/libhardware.la
105 test_ui_SOURCES = test_ui.c
107 -I$(top_srcdir)/include \
108 -I$(top_srcdir)/include/android
110 $(top_builddir)/common/libhybris-common.la \
111 $(top_builddir)/ui/libui.la
113 test_sf_SOURCES = test_sf.c
115 -I$(top_srcdir)/include \
116 -I$(top_srcdir)/include/android
118 $(top_builddir)/common/libhybris-common.la \
119 $(top_builddir)/egl/libEGL.la \
120 $(top_builddir)/glesv2/libGLESv2.la \
121 $(top_builddir)/sf/libsf.la
123 test_input_SOURCES = test_input.c
124 test_input_CFLAGS = \
125 -I$(top_srcdir)/include \
126 -I$(top_srcdir)/include/android
128 $(top_builddir)/common/libhybris-common.la \
129 $(top_builddir)/input/libis.la
131 test_camera_SOURCES = test_camera.c
132 test_camera_CFLAGS = \
133 -I$(top_srcdir)/include
134 -I$(top_srcdir)/include/android
136 test_camera_LDADD = \
137 $(top_builddir)/common/libhybris-common.la \
138 $(top_builddir)/egl/libEGL.la \
139 $(top_builddir)/glesv2/libGLESv2.la \
140 $(top_builddir)/camera/libcamera.la \
141 $(top_builddir)/input/libis.la
143 test_gps_SOURCES = test_gps.c
144 test_gps_CFLAGS = -pthread \
145 -I$(top_srcdir)/include \
146 -I$(top_srcdir)/include/android
149 test_gps_CFLAGS += -DHAS_ANDROID_4_2_0
152 test_gps_LDFLAGS = -pthread
154 $(top_builddir)/common/libhybris-common.la \
155 $(top_builddir)/hardware/libhardware.la
157 test_nfc_SOURCES = test_nfc.c
159 -I$(top_srcdir)/include \
160 -I$(top_srcdir)/include/android \
161 -I$(top_srcdir)/include/android/libnfc-nxp
165 $(top_builddir)/libnfc_nxp/libnfc_nxp.la \
166 $(top_builddir)/hardware/libhardware.la