summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-04-18 14:42:01 +0000
committerjbrjake <[email protected]>2008-04-18 14:42:01 +0000
commit500e609ee627eeda225713b641338bc1567b6b70 (patch)
treebd085504f8a6d17c4d99c9415831f816b3b9f221
parent245cc29464469372ac1e469ab7c93e5d7022e56b (diff)
Fixes make building in OS X:
- Switches default (snapshot) make target to use the Deployment Xcode target - Makes it possible to jam contribs using make in OS X like is done in Linux - This means no universal binaries from make, unless "make release" is used. That's the only time it uses the contrib download script. The snapshot target builds contribs locally. To sum up: this now means that on a Mac, using: make ....should be functionally equivalent to: make clean; ./configure; ./jam git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1430 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--Makefile7
-rw-r--r--contrib/Makefile12
2 files changed, 15 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index fc28d6787..42a37fde6 100644
--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,11 @@ dev: clean internal
app:
(./DownloadMacOsXContribBinaries.sh ; cd macosx ; xcodebuild -target libhb -target HandBrake -target HandBrakeCLI -configuration UB OTHER_CFLAGS_QUOTED_1="-DHB_VERSION=\\\"$(HB_VERSION)\\\" -DHB_BUILD=$(HB_BUILD) " build | sed '/^$$/d' )
-snapshot-app:
- (./DownloadMacOsXContribBinaries.sh ; cd macosx ; defaults write "$(FULL_PATH)"/macosx/HandBrake CFBundleGetInfoString '$(SNAP_HB_VERSION)' ; defaults write "$(FULL_PATH)"/macosx/HandBrake CFBundleShortVersionString '$(SNAP_HB_VERSION)' ; defaults write "$(FULL_PATH)"/macosx/HandBrake CFBundleVersion '"$(SNAP_HB_BUILD)"' ; plutil -convert xml1 "$(FULL_PATH)"/macosx/HandBrake.plist ; xcodebuild -target libhb -target HandBrake -target HandBrakeCLI -configuration UB OTHER_CFLAGS_QUOTED_1="-g -HB_BUILD="$(SNAP_HB_BUILD)" -HB_VERSION=\\\"$(SNAP_HB_VERSION)\\\" -DHB_BUILD="$(SNAP_HB_BUILD)" -DHB_VERSION=\\\"$(SNAP_HB_VERSION)\\\" -CURRENT_PROJECT_VERSION=\\\"$(SNAP_HB_VERSION)\\\" " build | sed '/^$$/d' )
+contrib/.contrib:
+ @$(MAKE) --no-print-directory -C contrib all
+
+snapshot-app: contrib/.contrib
+ ( cd macosx ; defaults write "$(FULL_PATH)"/macosx/HandBrake CFBundleGetInfoString '$(SNAP_HB_VERSION)' ; defaults write "$(FULL_PATH)"/macosx/HandBrake CFBundleShortVersionString '$(SNAP_HB_VERSION)' ; defaults write "$(FULL_PATH)"/macosx/HandBrake CFBundleVersion '"$(SNAP_HB_BUILD)"' ; plutil -convert xml1 "$(FULL_PATH)"/macosx/HandBrake.plist ; xcodebuild -target libhb -target HandBrake -target HandBrakeCLI -configuration Deployment OTHER_CFLAGS_QUOTED_1="-g -HB_BUILD="$(SNAP_HB_BUILD)" -HB_VERSION=\\\"$(SNAP_HB_VERSION)\\\" -DHB_BUILD="$(SNAP_HB_BUILD)" -DHB_VERSION=\\\"$(SNAP_HB_VERSION)\\\" -CURRENT_PROJECT_VERSION=\\\"$(SNAP_HB_VERSION)\\\" " build | sed '/^$$/d' )
app-chunky:
(./DownloadMacOsXContribBinaries.sh ; cd macosx ; xcodebuild -alltargets -configuration UB OTHER_CFLAGS_QUOTED_1="-DHB_VERSION=\\\"$(HB_VERSION)\\\" -DHB_BUILD=$(HB_BUILD) " build | sed '/^$$/d' )
diff --git a/contrib/Makefile b/contrib/Makefile
index 33baec42c..24d6ee243 100644
--- a/contrib/Makefile
+++ b/contrib/Makefile
@@ -5,8 +5,16 @@ SYSTEM = $(shell uname -s)
# Special case for Mac OS X: everything is handled from the Xcode project
ifeq ($(SYSTEM),Darwin)
-all:
- ( echo "MacOs X doesn't use this makefile, to build the contrib please use ../jam" ; false )
+all: .contrib
+
+.contrib:
+ ( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; ../jam )
+
+clean:
+ ( echo "Do a make mrproper to remove the contrib libraries )
+
+mrproper:
+ (rm -rf lib ; rm -rf include )
endif