HACKING 2.25 KB
Newer Older
1
$Id: HACKING,v 1.7 2003/06/21 17:04:20 sam Exp $
2 3 4 5

Hacking vlc
===========

6 7 8
Requirements
------------

9 10
You will need the following tools if you plan to use the CVS version of vlc:

11
 - autoconf version 2.50 or later
12 13 14

 - automake version 1.5 (but 1.6 or later is recommended)

15
 - gettext version 0.10.40 (but 0.11.3 or later is recommended)
16 17 18 19 20 21 22 23 24 25

After retrieving the CVS tree, you need to run the bootstrap script to
generate all the files needed to build vlc. You can then run configure.

If you do not have the correct version of these tools, or if they are
simply not available for the operating system you plan to develop on,
you can check out a CVS tree on an OS that provides these tools (such
as a recent Linux distribution), run bootstrap, and then copy the whole
tree to your retarded OS.

26 27 28 29 30 31
There is a possibility that, at some point, automake might segfault. The
reason is unsufficient stack size, and can be easily fixed with the
`ulimit` command (or an equivalent) available in most shells. For instance
on bash 2.0, the following command solves the automake crash on Mac OS X :
ulimit -s 20000

32 33 34 35 36 37 38 39 40 41 42 43 44 45

The bootstrap sequence
----------------------

The bootstrap script does the following actions:

 - browse the modules/ directory for all available modules. A module "foo"
   exists if there is a Modules.am file in the modules/ directory which
   defines SOURCES_foo.

 - create a top-level Modules.am file (which will be included by Makefile.am)
   which contains additional build rules for modules, and includes all the
   Modules.am files that were found in modules/

46 47
 - create an m4/vlc.m4 from configure.ac, generating the AC_SUBST and
   AM_CONDITIONAL rules that will be needed by configure.ac.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65

 - run autopoint (previously gettextize) to create an intl/ directory,
   needed when libgettext is not available.

 - run the usual aclocal, autoheader, automake and autoconf, which create
   the various Makefile.in files from the corresponding Makefile.am and the
   configure script from configure.ac.

 - fix a few files in the vlc repository that may have been altered.


How to add a module
-------------------

To add a module to the repository, just add its sources to a Modules.am
file. If you create a new Modules.am, do not forget to add a corresponding
line to modules/Makefile.am.