[FFmpeg-devel] [PATCH] Automatically generate ac3enc_data.h

Michael Niedermayer michaelni
Sat Jan 12 17:42:11 CET 2008


On Sat, Jan 12, 2008 at 05:31:00PM +0100, Aurelien Jacobs wrote:
> Diego 'Flameeyes' Petten? wrote:
> 
> > 
> > It's not the nicest thing out there, but it should work...
> > 
> > [...]
> > 
> > +%-gentables: %_tables.c
> > +	$(CC) $(CFLAGS) -DGENTABLES -o $@ $^ $(EXTRALIBS)
> 
> $(CC) is the TARGET compiler. You can't use it to compile binary that
> must be run on HOST. (you cross-compiling...)
> 

> Now that I think about it, it could be better to keep the ac3enc_data.h
> file in the repository, 

hmm, i cant explain it but i dont like this idea


> and have a `make gentable` target which would
> force tables re-building.
> That way, normal compilation would be exactly the same as now (no need
> for a different HOST and TARGET compiler, etc...), and tables can still
> be re-built automatically when a developer want to change a table
> (in this specific situation, you may assume that HOST==TARGET, and
> thus, don't care about cross-compilation).

if theres no host compiler then the user will have to use the runtime
generated tables

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080112/95e5aee6/attachment.pgp>



More information about the ffmpeg-devel mailing list