Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libao
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
libao
Commits
502b6b33
Commit
502b6b33
authored
17 years ago
by
Benjamin Gérard
Browse files
Options
Downloads
Patches
Plain Diff
Get ready for win32 build.
git-svn-id:
http://svn.xiph.org/trunk/ao@12983
0101bb08-14d6-0310-b084-bc0e0c8e3800
parent
3cb32a93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ao.pc.in
+2
-1
2 additions, 1 deletion
ao.pc.in
configure.ac
+64
-2
64 additions, 2 deletions
configure.ac
src/Makefile.am
+10
-2
10 additions, 2 deletions
src/Makefile.am
with
76 additions
and
5 deletions
ao.pc.in
+
2
−
1
View file @
502b6b33
...
...
@@ -10,5 +10,6 @@ Description: ao is a cross-platform audio output library
Version: @VERSION@
Requires:
Conflicts:
Libs: -L${libdir} -lao
Libs: -L${libdir} -lao
@LIBS@
Cflags: -I${includedir}
This diff is collapsed.
Click to expand it.
configure.ac
+
64
−
2
View file @
502b6b33
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/audio_out.c)
AC_INIT([liba0],[0.8.8],[benjihan@users.sourceforge.net])
AM_INIT_AUTOMAKE([gnu 1.6])
AM_INIT_AUTOMAKE(libao,0.8.6)
AM_MAINTAINER_MODE
dnl $$$ben: Is that neccessary ? And why ?
AM_DISABLE_STATIC
dnl Library versioning
...
...
@@ -17,6 +19,7 @@ AC_SUBST(LIB_AGE)
dnl Plugin versioning. We use an integer version number much like LIB_CURRENT.
PLUGIN_VERSION=2
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
plugindir=$libdir/ao/plugins-$PLUGIN_VERSION
...
...
@@ -27,9 +30,20 @@ dnl Check for programs
dnl ====================================
AC_PROG_CC
AC_LIBTOOL_WIN32_DLL
AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL
dnl ====================================
dnl Check dlopen
dnl ====================================
dnl Currently use this to disable plugin support dlfcn.h
AC_CHECK_HEADERS([dlfcn.h],
[AC_SEARCH_LIBS([dlopen],[dl],
[AC_DEFINE([HAVE_DLOPEN],[1],
[support dynamic linking loader])])])
dnl ====================================
dnl Set some general compile options
dnl ====================================
...
...
@@ -89,6 +103,21 @@ PROFILE="$PROFILE $cflags_save"
AC_SUBST(DEBUG)
AC_SUBST(PROFILE)
dnl =========================================
dnl Need -no-undefined for building win32 dll
dnl =========================================
dnl Should we do that for cygwin too ???
dnl I guess so but it needs to be tested.
case $host in
*-mingw*|*-cygwin*)
LIBAO_LA_LDFLAGS="-no-undefined"
;;
*)
LIBAO_LA_LDFLAGS=""
;;
esac
AC_SUBST(LIBAO_LA_LDFLAGS)
dnl ==============================
dnl Check for libraries
dnl ==============================
...
...
@@ -154,6 +183,39 @@ dnl ======================================
dnl Detect possible output devices
dnl ======================================
dnl Check for WMM
[has_wmm="no"]
AC_ARG_ENABLE([wmm],
[AS_HELP_STRING(
[--enable-wmm],
[include WMM output plugin @<:@default=check@:>@])],
[],[enable_wmm="check"]
)
AS_IF([test "x$enable_wmm" != "xno"],
[AC_CHECK_HEADERS([mmsystem.h],
[
AC_MSG_CHECKING([waveOut family functions])
waveout_old_LIBS="$LIBS"; LIBS="$LIBS -lwinmm"
dnl Can't use AC_SEARCH_LIBS because symbols are decorated
AC_LINK_IFELSE([
#include <windows.h>
#include <mmsystem.h>
int main(int na, char ** a) {
return waveOutOpen(0,0,0,0,0,0);
}
],[
has_wmm="yes";
AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_WMM],[1],[Support Windows MultiMedia])
],[
AC_MSG_RESULT([no])
LIBS="$waveout_old_LIBS"
])
],[],[#include <windows.h>])])
AM_CONDITIONAL([HAVE_WMM],[test "x$has_wmm" = "xyes"])
AS_IF([test "x${has_wmm}" = "xyes"],[WMM_LIBS="-lwinmm"],[WMM_LIBS=""])
AC_SUBST([WMM_LIBS])
dnl Check for ESD
...
...
This diff is collapsed.
Click to expand it.
src/Makefile.am
+
10
−
2
View file @
502b6b33
...
...
@@ -7,8 +7,14 @@ INCLUDES = -I$(top_builddir)/include/ao -I$(top_srcdir)/include -DAO_PLUGIN_PATH
lib_LTLIBRARIES
=
libao.la
libao_la_SOURCES
=
audio_out.c config.c ao_null.c ao_wav.c ao_au.c ao_raw.c ao_aixs.c ao_private.h
libao_la_LDFLAGS
=
-version-info
@LIB_CURRENT@:@LIB_REVISION@:@LIB_AGE@
-ldl
if
HAVE_WMM
wmm
=
ao_wmm.c
else
wmm
=
endif
libao_la_SOURCES
=
audio_out.c config.c ao_null.c ao_wav.c ao_au.c ao_raw.c ao_aixs.c ao_private.h
$(
wmm
)
libao_la_LDFLAGS
=
@LIBAO_LA_LDFLAGS@
-version-info
@LIB_CURRENT@:@LIB_REVISION@:@LIB_AGE@
debug
:
...
...
@@ -16,3 +22,5 @@ debug:
profile
:
$(
MAKE
)
all
CFLAGS
=
"@PROFILE@"
EXTRA_DIST
=
ao_wmm.c
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment