blob: c08c37f5a9d2045a19df5098317f21a26fade8ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
## This file is processed only when shunting build through xcodebuild
.PHONY: macosx.build macosx.ub macosx.sign macosx.notarize macosx.clean macosx.install macosx.install-strip macosx.uninstall
macosx.build:
$(call MACOSX.XCODE,HandBrakeCLI HandBrake,build)
macosx.ub:
$(call MACOSX.UB.BUILD.SERIAL)
$(call MACOSX.UB.COMBINE)
$(call MACOSX.SIGN)
macosx.sign:
$(call MACOSX.SIGN)
macosx.notarize:
$(call MACOSX.NOTARIZE)
macosx.clean:
$(call MACOSX.XCODE,HandBrakeCLI HandBrake,clean)
macosx.install:
$(RM.exe) -rf $(XCODE.prefix/)HandBrake.app
$(CP.exe) -R $(MACOSX.xroot/)HandBrake.app $(XCODE.prefix/)
$(CP.exe) $(MACOSX.xroot/)HandBrakeCLI $(PREFIX/)bin/
macosx.install-strip:
$(RM.exe) -rf $(XCODE.prefix/)HandBrake.app
$(CP.exe) -R $(MACOSX.xroot/)HandBrake.app $(XCODE.prefix/)
$(STRIP.exe) $(XCODE.prefix/)HandBrake.app/Contents/MacOS/HandBrake
$(CP.exe) $(MACOSX.xroot/)HandBrakeCLI $(PREFIX/)bin/
$(STRIP.exe) $(PREFIX/)bin/HandBrakeCLI
macosx.uninstall:
$(RM.exe) -rf $(XCODE.prefix/)HandBrake.app
$(RM.exe) -f $(PREFIX/)bin/HandBrakeCLI
build: macosx.build
ub: macosx.ub
sign: macosx.sign
notarize: macosx.notarize
clean: macosx.clean
install: macosx.install
install-strip: macosx.install-strip
uninstall: macosx.uninstall
xclean: clean
###############################################################################
MACOSX.goals = $(filter-out build ub sign notarize clean install,$(MAKECMDGOALS))
$(MACOSX.goals): __goals__
@true
__goals__:
$(call MACOSX.XCODE,external,build,$(MACOSX.goals))
###############################################################################
MACOSX.JOBS := $(shell ps T | $(GREP.exe) "^\s*$(shell echo $$PPID).*$(MAKE)" | $(GREP.exe) -o "\(\-j\|\-\-jobs\)[= ]*[^\s]*" | $(GREP.exe) -o "[0-9][0-9]*")
ifeq "${MACOSX.JOBS}" ""
# fall back to number of jobs specified in makefile created by configure
MACOSX.JOBS := $(BUILD.jobs)
endif
|