diff options
author | van <[email protected]> | 2008-05-31 16:56:26 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-05-31 16:56:26 +0000 |
commit | d0550da569b56a71857c34463c5b030172d47291 (patch) | |
tree | 35ec60f96c5ed9955ab8c00da706ed0e3c720ebe /libhb/Jamfile | |
parent | 262deff5ecef673c700ee11d40ab2cc7f11c64fb (diff) |
Hack to fix building in xcode
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1479 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/Jamfile')
-rw-r--r-- | libhb/Jamfile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libhb/Jamfile b/libhb/Jamfile index 6bcd299a7..7bfb57e55 100644 --- a/libhb/Jamfile +++ b/libhb/Jamfile @@ -4,7 +4,7 @@ # Homepage: <http://handbrake.fr/>. # 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 @@ -18,3 +18,17 @@ 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 ; |