| 1 | bin_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 | |
| 12 | if HAS_ANDROID_4_2_0 |
| 13 | bin_PROGRAMS += test_hwcomposer |
| 14 | endif |
| 15 | |
| 16 | if HAS_LIBNFC_NXP_HEADERS |
| 17 | bin_PROGRAMS += test_nfc |
| 18 | endif |
| 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 | |
| 25 | test_audio_SOURCES = test_audio.c |
| 26 | test_audio_CFLAGS = \ |
| 27 | -I$(top_srcdir)/include |
| 28 | test_audio_LDADD = \ |
| 29 | $(top_builddir)/common/libhybris-common.la \ |
| 30 | $(top_builddir)/hardware/libhardware.la |
| 31 | |
| 32 | test_egl_SOURCES = test_egl.c |
| 33 | test_egl_CFLAGS = \ |
| 34 | -I$(top_srcdir)/include \ |
| 35 | -I$(top_srcdir)/include/android \ |
| 36 | -I$(top_srcdir)/egl/platforms/common |
| 37 | |
| 38 | if WANT_MESA |
| 39 | test_egl_CFLAGS += -DLIBHYBRIS_WANTS_MESA_X11_HEADERS |
| 40 | endif |
| 41 | test_egl_LDADD = \ |
| 42 | $(top_builddir)/common/libhybris-common.la \ |
| 43 | $(top_builddir)/egl/libEGL.la |
| 44 | |
| 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 |
| 52 | |
| 53 | test_glesv2_SOURCES = test_glesv2.c |
| 54 | test_glesv2_CFLAGS = \ |
| 55 | -I$(top_srcdir)/include \ |
| 56 | -I$(top_srcdir)/include/android |
| 57 | if WANT_MESA |
| 58 | test_glesv2_CFLAGS += -DLIBHYBRIS_WANTS_MESA_X11_HEADERS |
| 59 | endif |
| 60 | test_glesv2_LDADD = \ |
| 61 | -lm \ |
| 62 | $(top_builddir)/common/libhybris-common.la \ |
| 63 | $(top_builddir)/egl/libEGL.la \ |
| 64 | $(top_builddir)/glesv2/libGLESv2.la |
| 65 | |
| 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 |
| 74 | |
| 75 | if WANT_MESA |
| 76 | test_hwcomposer_CXXFLAGS += -DLIBHYBRIS_WANTS_MESA_X11_HEADERS |
| 77 | endif |
| 78 | test_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 | |
| 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 |
| 95 | |
| 96 | test_lights_SOURCES = test_lights.c |
| 97 | test_lights_CFLAGS = \ |
| 98 | -I$(top_srcdir)/include \ |
| 99 | -I$(top_srcdir)/include/android |
| 100 | |
| 101 | test_lights_LDADD = \ |
| 102 | $(top_builddir)/common/libhybris-common.la \ |
| 103 | $(top_builddir)/hardware/libhardware.la |
| 104 | |
| 105 | test_ui_SOURCES = test_ui.c |
| 106 | test_ui_CFLAGS = \ |
| 107 | -I$(top_srcdir)/include \ |
| 108 | -I$(top_srcdir)/include/android |
| 109 | test_ui_LDADD = \ |
| 110 | $(top_builddir)/common/libhybris-common.la \ |
| 111 | $(top_builddir)/ui/libui.la |
| 112 | |
| 113 | test_sf_SOURCES = test_sf.c |
| 114 | test_sf_CFLAGS = \ |
| 115 | -I$(top_srcdir)/include \ |
| 116 | -I$(top_srcdir)/include/android |
| 117 | test_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 | |
| 123 | test_input_SOURCES = test_input.c |
| 124 | test_input_CFLAGS = \ |
| 125 | -I$(top_srcdir)/include \ |
| 126 | -I$(top_srcdir)/include/android |
| 127 | test_input_LDADD = \ |
| 128 | $(top_builddir)/common/libhybris-common.la \ |
| 129 | $(top_builddir)/input/libis.la |
| 130 | |
| 131 | test_camera_SOURCES = test_camera.c |
| 132 | test_camera_CFLAGS = \ |
| 133 | -I$(top_srcdir)/include |
| 134 | -I$(top_srcdir)/include/android |
| 135 | |
| 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 |
| 142 | |
| 143 | test_gps_SOURCES = test_gps.c |
| 144 | test_gps_CFLAGS = -pthread \ |
| 145 | -I$(top_srcdir)/include \ |
| 146 | -I$(top_srcdir)/include/android |
| 147 | |
| 148 | if HAS_ANDROID_4_2_0 |
| 149 | test_gps_CFLAGS += -DHAS_ANDROID_4_2_0 |
| 150 | endif |
| 151 | |
| 152 | test_gps_LDFLAGS = -pthread |
| 153 | test_gps_LDADD = \ |
| 154 | $(top_builddir)/common/libhybris-common.la \ |
| 155 | $(top_builddir)/hardware/libhardware.la |
| 156 | |
| 157 | test_nfc_SOURCES = test_nfc.c |
| 158 | test_nfc_CFLAGS = \ |
| 159 | -I$(top_srcdir)/include \ |
| 160 | -I$(top_srcdir)/include/android \ |
| 161 | -I$(top_srcdir)/include/android/libnfc-nxp |
| 162 | |
| 163 | test_nfc_LDFLAGS = |
| 164 | test_nfc_LDADD = \ |
| 165 | $(top_builddir)/libnfc_nxp/libnfc_nxp.la \ |
| 166 | $(top_builddir)/hardware/libhardware.la |