OSDN Git Service

Fix for cygwin builds - can't use "\n" in echo
[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" > $(TOP)/libhb/$(1)
31     echo "#define HB_BUILD $(HB_BUILD)" >> $(TOP)/libhb/$(1)
32     echo "#endif" >> $(TOP)/libhb/$(1)
33     echo "#ifndef HB_VERSION" >> $(TOP)/libhb/$(1)
34     echo "#define HB_VERSION \"$(HB_VERSION)\"" >> $(TOP)/libhb/$(1)
35     echo "#endif" >> $(TOP)/libhb/$(1)
36     echo "#ifndef HB_APPCAST_URL" >> $(TOP)/libhb/$(1)
37     echo "#define APPCAST_URL \"$(APPCAST_URL)\"" >> $(TOP)/libhb/$(1)
38     echo "#endif" >> $(TOP)/libhb/$(1)
39 }
40 HBVersion hbversion.h ;