mirror of https://github.com/PCSX2/pcsx2.git
Linux: Get ZeroSPU2 compiling. May be modified later, because I'm not sure I'm happy about manually copying libSoundTouch.a in build.sh.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@616 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
7111fb2105
commit
3a8bfabd2e
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
curdir=`pwd`
|
||||||
|
|
||||||
|
echo -----------------
|
||||||
|
echo Building SoundTouch
|
||||||
|
echo -----------------
|
||||||
|
|
||||||
|
if [ $# -gt 0 ] && [ $1 = "all" ]
|
||||||
|
then
|
||||||
|
|
||||||
|
aclocal
|
||||||
|
automake -a
|
||||||
|
autoconf
|
||||||
|
./configure
|
||||||
|
make clean
|
||||||
|
make install
|
||||||
|
|
||||||
|
else
|
||||||
|
make $@
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
#cp libZeroSPU2*.so* ${PCSX2PLUGINS}
|
|
@ -0,0 +1,55 @@
|
||||||
|
# -*- Autoconf -*-
|
||||||
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
|
AC_PREREQ([2.63])
|
||||||
|
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
|
||||||
|
AM_INIT_AUTOMAKE
|
||||||
|
AC_CONFIG_SRCDIR([BPMDetect.h])
|
||||||
|
|
||||||
|
# Checks for programs.
|
||||||
|
AC_PROG_CXX
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_PROG_RANLIB
|
||||||
|
|
||||||
|
dnl Check for 64bit CPU
|
||||||
|
AC_MSG_CHECKING(for a x86-64 CPU)
|
||||||
|
dnl if test "$build_os" == "target_os"
|
||||||
|
dnl then
|
||||||
|
AC_TRY_RUN([
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int a = 0;
|
||||||
|
int*pa = &a;
|
||||||
|
asm(".intel_syntax\n"
|
||||||
|
"mov %%rax, %0\n"
|
||||||
|
"mov %%eax, [%%rax]\n"
|
||||||
|
".att_syntax\n"
|
||||||
|
: : "r"(pa) : "%rax");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
],cpu64=yes,cpu64=no,)
|
||||||
|
dnl else
|
||||||
|
dnl cpu64=no
|
||||||
|
dnl fi
|
||||||
|
if test "x$cpu64" == xyes
|
||||||
|
then
|
||||||
|
AC_DEFINE(__x86_64__,1,[__x86_64__])
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($cpu64)
|
||||||
|
AM_CONDITIONAL(X86_64, test x$cpu64 = xyes)
|
||||||
|
|
||||||
|
|
||||||
|
# Checks for header files.
|
||||||
|
AC_CHECK_HEADERS([limits.h memory.h stdlib.h string.h])
|
||||||
|
|
||||||
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
AC_C_INLINE
|
||||||
|
AC_C_RESTRICT
|
||||||
|
AC_TYPE_SIZE_T
|
||||||
|
AC_HEADER_STDBOOL
|
||||||
|
|
||||||
|
# Checks for library functions.
|
||||||
|
AC_CHECK_FUNCS([memmove memset])
|
||||||
|
|
||||||
|
AC_CONFIG_FILES([Makefile])
|
||||||
|
AC_OUTPUT
|
|
@ -0,0 +1 @@
|
||||||
|
/usr/share/automake-1.10/depcomp
|
|
@ -0,0 +1 @@
|
||||||
|
/usr/share/automake-1.10/install-sh
|
|
@ -0,0 +1 @@
|
||||||
|
/usr/share/automake-1.10/missing
|
|
@ -22,13 +22,13 @@ EXEEXT=$(preext)@so_ext@
|
||||||
|
|
||||||
traplib_PROGRAMS=libZeroSPU2
|
traplib_PROGRAMS=libZeroSPU2
|
||||||
libZeroSPU2_SOURCES=
|
libZeroSPU2_SOURCES=
|
||||||
libZeroSPU2_DEPENDENCIES = libZeroSPU2.a ../../3rdparty/SoundTouch/libSoundTouch.a
|
libZeroSPU2_DEPENDENCIES = libZeroSPU2.a libSoundTouch.a
|
||||||
libZeroSPU2_LDFLAGS= @SHARED_LDFLAGS@
|
libZeroSPU2_LDFLAGS= @SHARED_LDFLAGS@
|
||||||
libZeroSPU2_LDFLAGS+=-Wl,-soname,@ZEROSPU2_SONAME@
|
libZeroSPU2_LDFLAGS+=-Wl,-soname,@ZEROSPU2_SONAME@
|
||||||
libZeroSPU2_LDADD=$(libZeroSPU2_a_OBJECTS) ../../3rdparty/SoundTouch/libSoundTouch.a
|
libZeroSPU2_LDADD=$(libZeroSPU2_a_OBJECTS) libSoundTouch.a
|
||||||
|
|
||||||
libZeroSPU2_a_SOURCES = zerospu2.cpp voices.cpp zerodma.cpp
|
libZeroSPU2_a_SOURCES = zerospu2.cpp voices.cpp zerodma.cpp
|
||||||
libZeroSPU2_a_SOURCES += zerospu2.h reg.h misc.h
|
libZeroSPU2_a_SOURCES += zerospu2.h reg.h misc.h
|
||||||
libZeroSPU2_a_SOURCES += Linux/interface.c Linux/Linux.cpp Linux/Alsa.cpp Linux/OSS.cpp Linux/support.c
|
libZeroSPU2_a_SOURCES += Linux/interface.c Linux/Linux.cpp Linux/Alsa.cpp Linux/OSS.cpp Linux/support.c
|
||||||
|
|
||||||
SUBDIRS = ../../3rdparty/SoundTouch
|
#SUBDIRS = ../../3rdparty/SoundTouch
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
curdir=`pwd`
|
curdir=`pwd`
|
||||||
|
|
||||||
echo -----------------
|
|
||||||
echo Building ZeroSPU2
|
|
||||||
echo -----------------
|
|
||||||
|
|
||||||
if test "${ZEROSPU2OPTIONS+set}" != set ; then
|
if test "${ZEROSPU2OPTIONS+set}" != set ; then
|
||||||
export ZEROSPU2OPTIONS=""
|
export ZEROSPU2OPTIONS=""
|
||||||
fi
|
fi
|
||||||
|
@ -13,6 +9,17 @@ fi
|
||||||
if [ $# -gt 0 ] && [ $1 = "all" ]
|
if [ $# -gt 0 ] && [ $1 = "all" ]
|
||||||
then
|
then
|
||||||
|
|
||||||
|
cd ../../3rdparty/SoundTouch/
|
||||||
|
sh build.sh $@
|
||||||
|
cd $curdir
|
||||||
|
|
||||||
|
rm libSoundTouch.a
|
||||||
|
cp ../../3rdparty/SoundTouch/libSoundTouch.a ./
|
||||||
|
|
||||||
|
echo -----------------
|
||||||
|
echo Building ZeroSPU2
|
||||||
|
echo -----------------
|
||||||
|
|
||||||
aclocal
|
aclocal
|
||||||
automake -a
|
automake -a
|
||||||
autoconf
|
autoconf
|
||||||
|
|
|
@ -105,7 +105,6 @@ AC_CHECK_LIB(dl,main,[LIBS="$LIBS -ldl"])
|
||||||
AC_CHECK_LIB(asound,main,[LIBS="$LIBS -lasound"])
|
AC_CHECK_LIB(asound,main,[LIBS="$LIBS -lasound"])
|
||||||
|
|
||||||
AC_OUTPUT([
|
AC_OUTPUT([
|
||||||
../../3rdparty/SoundTouch/Makefile
|
|
||||||
Makefile
|
Makefile
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue