summaryrefslogtreecommitdiffstats
path: root/macosx/module.defs
blob: 2b525acde32a1e6d5730c2fb9218e6dfd551a6bf (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
$(eval $(call import.MODULE.defs,MACOSX,macosx))

MACOSX.src/   = $(PROJECT/)macosx/
MACOSX.build/ = $(BUILD/)macosx/

MACOSX.m4.in  = $(wildcard $(MACOSX.src/)*.m4)
MACOSX.m4.out = $(patsubst $(MACOSX.src/)%.m4,$(MACOSX.build/)%,$(MACOSX.m4.in))

MACOSX.targs = HandBrakeCLI HandBrake
MACOSX.conf  = standard$(if $(filter 1,$(BUILD.cross)),.$(BUILD.arch))

###############################################################################

BUILD.out += $(MACOSX.m4.out)

###############################################################################

MACOSX.XCODE.exe     = xcodebuild
MACOSX.XCODE.project = HandBrake.xcodeproj

MACOSX.XCODE = $(strip \
    cd $(MACOSX.src/) && \
	$(MACOSX.XCODE.exe) \
        -project $(MACOSX.XCODE.project) \
        -configuration $(MACOSX.conf) \
        $(foreach t,$(MACOSX.targs),-target $t) \
        EXTERNAL_BUILD='$(CURDIR)' \
        EXTERNAL_JOBS='$(BUILD.jobs)' \
        EXTERNAL_METHOD='$(CONF.method)' \
        EXTERNAL_PROJECT='$(PROJECT/)' \
        $(1) )

MACOSX.XCODE.PASSTHRU = $(strip \
    cd $(MACOSX.src/) && \
	$(MACOSX.XCODE.exe) \
        -project $(MACOSX.XCODE.project) \
        -configuration $(MACOSX.conf) \
        -target libhb \
        EXTERNAL_BUILD='$(CURDIR)' \
        EXTERNAL_JOBS='$(BUILD.jobs)' \
        EXTERNAL_METHOD='$(CONF.method)' \
        EXTERNAL_PROJECT='$(PROJECT/)' \
        EXTERNAL_GOALS='$(1)' \
        build )