summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorvan <[email protected]>2008-05-31 16:56:26 +0000
committervan <[email protected]>2008-05-31 16:56:26 +0000
commitd0550da569b56a71857c34463c5b030172d47291 (patch)
tree35ec60f96c5ed9955ab8c00da706ed0e3c720ebe /libhb
parent262deff5ecef673c700ee11d40ab2cc7f11c64fb (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')
-rw-r--r--libhb/Jamfile16
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 ;