Imported Upstream version 0.1.0+git20131207+e452e83
[deb_libhybris.git] / hybris / tests / Makefile.am
CommitLineData
d42e7319
JB
1bin_PROGRAMS = \
2 test_egl \
3 test_egl_configs \
4 test_glesv2 \
5 test_ui \
6 test_sf \
7 test_sensors \
8 test_input \
9 test_camera \
10 test_gps
11
12if HAS_ANDROID_4_2_0
13bin_PROGRAMS += test_hwcomposer
14endif
15
16if HAS_LIBNFC_NXP_HEADERS
17bin_PROGRAMS += test_nfc
18endif
19
20# Please re-enable your test programs according to android
21# if HAS_ANDROID_X_Y_Z
22# bin_PROGRAMS += test_audio
23# endif
24
25test_audio_SOURCES = test_audio.c
26test_audio_CFLAGS = \
27 -I$(top_srcdir)/include
28test_audio_LDADD = \
29 $(top_builddir)/common/libhybris-common.la \
30 $(top_builddir)/hardware/libhardware.la
31
32test_egl_SOURCES = test_egl.c
33test_egl_CFLAGS = \
34 -I$(top_srcdir)/include \
35 -I$(top_srcdir)/include/android \
36 -I$(top_srcdir)/egl/platforms/common
37
38if WANT_MESA
39test_egl_CFLAGS += -DLIBHYBRIS_WANTS_MESA_X11_HEADERS
40endif
41test_egl_LDADD = \
42 $(top_builddir)/common/libhybris-common.la \
43 $(top_builddir)/egl/libEGL.la
44
45test_egl_configs_SOURCES = test_egl_configs.c
46test_egl_configs_CFLAGS = \
47 -I$(top_srcdir)/include \
48 -I$(top_srcdir)/include/android
49test_egl_configs_LDADD = \
50 $(top_builddir)/common/libhybris-common.la \
51 $(top_builddir)/egl/libEGL.la
52
53test_glesv2_SOURCES = test_glesv2.c
54test_glesv2_CFLAGS = \
55 -I$(top_srcdir)/include \
56 -I$(top_srcdir)/include/android
57if WANT_MESA
58test_glesv2_CFLAGS += -DLIBHYBRIS_WANTS_MESA_X11_HEADERS
59endif
60test_glesv2_LDADD = \
61 -lm \
62 $(top_builddir)/common/libhybris-common.la \
63 $(top_builddir)/egl/libEGL.la \
64 $(top_builddir)/glesv2/libGLESv2.la
65
66test_hwcomposer_SOURCES = test_hwcomposer.cpp
67test_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
74
75if WANT_MESA
76test_hwcomposer_CXXFLAGS += -DLIBHYBRIS_WANTS_MESA_X11_HEADERS
77endif
78test_hwcomposer_LDADD = \
79 -lm \
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
87
88test_sensors_SOURCES = test_sensors.c
89test_sensors_CFLAGS = \
90 -I$(top_srcdir)/include \
91 -I$(top_srcdir)/include/android
92test_sensors_LDADD = \
93 $(top_builddir)/common/libhybris-common.la \
94 $(top_builddir)/hardware/libhardware.la
95
96test_lights_SOURCES = test_lights.c
97test_lights_CFLAGS = \
98 -I$(top_srcdir)/include \
99 -I$(top_srcdir)/include/android
100
101test_lights_LDADD = \
102 $(top_builddir)/common/libhybris-common.la \
103 $(top_builddir)/hardware/libhardware.la
104
105test_ui_SOURCES = test_ui.c
106test_ui_CFLAGS = \
107 -I$(top_srcdir)/include \
108 -I$(top_srcdir)/include/android
109test_ui_LDADD = \
110 $(top_builddir)/common/libhybris-common.la \
111 $(top_builddir)/ui/libui.la
112
113test_sf_SOURCES = test_sf.c
114test_sf_CFLAGS = \
115 -I$(top_srcdir)/include \
116 -I$(top_srcdir)/include/android
117test_sf_LDADD = \
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
122
123test_input_SOURCES = test_input.c
124test_input_CFLAGS = \
125 -I$(top_srcdir)/include \
126 -I$(top_srcdir)/include/android
127test_input_LDADD = \
128 $(top_builddir)/common/libhybris-common.la \
129 $(top_builddir)/input/libis.la
130
131test_camera_SOURCES = test_camera.c
132test_camera_CFLAGS = \
133 -I$(top_srcdir)/include
134 -I$(top_srcdir)/include/android
135
136test_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
142
143test_gps_SOURCES = test_gps.c
144test_gps_CFLAGS = -pthread \
145 -I$(top_srcdir)/include \
146 -I$(top_srcdir)/include/android
147
148if HAS_ANDROID_4_2_0
149test_gps_CFLAGS += -DHAS_ANDROID_4_2_0
150endif
151
152test_gps_LDFLAGS = -pthread
153test_gps_LDADD = \
154 $(top_builddir)/common/libhybris-common.la \
155 $(top_builddir)/hardware/libhardware.la
156
157test_nfc_SOURCES = test_nfc.c
158test_nfc_CFLAGS = \
159 -I$(top_srcdir)/include \
160 -I$(top_srcdir)/include/android \
161 -I$(top_srcdir)/include/android/libnfc-nxp
162
163test_nfc_LDFLAGS =
164test_nfc_LDADD = \
165 $(top_builddir)/libnfc_nxp/libnfc_nxp.la \
166 $(top_builddir)/hardware/libhardware.la