Build intermediate libinfinity.la convenience library

This commit is contained in:
Duilio Protti 2016-07-02 20:16:04 -03:00
parent f540fa71ba
commit 4503286694
2 changed files with 15 additions and 15 deletions

View File

@ -34,13 +34,9 @@ else
fi fi
# Check dependencies # Check dependencies
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.28,,) PKG_CHECK_MODULES(INFINITY, glib-2.0 >= 2.28 sdl2 >= 2,,)
AC_SUBST(GLIB_LIBS) AC_SUBST(INFINITY_LIBS)
AC_SUBST(GLIB_CFLAGS) AC_SUBST(INFINITY_CFLAGS)
PKG_CHECK_MODULES(SDL, sdl2 >= 2,,)
AC_SUBST(SDL_LIBS)
AC_SUBST(SDL_CFLAGS)
PKG_CHECK_MODULES(AUDACIOUS, audacious >= 3.5,,) PKG_CHECK_MODULES(AUDACIOUS, audacious >= 3.5,,)
AC_SUBST(AUDACIOUS_LIBS) AC_SUBST(AUDACIOUS_LIBS)
@ -172,10 +168,9 @@ AC_OUTPUT
echo " echo "
============================================================== ==============================================================
Infinity Plugin for the Audacious Player -- version $VERSION Infinity Plugin for the Audacious Player -- version $VERSION
==============================================================
Install path : ${libdir}
Compiler : ${CC} Compiler : ${CC}
Install path : ${libdir}
CFLAGS : ${INF_CFLAGS_EXTRA} ${CFLAGS} CFLAGS : ${INF_CFLAGS_EXTRA} ${CFLAGS}
CXXFLAGS : ${CXXFLAGS} CXXFLAGS : ${CXXFLAGS}
Debug enabled : ${debug} Debug enabled : ${debug}

View File

@ -1,21 +1,21 @@
## Process this file with automake to produce Makefile.in ## Process this file with automake to produce Makefile.in
noinst_LTLIBRARIES = libinfinity.la
lib_LTLIBRARIES = libinfinite.la lib_LTLIBRARIES = libinfinite.la
data_DATA = infinite_states data_DATA = infinite_states
datadir = $(prefix)/share/audacious datadir = $(prefix)/share/infinity-plugin
COMMON_FLAGS = @AUDACIOUS_CFLAGS@ @SDL_CFLAGS@ @GLIB_CFLAGS@ \ COMMON_FLAGS = @INFINITY_CFLAGS@ \
$(INF_CFLAGS_EXTRA) -DDATADIR='"$(datadir)"' $(INF_CFLAGS_EXTRA) -DDATADIR='"$(datadir)"'
AM_CFLAGS = @CFLAGS@ $(COMMON_FLAGS) AM_CFLAGS = @CFLAGS@ $(COMMON_FLAGS)
AM_CXXFLAGS = @CXXFLAGS@ $(COMMON_FLAGS) AM_CXXFLAGS = @CXXFLAGS@ $(COMMON_FLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir) AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)
libinfinite_la_LDFLAGS = ${CXX} libinfinity_la_SOURCES = \
libinfinite_la_LIBADD = @AUDACIOUS_LIBS@ @SDL_LIBS@ @GLIB_LIBS@
libinfinite_la_SOURCES = \
audacious.cc \
infinity.c infinity.h \ infinity.c infinity.h \
compute.c compute.h \ compute.c compute.h \
display.c display.h \ display.c display.h \
@ -23,4 +23,9 @@ libinfinite_la_SOURCES = \
cputest.c cputest.h \ cputest.c cputest.h \
mmx.h music-player.h types.h mmx.h music-player.h types.h
libinfinite_la_SOURCES = audacious.cc
libinfinite_la_LDFLAGS = ${CXX}
libinfinite_la_LIBADD = libinfinity.la @AUDACIOUS_LIBS@ @INFINITY_LIBS@
libinfinite_la_CFLAGS = @AUDACIOUS_CFLAGS@ $(COMMON_FLAGS)
EXTRA_DIST = infinite_states EXTRA_DIST = infinite_states