OSDN Git Service

MacGui: Remove Target Size as a rate control option as it doesn't really work correct...
[handbrake-jp/handbrake-jp-git.git] / make / variant / darwin.defs
1 UB.archs  = i386 x86_64 ppc ppc64
2 UB.builds = $(wildcard $(foreach n,$(UB.archs),$(SRC/)build.$n))
3 UB.first  = $(word 1,$(UB.archs))
4 UB.other  = $(wordlist 2,999,$(UB.archs))
5
6 UB.BUILD = $(SRC/)configure --force --build=ub.$(1) --arch=$(1) --launch --launch-quiet
7
8 ## linefeed is important
9 define UB.BUILD.item
10         $(call UB.BUILD,$(1)) --launch-jobs=0
11
12 endef
13
14 define UB.BUILD.SERIAL
15         $(foreach n,$(UB.archs),$(call UB.BUILD.item,$n))
16 endef
17
18 define UB.BUILD.PARALLEL
19         $(call UB.BUILD,$(1)) >/dev/null 2>&1
20 endef
21
22 define UB.COMBINE
23         $(RM.exe) -fr ub.combine
24         $(MKDIR.exe) -p ub.combine
25         $(CP.exe) ub.$(UB.first)/HandBrakeCLI ub.combine/.
26         $(LIPO.exe) $(foreach n,$(UB.archs),ub.$n/HandBrakeCLI) -create -output ub.combine/HandBrakeCLI
27         $(CP.exe) -R ub.$(UB.first)/HandBrake.app ub.combine/.
28         $(LIPO.exe) $(foreach n,$(UB.archs),ub.$n/$(1)) -create -output ub.combine/$(1)
29         @lipo -info ub.combine/$(1)
30         @sync
31         @echo ""
32         @echo "$@: { $(UB.archs) } combined -> ub.combine/HandBrakeCLI"
33         @echo "$@: UB executable size: `du -sh ub.combine/HandBrakeCLI | awk '{ print $$1 }'`"
34         @echo ""
35         @echo "$@: { $(UB.archs) } combined -> ub.combine/HandBrake.app"
36         @echo "$@: UB executable size: `du -sh ub.combine/$(1) | awk '{ print $$1 }'`"
37 endef