X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2FJamfile;h=364e17ff2d6cf073e7a0ca682991636b252b288b;hb=8425b4e14041ee668806cff29e458ae73bcd894f;hp=6bcd299a7486238b3c5b387018297066fdc6bc63;hpb=e27fb1a19129ca0ec31571e0f6c9db8c79ce20e2;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/Jamfile b/libhb/Jamfile index 6bcd299a..364e17ff 100644 --- a/libhb/Jamfile +++ b/libhb/Jamfile @@ -4,17 +4,37 @@ # Homepage: . # It may be used under the terms of the GNU General Public License. -SubDir TOP libhb ; +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 +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 ; +denoise.c detelecine.c decomb.c lang.c enctheora.c decmetadata.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" > $(TOP)/libhb/$(1) + echo "#define HB_BUILD $(HB_BUILD)" >> $(TOP)/libhb/$(1) + echo "#endif" >> $(TOP)/libhb/$(1) + echo "#ifndef HB_VERSION" >> $(TOP)/libhb/$(1) + echo "#define HB_VERSION \"$(HB_VERSION)\"" >> $(TOP)/libhb/$(1) + echo "#endif" >> $(TOP)/libhb/$(1) + echo "#ifndef HB_APPCAST_URL" >> $(TOP)/libhb/$(1) + echo "#define APPCAST_URL \"$(APPCAST_URL)\"" >> $(TOP)/libhb/$(1) + echo "#endif" >> $(TOP)/libhb/$(1) +} +HBVersion hbversion.h ;