Port to Windows. This is mostly glue layers for the poor POSIX support

on Windows. A few notes

 * Only sockets behave somewhat like file descriptors in UNIX.

 * There are no fixed paths. Closes thing is environment variables that point
   to system directories. We also figure out where the binary/dll is
   located and use that as configuration directory.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@418 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2006-01-05 22:51:37 +00:00
parent 2f74bb9d43
commit 19d9fcbda8
22 changed files with 712 additions and 58 deletions

View file

@ -298,6 +298,7 @@ libpolyp_@PA_MAJORMINOR@_la_SOURCES = \
cdecl.h \
client-conf.c client-conf.h \
conf-parser.c conf-parser.h \
dllmain.c \
dynarray.c dynarray.h \
gcc-printf.h \
idxset.c idxset.h \
@ -432,6 +433,7 @@ libpolypcore_la_SOURCES = \
cli-text.c cli-text.h \
client.c client.h \
core.c core.h \
dllmain.c \
dynarray.c dynarray.h \
endianmacros.h \
g711.c g711.h \
@ -562,7 +564,7 @@ libpdispatch_la_LIBADD = $(AM_LIBADD) libtagstruct.la libpolypcore.la
libiochannel_la_SOURCES = iochannel.c iochannel.h
libiochannel_la_LDFLAGS = -avoid-version
libiochannel_la_LIBADD = $(AM_LIBADD) libsocket-util.la libpolypcore.la
libiochannel_la_LIBADD = $(AM_LIBADD) libsocket-util.la libpolypcore.la $(WINSOCK_LIBS)
libpacket_la_SOURCES = packet.c packet.h
libpacket_la_LDFLAGS = -avoid-version
@ -727,6 +729,11 @@ modlib_LTLIBRARIES += \
module-mmkbd-evdev.la
endif
if OS_IS_WIN32
modlib_LTLIBRARIES += \
module-waveout.la
endif
# These are generated by a M4 script
SYMDEF_FILES = \
@ -766,7 +773,8 @@ SYMDEF_FILES = \
module-oss-symdef.h \
module-oss-mmap-symdef.h \
module-alsa-sink-symdef.h \
module-alsa-source-symdef.h
module-alsa-source-symdef.h \
module-waveout-symdef.h
EXTRA_DIST += $(SYMDEF_FILES)
BUILT_SOURCES += $(SYMDEF_FILES)
@ -974,6 +982,13 @@ module_mmkbd_evdev_la_LDFLAGS = -module -avoid-version
module_mmkbd_evdev_la_LIBADD = $(AM_LIBADD)
module_mmkbd_evdev_la_CFLAGS = $(AM_CFLAGS)
# Windows waveout
module_waveout_la_SOURCES = module-waveout.c
module_waveout_la_LDFLAGS = -module -avoid-version
module_waveout_la_LIBADD = $(AM_LIBADD) libpolypcore.la -lwinmm
module_waveout_la_CFLAGS = $(AM_CFLAGS)
###################################
# Some minor stuff #
###################################
@ -990,8 +1005,13 @@ esdcompat.sh: esdcompat.sh.in Makefile
client.conf: client.conf.in Makefile
sed -e 's,@POLYPAUDIO_BINARY\@,$(POLYPAUDIO_BINARY),g' < $< > $@
if OS_IS_WIN32
default.pa: default.pa.win32
cp $< $@
else
default.pa: default.pa.in Makefile
sed -e 's,@POLYPAUDIO_BINARY\@,$(POLYPAUDIO_BINARY),g' < $< > $@
endif
daemon.conf: daemon.conf.in Makefile
sed -e 's,@DLSEARCHPATH\@,$(modlibdir),g' \