1111 GET - failed attempt to get Ruby to work (commented out) and made PortAudio optional (I hope)
Originally committed to SVN as r1111.
This commit is contained in:
parent
31fac78388
commit
7f6c3a4ba1
3 changed files with 21 additions and 22 deletions
|
@ -11,7 +11,7 @@ DARCSREV := $(strip $(shell head -n 1 ../_darcs/inventory 2>/dev/null))
|
||||||
REVISION := $(if $(SVNREV),-DBUILD_SVN_REVISION=$(SVNREV)) $(if $(DARCSREV),-DBUILD_DARCS)
|
REVISION := $(if $(SVNREV),-DBUILD_SVN_REVISION=$(SVNREV)) $(if $(DARCSREV),-DBUILD_DARCS)
|
||||||
BUILDINFO := -DBUILD_CREDIT="\"$(shell whoami)\"" $(REVISION)
|
BUILDINFO := -DBUILD_CREDIT="\"$(shell whoami)\"" $(REVISION)
|
||||||
|
|
||||||
AM_CPPFLAGS = -DAEGISUB -Iposix -include posix/defines.h $(BUILDINFO)
|
AM_CPPFLAGS = -DAEGISUB -Iposix $(RUBY_CFLAGS) -include posix/defines.h $(BUILDINFO)
|
||||||
LDADD = posix/libposix.a ../lua51/src/liblua.a ../FexTrackerSource/libfex.a ../csri/lib/.libs/libcsri.a -lGL -lGLU
|
LDADD = posix/libposix.a ../lua51/src/liblua.a ../FexTrackerSource/libfex.a ../csri/lib/.libs/libcsri.a -lGL -lGLU
|
||||||
|
|
||||||
if USE_LIBASS
|
if USE_LIBASS
|
||||||
|
@ -20,9 +20,17 @@ else
|
||||||
LIBASS=
|
LIBASS=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# auto4_ruby_assfile.cpp
|
if HAVE_PORTAUDIO
|
||||||
# auto4_ruby.cpp
|
PORTAUDIO=audio_player_portaudio.cpp
|
||||||
# auto4_ruby_dialog.cpp
|
else
|
||||||
|
PORTAUDIO=
|
||||||
|
endif
|
||||||
|
|
||||||
|
#if HAVE_RUBY
|
||||||
|
#AUTO4RUBY=auto4_ruby_assfile.cpp auto4_ruby.cpp auto4_ruby_dialog.cpp
|
||||||
|
#else
|
||||||
|
#AUTO4RUBY=
|
||||||
|
#endif
|
||||||
|
|
||||||
aegisub_SOURCES = \
|
aegisub_SOURCES = \
|
||||||
aegisublocale.cpp \
|
aegisublocale.cpp \
|
||||||
|
@ -40,7 +48,7 @@ aegisub_SOURCES = \
|
||||||
audio_display.cpp \
|
audio_display.cpp \
|
||||||
audio_karaoke.cpp \
|
audio_karaoke.cpp \
|
||||||
audio_player.cpp \
|
audio_player.cpp \
|
||||||
audio_player_portaudio.cpp \
|
$(PORTAUDIO) \
|
||||||
audio_provider.cpp \
|
audio_provider.cpp \
|
||||||
audio_provider_hd.cpp \
|
audio_provider_hd.cpp \
|
||||||
audio_provider_lavc.cpp \
|
audio_provider_lavc.cpp \
|
||||||
|
@ -52,6 +60,7 @@ aegisub_SOURCES = \
|
||||||
auto4_lua_assfile.cpp \
|
auto4_lua_assfile.cpp \
|
||||||
auto4_lua_dialog.cpp \
|
auto4_lua_dialog.cpp \
|
||||||
auto4_auto3.cpp \
|
auto4_auto3.cpp \
|
||||||
|
$(AUTO4RUBY) \
|
||||||
avisynth_wrap.cpp \
|
avisynth_wrap.cpp \
|
||||||
base_grid.cpp \
|
base_grid.cpp \
|
||||||
browse_button.cpp \
|
browse_button.cpp \
|
||||||
|
|
|
@ -22,35 +22,22 @@ typedef int64_t __int64;
|
||||||
typedef uint64_t __uint64;
|
typedef uint64_t __uint64;
|
||||||
#define abs64 llabs
|
#define abs64 llabs
|
||||||
|
|
||||||
#if defined(HAVE_LIBAVCODEC) && defined(HAVE_LIBAVFORMAT)
|
/*
|
||||||
#define USE_LAVC 1
|
|
||||||
#endif
|
|
||||||
#if defined(HAVE_ASA) && defined(HAVE_ASA_H)
|
#if defined(HAVE_ASA) && defined(HAVE_ASA_H)
|
||||||
#define USE_ASA 1
|
#define USE_ASA 1
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_LIBSSA) && defined(HAVE_LIBSSA_LIBSSA_H)
|
#if defined(HAVE_LIBSSA) && defined(HAVE_LIBSSA_LIBSSA_H)
|
||||||
#define USE_LIBSSA 1
|
#define USE_LIBSSA 1
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_LIBPORTAUDIO
|
|
||||||
#define USE_PORTAUDIO 1
|
|
||||||
#else
|
|
||||||
#error no audio system available
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//#define USE_HUNSPELL 0
|
|
||||||
#ifndef USE_LAVC
|
|
||||||
#define USE_LAVC 0
|
|
||||||
#endif
|
|
||||||
#define USE_PRS 0
|
#define USE_PRS 0
|
||||||
#ifndef USE_FEXTRACKER
|
#ifndef USE_FEXTRACKER
|
||||||
#define USE_FEXTRACKER 1
|
#define USE_FEXTRACKER 0
|
||||||
#endif
|
|
||||||
#ifndef USE_LIBSSA
|
|
||||||
#define USE_LIBSSA 0
|
|
||||||
#endif
|
#endif
|
||||||
#ifndef USE_ASA
|
#ifndef USE_ASA
|
||||||
#define USE_ASA 0
|
#define USE_ASA 0
|
||||||
#endif
|
#endif
|
||||||
|
*/
|
||||||
|
|
||||||
#include "res.h"
|
#include "res.h"
|
||||||
|
|
||||||
|
|
|
@ -66,11 +66,12 @@ ACX_PTHREAD([], [
|
||||||
AC_MSG_FAILURE([Aegisub needs pthreads])
|
AC_MSG_FAILURE([Aegisub needs pthreads])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_CHECK_LIB([portaudio], [Pa_Initialize],, [AC_MSG_ERROR([portaudio not found.])])
|
AC_CHECK_LIB([portaudio], [Pa_Initialize],, [with_portaudio=no])
|
||||||
AC_CHECK_FUNCS([Pa_GetStreamTime])
|
AC_CHECK_FUNCS([Pa_GetStreamTime])
|
||||||
AC_CHECK_LIB([avcodec], [avcodec_init],, [AC_MSG_ERROR([avcodec not found.])])
|
AC_CHECK_LIB([avcodec], [avcodec_init],, [AC_MSG_ERROR([avcodec not found.])])
|
||||||
AC_CHECK_LIB([avformat], [av_read_frame],, [AC_MSG_ERROR([avformat not found.])])
|
AC_CHECK_LIB([avformat], [av_read_frame],, [AC_MSG_ERROR([avformat not found.])])
|
||||||
AC_CHECK_LIB([hunspell], [main],, [AC_MSG_ERROR([Hunspell not found.])])
|
AC_CHECK_LIB([hunspell], [main],, [AC_MSG_ERROR([Hunspell not found.])])
|
||||||
|
# AC_CHECK_LIB([ruby1.9], [ruby_init],, [with_ruby=no])
|
||||||
|
|
||||||
AC_CHECK_HEADER([wchar.h],,[
|
AC_CHECK_HEADER([wchar.h],,[
|
||||||
AC_MSG_FAILURE([aegisub needs wide character support, find a wchar.h])
|
AC_MSG_FAILURE([aegisub needs wide character support, find a wchar.h])
|
||||||
|
@ -204,6 +205,8 @@ AC_HEADER_STDBOOL
|
||||||
AC_CONFIG_SUBDIRS([csri])
|
AC_CONFIG_SUBDIRS([csri])
|
||||||
|
|
||||||
AM_CONDITIONAL([USE_LIBASS], [test "$with_libass" != "no" ])
|
AM_CONDITIONAL([USE_LIBASS], [test "$with_libass" != "no" ])
|
||||||
|
AM_CONDITIONAL([HAVE_PORTAUDIO], [test "$with_portaudio" != "no"])
|
||||||
|
#AM_CONDITIONAL([HAVE_RUBY], [test "$with_ruby" != "no"])
|
||||||
|
|
||||||
AC_OUTPUT([
|
AC_OUTPUT([
|
||||||
Makefile
|
Makefile
|
||||||
|
|
Loading…
Reference in a new issue