annotate ffmpeg/doc/build_system.txt @ 13:844d341cf643 tip

Back up before ISMIR
author Yading Song <yading.song@eecs.qmul.ac.uk>
date Thu, 31 Oct 2013 13:17:06 +0000
parents 6840f77b83aa
children
rev   line source
yading@10 1 FFmpeg currently uses a custom build system, this text attempts to document
yading@10 2 some of its obscure features and options.
yading@10 3
yading@10 4 Makefile variables:
yading@10 5
yading@10 6 V
yading@10 7 Disable the default terse mode, the full command issued by make and its
yading@10 8 output will be shown on the screen.
yading@10 9
yading@10 10 DESTDIR
yading@10 11 Destination directory for the install targets, useful to prepare packages
yading@10 12 or install FFmpeg in cross-environments.
yading@10 13
yading@10 14 Makefile targets:
yading@10 15
yading@10 16 all
yading@10 17 Default target, builds all the libraries and the executables.
yading@10 18
yading@10 19 fate
yading@10 20 Run the fate test suite, note you must have installed it
yading@10 21
yading@10 22 fate-list
yading@10 23 Will list all fate/regression test targets
yading@10 24
yading@10 25 install
yading@10 26 Install headers, libraries and programs.
yading@10 27
yading@10 28 libavformat/output-example
yading@10 29 Build the libavformat basic example.
yading@10 30
yading@10 31 libavcodec/api-example
yading@10 32 Build the libavcodec basic example.
yading@10 33
yading@10 34 libswscale/swscale-test
yading@10 35 Build the swscale self-test (useful also as example).
yading@10 36
yading@10 37
yading@10 38 Useful standard make commands:
yading@10 39 make -t <target>
yading@10 40 Touch all files that otherwise would be build, this is useful to reduce
yading@10 41 unneeded rebuilding when changing headers, but note you must force rebuilds
yading@10 42 of files that actually need it by hand then.
yading@10 43
yading@10 44 make -j<num>
yading@10 45 rebuild with multiple jobs at the same time. Faster on multi processor systems
yading@10 46
yading@10 47 make -k
yading@10 48 continue build in case of errors, this is useful for the regression tests
yading@10 49 sometimes but note it will still not run all reg tests.
yading@10 50