mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 17:09:26 +02:00
Use automake for FileDialog.
This commit is contained in:
parent
01acfbd816
commit
a16897c43e
33
lib-src/FileDialog/Makefile.am
Normal file
33
lib-src/FileDialog/Makefile.am
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
|
lib_LTLIBRARIES = libFileDialog.la
|
||||||
|
|
||||||
|
libFileDialog_la_CPPFLAGS = $(WX_CXXFLAGS)
|
||||||
|
libFileDialog_la_LIBADD = $(WX_LIBS)
|
||||||
|
libFileDialog_la_SOURCES = FileDialog.cpp FileDialog.h
|
||||||
|
|
||||||
|
if MAC
|
||||||
|
libFileDialog_la_SOURCES += mac/FileDialogPrivate.cpp mac/FileDialogPrivate.h
|
||||||
|
else
|
||||||
|
|
||||||
|
if WINDOWS
|
||||||
|
libFileDialog_la_SOURCES += win/FileDialogPrivate.cpp win/FileDialogPrivate.h
|
||||||
|
else
|
||||||
|
|
||||||
|
if GTK
|
||||||
|
libFileDialog_la_CPPFLAGS += $(GTK_CFLAGS)
|
||||||
|
libFileDialog_la_LIBADD += $(GTK_LIBS)
|
||||||
|
libFileDialog_la_SOURCES += \
|
||||||
|
gtk/FileDialogPrivate.cpp \
|
||||||
|
gtk/FileDialogPrivate.h \
|
||||||
|
gtk/private.h \
|
||||||
|
$(NULL)
|
||||||
|
else
|
||||||
|
libFileDialog_la_SOURCES += \
|
||||||
|
generic/FileDialogPrivate.cpp \
|
||||||
|
generic/FileDialogPrivate.h \
|
||||||
|
$(NULL)
|
||||||
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
endif
|
@ -2,21 +2,21 @@
|
|||||||
# FileDialog
|
# FileDialog
|
||||||
#
|
#
|
||||||
|
|
||||||
|
AC_PREREQ([2.59])
|
||||||
AC_INIT([FileDialog],[1.0],[audacity.sourceforge.net],[FileDialog])
|
AC_INIT([FileDialog],[1.0],[audacity.sourceforge.net],[FileDialog])
|
||||||
AC_CONFIG_FILES([Makefile config.h])
|
AC_CONFIG_AUX_DIR([autotools])
|
||||||
AC_SUBST(EXTRADEPS)
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
AC_SUBST(EXTRAOBJS)
|
|
||||||
AC_SUBST(HAVE_GTK)
|
AM_INIT_AUTOMAKE([1.11 dist-xz foreign no-dist-gzip subdir-objects -Wall])
|
||||||
|
AM_MAINTAINER_MODE([disable])
|
||||||
|
|
||||||
#
|
#
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
#
|
#
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
AC_PROG_RANLIB
|
AM_PROG_AR
|
||||||
AC_PATH_PROG(AR, ar, no)
|
|
||||||
if [[ $AR = "no" ]] ; then
|
LT_INIT
|
||||||
AC_MSG_ERROR("Could not find ar - needed to create a library");
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
@ -31,7 +31,6 @@ AC_ARG_ENABLE(static-wx,
|
|||||||
static_wx_preference="--static=$enableval",
|
static_wx_preference="--static=$enableval",
|
||||||
static_wx_preference="")
|
static_wx_preference="")
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(unicode,
|
AC_ARG_ENABLE(unicode,
|
||||||
[AS_HELP_STRING([--enable-unicode],[enable unicode support (default=no)])],
|
[AS_HELP_STRING([--enable-unicode],[enable unicode support (default=no)])],
|
||||||
unicode_preference="--unicode=$enableval",
|
unicode_preference="--unicode=$enableval",
|
||||||
@ -60,7 +59,13 @@ fi
|
|||||||
|
|
||||||
dnl Gather wx arguments
|
dnl Gather wx arguments
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS `$WX_CONFIG $static_wx_preference $unicode_preference $debug_preference $wx_preference --cxxflags`"
|
wxconfigargs="$static_wx_preference $unicode_preference $debug_preference $wx_preference"
|
||||||
|
WX_CXXFLAGS=$($WX_CONFIG $wxconfigargs --cxxflags)
|
||||||
|
WX_LIBS=""
|
||||||
|
AC_SUBST([WX_CXXFLAGS])
|
||||||
|
AC_SUBST([WX_LIBS])
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(GTK, gtk+-2.0, have_gtk="yes", have_gtk="no")
|
||||||
|
|
||||||
dnl OS-specific configuration
|
dnl OS-specific configuration
|
||||||
|
|
||||||
@ -69,35 +74,28 @@ AC_CANONICAL_HOST
|
|||||||
case "${host_os}" in
|
case "${host_os}" in
|
||||||
darwin*)
|
darwin*)
|
||||||
dnl Mac OS X configuration
|
dnl Mac OS X configuration
|
||||||
EXTRADEPS="mac/FileDialogPrivate.h"
|
mac="yes"
|
||||||
EXTRAOBJS="mac/FileDialogPrivate.o"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
cygwin*)
|
cygwin*)
|
||||||
dnl Windows/CygWin configuration
|
dnl Windows/CygWin configuration
|
||||||
EXTRADEPS="win/FileDialogPrivate.h"
|
windows="yes"
|
||||||
EXTRAOBJS="win/FileDialogPrivate.o"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
dnl Unix configuration
|
if test "$have_gtk" = "yes"; then
|
||||||
AM_PATH_GTK_2_0(2.4.0,
|
AC_DEFINE(HAVE_GTK, 1, [Define to 1 if GTK+ is available.])
|
||||||
have_gtk="yes",
|
|
||||||
have_gtk="no")
|
|
||||||
if [[ "$have_gtk" = "yes" ]]
|
|
||||||
then
|
|
||||||
CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
|
|
||||||
EXTRADEPS="gtk/FileDialogPrivate.h gtk/private.h"
|
|
||||||
EXTRAOBJS="gtk/FileDialogPrivate.o"
|
|
||||||
HAVE_GTK=1
|
|
||||||
else
|
|
||||||
EXTRADEPS="generic/FileDialogPrivate.h"
|
|
||||||
EXTRAOBJS="generic/FileDialogPrivate.o"
|
|
||||||
HAVE_GTK=0
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
AM_CONDITIONAL([MAC], test "$mac" = "yes")
|
||||||
|
AM_CONDITIONAL([WINDOWS], test "$windows" = "yes")
|
||||||
|
AM_CONDITIONAL([GTK], test "$have_gtk" = "yes")
|
||||||
|
|
||||||
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
AC_CONFIG_FILES([Makefile])
|
||||||
|
|
||||||
#
|
#
|
||||||
# Write it all out
|
# Write it all out
|
||||||
#
|
#
|
||||||
|
@ -10,7 +10,7 @@ libportSMF.a: portsmf-recursive
|
|||||||
FileDialog-recursive:
|
FileDialog-recursive:
|
||||||
$(MAKE) -C FileDialog
|
$(MAKE) -C FileDialog
|
||||||
FileDialog.a: FileDialog-recursive
|
FileDialog.a: FileDialog-recursive
|
||||||
ln -sf FileDialog/FileDialog.a FileDialog.a
|
ln -sf FileDialog/.libs/libFileDialog.a FileDialog.a
|
||||||
|
|
||||||
# libwidgetextra
|
# libwidgetextra
|
||||||
widgetextra:
|
widgetextra:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user