OSDN Git Service

7bfb57e555c5e30131620f41bfe754c841ac1454
[handbrake-jp/handbrake-jp-git.git] / libhb / Jamfile
1 # $Id: Jamfile,v 1.34 2005/10/15 18:05:03 titer Exp $
2 #
3 # This file is part of the HandBrake source code.
4 # Homepage: <http://handbrake.fr/>.
5 # It may be used under the terms of the GNU General Public License.
6
7 SubDir TOP libhb : hbversion.h ;
8
9 LIBHB_SRC =
10 ipodutil.cpp common.c hb.c ports.c scan.c work.c decmpeg2.c encavcodec.c update.c
11 demuxmpeg.c fifo.c render.c reader.c muxcommon.c muxmp4.c sync.c stream.c
12 decsub.c deca52.c decdca.c encfaac.c declpcm.c encx264.c decavcodec.c encxvid.c
13 muxavi.c enclame.c muxogm.c encvorbis.c dvd.c muxmkv.c deblock.c deinterlace.c 
14 denoise.c detelecine.c decomb.c lang.c enctheora.c ;
15
16 Library libhb : $(LIBHB_SRC) ;
17
18 ObjectCcFlags $(LIBHB_SRC) : -I$(TOP)/contrib/include ;
19 ObjectDefines $(LIBHB_SRC) : __LIBHB__ ;
20 ObjectC++Flags $(LIBHB_SRC) : -I$(TOP)/contrib/include ;
21
22 # turn the version number, etc., into an include file for cretinous build
23 # systems (XCode) that can't run shell commands
24 rule HBVersion
25 {
26     Clean clean : $(TOP)/libhb/$(1) ;
27 }
28 actions HBVersion
29 {
30     echo "#ifndef HB_BUILD\n#define HB_BUILD $(HB_BUILD)\n#endif" > $(TOP)/libhb/$(1)
31     echo "#ifndef HB_VERSION\n#define HB_VERSION \"$(HB_VERSION)\"\n#endif" >> $(TOP)/libhb/$(1)
32     echo "#ifndef HB_APPCAST_URL\n#define APPCAST_URL \"$(APPCAST_URL)\"\n#endif" >> $(TOP)/libhb/$(1)
33 }
34 HBVersion hbversion.h ;