summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/Jamfile16
-rw-r--r--macosx/HandBrake.xcodeproj/project.pbxproj60
2 files changed, 33 insertions, 43 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 ;
diff --git a/macosx/HandBrake.xcodeproj/project.pbxproj b/macosx/HandBrake.xcodeproj/project.pbxproj
index e2ab74a79..a0991e2be 100644
--- a/macosx/HandBrake.xcodeproj/project.pbxproj
+++ b/macosx/HandBrake.xcodeproj/project.pbxproj
@@ -960,8 +960,6 @@
GCC_OPTIMIZATION_LEVEL = s;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "";
- HB_BUILD = "";
- HB_VERSION = "";
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../contrib/include";
INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = "";
@@ -970,11 +968,7 @@
"-D__LIBHB__",
"-DSYS_DARWIN",
"-DUSE_PTHREAD",
- "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_1)",
- "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_2)",
);
- OTHER_CFLAGS_QUOTED_FOR_TARGET_1 = "-DHB_BUILD=\"$(HB_BUILD)\"";
- OTHER_CFLAGS_QUOTED_FOR_TARGET_2 = "-DHB_VERSION=\\\"$(HB_VERSION)\\\"";
OTHER_LDFLAGS = (
../contrib/lib/libmp4v2.a,
../contrib/lib/liba52.a,
@@ -995,6 +989,8 @@
../contrib/lib/libmkv.a,
../contrib/lib/libtheora.a,
../contrib/lib/libswscale.a,
+ ../contrib/lib/libfaad.a,
+ "-lbz2",
"-ldl",
"-flat_namespace",
"-read_only_relocs",
@@ -1024,8 +1020,6 @@
GCC_OPTIMIZATION_LEVEL = s;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "";
- HB_BUILD = "";
- HB_VERSION = "";
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../contrib/include";
INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = "";
@@ -1034,11 +1028,7 @@
"-D__LIBHB__",
"-DSYS_DARWIN",
"-DUSE_PTHREAD",
- "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_1)",
- "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_2)",
);
- OTHER_CFLAGS_QUOTED_FOR_TARGET_1 = "-DHB_BUILD=\"$(HB_BUILD)\"";
- OTHER_CFLAGS_QUOTED_FOR_TARGET_2 = "-DHB_VERSION=\\\"$(HB_VERSION)\\\"";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)";
OTHER_LDFLAGS = (
../contrib/lib/libmp4v2.a,
@@ -1060,6 +1050,8 @@
../contrib/lib/libmkv.a,
../contrib/lib/libtheora.a,
../contrib/lib/libswscale.a,
+ ../contrib/lib/libfaad.a,
+ "-lbz2",
"-ldl",
"-flat_namespace",
"-read_only_relocs",
@@ -1087,8 +1079,6 @@
GCC_OPTIMIZATION_LEVEL = s;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "";
- HB_BUILD = "";
- HB_VERSION = "";
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../contrib/include";
INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = "";
@@ -1097,11 +1087,7 @@
"-D__LIBHB__",
"-DSYS_DARWIN",
"-DUSE_PTHREAD",
- "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_1)",
- "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_2)",
);
- OTHER_CFLAGS_QUOTED_FOR_TARGET_1 = "-DHB_BUILD=\"$(HB_BUILD)\"";
- OTHER_CFLAGS_QUOTED_FOR_TARGET_2 = "-DHB_VERSION=\\\"$(HB_VERSION)\\\"";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)";
OTHER_LDFLAGS = (
../contrib/lib/libmp4v2.a,
@@ -1123,6 +1109,8 @@
../contrib/lib/libmkv.a,
../contrib/lib/libtheora.a,
../contrib/lib/libswscale.a,
+ ../contrib/lib/libfaad.a,
+ "-lbz2",
"-ldl",
"-flat_namespace",
"-read_only_relocs",
@@ -1147,8 +1135,6 @@
GCC_OPTIMIZATION_LEVEL = s;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "";
- HB_BUILD = "";
- HB_VERSION = "";
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../contrib/include";
INSTALL_PATH = /usr/local/lib;
MACOSX_DEPLOYMENT_TARGET = 10.3;
@@ -1156,11 +1142,7 @@
"-D__LIBHB__",
"-DSYS_DARWIN",
"-DUSE_PTHREAD",
- "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_1)",
- "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_2)",
);
- OTHER_CFLAGS_QUOTED_FOR_TARGET_1 = "-DHB_BUILD=\"$(HB_BUILD)\"";
- OTHER_CFLAGS_QUOTED_FOR_TARGET_2 = "-DHB_VERSION=\\\"$(HB_VERSION)\\\"";
OTHER_LDFLAGS = "";
PER_ARCH_CFLAGS_ppc = "-DWORDS_BIGENDIAN";
PREBINDING = NO;
@@ -1185,8 +1167,6 @@
FRAMEWORK_SEARCH_PATHS_QUOTED_2 = "\"$(SRCROOT)\"";
GCC_OPTIMIZATION_LEVEL = s;
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
- HB_BUILD = "";
- HB_VERSION = "";
HEADER_SEARCH_PATHS = (
../libhb,
../contrib/include,
@@ -1216,6 +1196,8 @@
../contrib/lib/libmkv.a,
../contrib/lib/libswscale.a,
../contrib/lib/libtheora.a,
+ ../contrib/lib/libfaad.a,
+ "-lbz2",
);
PRODUCT_NAME = HandBrake;
SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
@@ -1262,6 +1244,8 @@
../contrib/lib/libmkv.a,
../contrib/lib/libswscale.a,
../contrib/lib/libtheora.a,
+ ../contrib/lib/libfaad.a,
+ "-lbz2",
);
PREBINDING = NO;
PRODUCT_NAME = HandBrakeCLI;
@@ -1298,8 +1282,6 @@
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "";
- HB_BUILD = "";
- HB_VERSION = "";
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../contrib/include";
INSTALL_PATH = /usr/local/lib;
MACOSX_DEPLOYMENT_TARGET = 10.3;
@@ -1307,11 +1289,7 @@
"-D__LIBHB__",
"-DSYS_DARWIN",
"-DUSE_PTHREAD",
- "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_1)",
- "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_2)",
);
- OTHER_CFLAGS_QUOTED_FOR_TARGET_1 = "-DHB_BUILD=\"$(HB_BUILD)\"";
- OTHER_CFLAGS_QUOTED_FOR_TARGET_2 = "-DHB_VERSION=\\\"$(HB_VERSION)\\\"";
OTHER_LDFLAGS = "";
PER_ARCH_CFLAGS_ppc = "-DWORDS_BIGENDIAN";
PREBINDING = NO;
@@ -1332,8 +1310,6 @@
GCC_OPTIMIZATION_LEVEL = s;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "";
- HB_BUILD = "";
- HB_VERSION = "";
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../contrib/include";
INSTALL_PATH = /usr/local/lib;
MACOSX_DEPLOYMENT_TARGET = 10.3;
@@ -1341,11 +1317,7 @@
"-D__LIBHB__",
"-DSYS_DARWIN",
"-DUSE_PTHREAD",
- "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_1)",
- "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_2)",
);
- OTHER_CFLAGS_QUOTED_FOR_TARGET_1 = "-DHB_BUILD=\"$(HB_BUILD)\"";
- OTHER_CFLAGS_QUOTED_FOR_TARGET_2 = "-DHB_VERSION=\\\"$(HB_VERSION)\\\"";
OTHER_LDFLAGS = "";
PER_ARCH_CFLAGS_ppc = "-DWORDS_BIGENDIAN";
PREBINDING = NO;
@@ -1391,6 +1363,8 @@
../contrib/lib/libmkv.a,
../contrib/lib/libswscale.a,
../contrib/lib/libtheora.a,
+ ../contrib/lib/libfaad.a,
+ "-lbz2",
);
PREBINDING = NO;
PRODUCT_NAME = HandBrakeCLI;
@@ -1434,6 +1408,8 @@
../contrib/lib/libmkv.a,
../contrib/lib/libswscale.a,
../contrib/lib/libtheora.a,
+ ../contrib/lib/libfaad.a,
+ "-lbz2",
);
PREBINDING = NO;
PRODUCT_NAME = HandBrakeCLI;
@@ -1461,8 +1437,6 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
- HB_BUILD = "";
- HB_VERSION = "";
HEADER_SEARCH_PATHS = (
../libhb,
../contrib/include,
@@ -1493,6 +1467,8 @@
../contrib/lib/libmkv.a,
../contrib/lib/libswscale.a,
../contrib/lib/libtheora.a,
+ ../contrib/lib/libfaad.a,
+ "-lbz2",
);
PRODUCT_NAME = HandBrake;
SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
@@ -1524,8 +1500,6 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_OPTIMIZATION_LEVEL = s;
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
- HB_BUILD = "";
- HB_VERSION = "";
HEADER_SEARCH_PATHS = (
../libhb,
../contrib/include,
@@ -1555,6 +1529,8 @@
../contrib/lib/libmkv.a,
../contrib/lib/libswscale.a,
../contrib/lib/libtheora.a,
+ ../contrib/lib/libfaad.a,
+ "-lbz2",
);
PRODUCT_NAME = HandBrake;
SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;