OSDN Git Service

build: Add haltest command line tester
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 17 Oct 2013 20:28:37 +0000 (22:28 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 18 Oct 2013 07:14:48 +0000 (10:14 +0300)
This is intended for testing Android daemon and HAL library on Linux.

Makefile.android

index 3459a4d..3bc95be 100644 (file)
@@ -31,6 +31,20 @@ android_libhal_internal_la_SOURCES = android/hal.h android/hal_bluetooth.c \
                                        android/cutils/log.h \
                                        android/cutils/properties.h
 android_libhal_internal_la_CPPFLAGS = -I$(srcdir)/android
+
+noinst_PROGRAMS += android/haltest
+
+android_haltest_SOURCES = android/client/haltest.c \
+                               android/client/pollhandler.c \
+                               android/client/terminal.c \
+                               android/client/history.c \
+                               android/client/textconv.c \
+                               android/client/if-bt.c
+
+android_haltest_LDADD = android/libhal-internal.la
+
+android_haltest_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/android
+
 endif
 
 EXTRA_DIST += android/Android.mk android/log.c