diff --git a/daemon/Makefile.am b/daemon/Makefile.am index d0d8ea43515bfa160176db64cc1c36ba74982df8..04db57e013341fc99fa20e3cab7b73e4f0eb4f05 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -19,10 +19,13 @@ unittest: endif ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = src ringtones man $(TESTS_DIR) doc -if SFL_DBUS -SUBDIRS += bin + +#FIXME: this will change when libsflphone is fixed +if HAVE_WIN32 +SUBDIRS = bin +else +SUBDIRS = src ringtones man $(TESTS_DIR) doc bin endif if USE_DHT diff --git a/daemon/bin/Makefile.am b/daemon/bin/Makefile.am index 7d6340868f9a775e84969cf8b526575af44426df..f0f22c77a14edc4862ad36d31ed209adf3018941 100644 --- a/daemon/bin/Makefile.am +++ b/daemon/bin/Makefile.am @@ -1,3 +1,11 @@ +if HAVE_WIN32 +libexec_PROGRAMS = ringcli +ringcli_SOURCES = winmain.cpp +#FIXME This is temporary +ringcli_LDADD = $(SPEEX_LIBS) +endif + +if SFL_DBUS SUBDIRS=dbus libexecdir=$(libdir)/sflphone @@ -9,3 +17,4 @@ sflphoned_CXXFLAGS=-I$(top_srcdir)/src ${DBUSCPP_CFLAGS} \ -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" sflphoned_LDADD = dbus/libclient_dbus.la ${DBUSCPP_LIBS} $(top_builddir)/src/libsflphone.la +endif diff --git a/daemon/bin/winmain.cpp b/daemon/bin/winmain.cpp new file mode 100644 index 0000000000000000000000000000000000000000..85e850d4ae28218db389c6e035c973688f1dac84 --- /dev/null +++ b/daemon/bin/winmain.cpp @@ -0,0 +1,8 @@ +#include <speex/speex.h> + +int main() +{ + const SpeexMode *mode = speex_lib_get_mode(SPEEX_MODEID_NB); + printf("Hello %s\n", mode->modeName); + return 0; +} diff --git a/daemon/configure.ac b/daemon/configure.ac index 59900be1c7b714348f79d3479bc2f5f4290e87bc..4529071a477f3647747944d4a56e6eab443e52d7 100644 --- a/daemon/configure.ac +++ b/daemon/configure.ac @@ -310,8 +310,7 @@ AC_ARG_WITH([dbus], [with_dbus=yes]) AS_IF([test "x$with_dbus" = "xyes"], [ PKG_CHECK_MODULES(DBUSCPP, dbus-c++-1,, AC_MSG_WARN([Missing dbus development files])) - AC_CONFIG_FILES([bin/Makefile \ - bin/dbus/Makefile]) + AC_CONFIG_FILES([bin/dbus/Makefile]) AC_CHECK_PROG(HAVE_DBUSXML2CPP, dbusxx-xml2cpp, true, false) if test "x$HAVE_DBUSXML2CPP" = "xfalse"; then @@ -578,6 +577,7 @@ dnl What Makefiles to generate #TODO: split this list across where the relevant check is performed AC_CONFIG_FILES([Makefile \ + bin/Makefile \ src/Makefile \ src/sip/Makefile \ src/im/Makefile \