summaryrefslogtreecommitdiffstats
path: root/libhb/Jamfile
blob: 7bfb57e555c5e30131620f41bfe754c841ac1454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: Jamfile,v 1.34 2005/10/15 18:05:03 titer Exp $
#
# This file is part of the HandBrake source code.
# Homepage: <http://handbrake.fr/>.
# It may be used under the terms of the GNU General Public License.

SubDir TOP libhb : hbversion.h ;

LIBHB_SRC =
ipodutil.cpp common.c hb.c ports.c scan.c work.c decmpeg2.c encavcodec.c update.c
demuxmpeg.c fifo.c render.c reader.c muxcommon.c muxmp4.c sync.c stream.c
decsub.c deca52.c decdca.c encfaac.c declpcm.c encx264.c decavcodec.c encxvid.c
muxavi.c enclame.c muxogm.c encvorbis.c dvd.c muxmkv.c deblock.c deinterlace.c 
denoise.c detelecine.c decomb.c lang.c enctheora.c ;

Library libhb : $(LIBHB_SRC) ;

ObjectCcFlags $(LIBHB_SRC) : -I$(TOP)/contrib/include ;
ObjectDefines $(LIBHB_SRC) : __LIBHB__ ;
ObjectC++Flags $(LIBHB_SRC) : -I$(TOP)/contrib/include ;

# turn the version number, etc., into an include file for cretinous build
# systems (XCode) that can't run shell commands
rule HBVersion
{
    Clean clean : $(TOP)/libhb/$(1) ;
}
actions HBVersion
{
    echo "#ifndef HB_BUILD\n#define HB_BUILD $(HB_BUILD)\n#endif" > $(TOP)/libhb/$(1)
    echo "#ifndef HB_VERSION\n#define HB_VERSION \"$(HB_VERSION)\"\n#endif" >> $(TOP)/libhb/$(1)
    echo "#ifndef HB_APPCAST_URL\n#define APPCAST_URL \"$(APPCAST_URL)\"\n#endif" >> $(TOP)/libhb/$(1)
}
HBVersion hbversion.h ;