[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

build system oms/ac3dec





Hello,

currently oms uses a different libao _directroy_ , than ac3dec does.
ac3dec builds _one_ library, whereas oms build many small libraries.
ac3dec installs headers of its package, oms not.
In short: We have no Standard, how to handle the problem, between
          OMS installs and standalone installs (eg: ac3dec)


Standard: [DRAFT]

- A shared directory is a directory between two "standalone" applications.
  OMS is a standalone app, mpeg2dec and ac3dec.(more?)
  The shared directory between the applications :
  (are, or should be): libmpeg2,libac3,libvo,libao

- The Makefile.am in a shared directory should look like this:

  ## Libs
  noinst_LTLIBRARIES = libac3.la
  libac3_la_LDFLAGS  = 
  libac3_la_SOURCES  = <sources>
  noinst_HEADERS     = <all_headers>

And then we build in an application specific Makefile.am the libs and
Headers we want to install for this Application.
For a standalone ac3dec this looks like this:

Makefile.am (somewhere outside the shared dir)
----------------------------------------------


lib_LTLIBRARIES    = libac3.la libao.la
libac3_la_SOURCES  = $(NONE)
libac3_la_LIBADD   = libac3/*.lo
libao_la_SOURCES   = $(NONE)
libao_la_LIBADD    = libao/*.lo
BUILT_SOURCES      = ac3.h audio_out.h
ac3.h          :
               cp path_to/libac3/ac3.h .
audio_out.h    :
               cp path_to/libao/audio_out.h .
pkginclude_HEADERS = ac3.h audio_out.h


For OMS this would look like:
-----------------------------

libdir = $(PLUGIN_DIR)
lib_LTLIBRARIES = audio_sys.la audio_null.la audio_wav.la

LDFLAGS = -no-undefined -avoid-version

audio_sys_la_SOURCES = $(NONE)
audio_sys_la_LIBADD  = pathaudio_sys.lo
audio_sys_la_LDFLAGS = -module

audio_null_la_SOURCES = $(NONE)
audio_null_la_LIBADD  = audio_null.lo
audio_null_la_LDFLAGS = -module
 

I like to change ac3dec in this way, it is the easier part,
because libao is not used by oms and the Makefile.am in libac3 
is compatible to the "DRAFT"

regards,

Martin