diff options
author | Damiano Galassi <[email protected]> | 2020-10-31 09:22:18 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2020-11-05 09:49:16 +0100 |
commit | a8097ad3e3e247fb388d00a7569302c1c4e1736a (patch) | |
tree | 4f734c927229a93d5026b88c0217b26d121ad16c /macosx | |
parent | 3d515abf5f50aaeac4b02a6e04d4d98b17c19914 (diff) |
build: add 'MACOSX' prefix to the 'UB' defines.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/module.defs | 88 | ||||
-rw-r--r-- | macosx/module.xcodebuild | 4 |
2 files changed, 46 insertions, 46 deletions
diff --git a/macosx/module.defs b/macosx/module.defs index a4c3d5fad..1eab83a22 100644 --- a/macosx/module.defs +++ b/macosx/module.defs @@ -87,65 +87,65 @@ MACOSX.NOTARIZE = $(strip $(MACOSX.src/)hbnotarize '$(USERNAME)' $(MACOSX.xroot/ ## ############################################################################### -UB.xcconfigs = osx1011.arm64 osx1011.x86_64 -UB.builds = $(wildcard $(foreach n,$(UB.xcconfigs),$(SRC/)build.$n)) -UB.first = $(word 1,$(UB.xcconfigs)) -UB.more = $(wordlist 2,999,$(UB.xcconfigs)) - -UB.products/ = $(MACOSX.xroot/) - -UB.app/ = HandBrake.app/Contents/ -UB.frameworks/ = $(UB.app/)Frameworks/ -UB.xpcServices/ = $(UB.app/)XPCServices/ - -UB.contents = $(UB.app/)MacOS/HandBrake \ - $(UB.frameworks/)HandBrakeKit.framework/Versions/A/HandBrakeKit \ - $(UB.frameworks/)Sparkle.framework/Versions/A/Sparkle \ - $(UB.frameworks/)Sparkle.framework/Versions/A/Resources/Autoupdate \ - $(UB.xpcServices/)HandBrakeXPCService.xpc/Contents/MacOS/HandBrakeXPCService \ - $(UB.xpcServices/)HandBrakeXPCService2.xpc/Contents/MacOS/HandBrakeXPCService2 \ - $(UB.xpcServices/)HandBrakeXPCService3.xpc/Contents/MacOS/HandBrakeXPCService3 \ - $(UB.xpcServices/)HandBrakeXPCService4.xpc/Contents/MacOS/HandBrakeXPCService4 \ - $(UB.xpcServices/)org.sparkle-project.Downloader.xpc/Contents/MacOS/org.sparkle-project.Downloader \ - $(UB.xpcServices/)org.sparkle-project.InstallerConnection.xpc/Contents/MacOS/org.sparkle-project.InstallerConnection \ - $(UB.xpcServices/)org.sparkle-project.InstallerLauncher.xpc/Contents/MacOS/org.sparkle-project.InstallerLauncher \ - $(UB.xpcServices/)org.sparkle-project.InstallerLauncher.xpc/Contents/MacOS/Autoupdate \ - $(UB.xpcServices/)org.sparkle-project.InstallerLauncher.xpc/Contents/MacOS/Updater.app/Contents/MacOS/Updater \ - $(UB.xpcServices/)org.sparkle-project.InstallerStatus.xpc/Contents/MacOS/org.sparkle-project.InstallerStatus - -UB.BUILD = $(SRC/)configure --force --build=$(BUILD/)ub.$(1) --xcode-config=$(1) $(CONF.args) --launch +MACOSX.UB.xcconfigs = osx1011.arm64 osx1011.x86_64 +MACOSX.UB.builds = $(wildcard $(foreach n,$(MACOSX.UB.xcconfigs),$(SRC/)build.$n)) +MACOSX.UB.first = $(word 1,$(MACOSX.UB.xcconfigs)) +MACOSX.UB.more = $(wordlist 2,999,$(MACOSX.UB.xcconfigs)) + +MACOSX.UB.products/ = $(MACOSX.xroot/) + +MACOSX.UB.app/ = HandBrake.app/Contents/ +MACOSX.UB.frameworks/ = $(MACOSX.UB.app/)Frameworks/ +MACOSX.UB.xpcServices/ = $(MACOSX.UB.app/)XPCServices/ + +MACOSX.UB.contents = $(MACOSX.UB.app/)MacOS/HandBrake \ + $(MACOSX.UB.frameworks/)HandBrakeKit.framework/Versions/A/HandBrakeKit \ + $(MACOSX.UB.frameworks/)Sparkle.framework/Versions/A/Sparkle \ + $(MACOSX.UB.frameworks/)Sparkle.framework/Versions/A/Resources/Autoupdate \ + $(MACOSX.UB.xpcServices/)HandBrakeXPCService.xpc/Contents/MacOS/HandBrakeXPCService \ + $(MACOSX.UB.xpcServices/)HandBrakeXPCService2.xpc/Contents/MacOS/HandBrakeXPCService2 \ + $(MACOSX.UB.xpcServices/)HandBrakeXPCService3.xpc/Contents/MacOS/HandBrakeXPCService3 \ + $(MACOSX.UB.xpcServices/)HandBrakeXPCService4.xpc/Contents/MacOS/HandBrakeXPCService4 \ + $(MACOSX.UB.xpcServices/)org.sparkle-project.Downloader.xpc/Contents/MacOS/org.sparkle-project.Downloader \ + $(MACOSX.UB.xpcServices/)org.sparkle-project.InstallerConnection.xpc/Contents/MacOS/org.sparkle-project.InstallerConnection \ + $(MACOSX.UB.xpcServices/)org.sparkle-project.InstallerLauncher.xpc/Contents/MacOS/org.sparkle-project.InstallerLauncher \ + $(MACOSX.UB.xpcServices/)org.sparkle-project.InstallerLauncher.xpc/Contents/MacOS/Autoupdate \ + $(MACOSX.UB.xpcServices/)org.sparkle-project.InstallerLauncher.xpc/Contents/MacOS/Updater.app/Contents/MacOS/Updater \ + $(MACOSX.UB.xpcServices/)org.sparkle-project.InstallerStatus.xpc/Contents/MacOS/org.sparkle-project.InstallerStatus + +MACOSX.UB.BUILD = $(SRC/)configure --force --build=$(BUILD/)ub.$(1) --xcode-config=$(1) $(CONF.args) --launch ## linefeed is important -define UB.BUILD.item - $(call UB.BUILD,$(1)) --launch-jobs=0 +define MACOSX.UB.BUILD.item + $(call MACOSX.UB.BUILD,$(1)) --launch-jobs=0 endef -define UB.BUILD.SERIAL - $(foreach n,$(UB.xcconfigs),$(call UB.BUILD.item,$n)) +define MACOSX.UB.BUILD.SERIAL + $(foreach n,$(MACOSX.UB.xcconfigs),$(call MACOSX.UB.BUILD.item,$n)) endef -define UB.BUILD.lipo - $(LIPO.exe) $(foreach n,$(UB.xcconfigs),ub.$n/$(UB.products/)$1) -create -output $(UB.products/)$1 +define MACOSX.UB.BUILD.lipo + $(LIPO.exe) $(foreach n,$(MACOSX.UB.xcconfigs),ub.$n/$(MACOSX.UB.products/)$1) -create -output $(MACOSX.UB.products/)$1 endef -define UB.COMBINE - $(RM.exe) -fr $(UB.products/) - $(MKDIR.exe) -p $(UB.products/) +define MACOSX.UB.COMBINE + $(RM.exe) -fr $(MACOSX.UB.products/) + $(MKDIR.exe) -p $(MACOSX.UB.products/) - $(CP.exe) ub.$(UB.first)/$(UB.products/)HandBrakeCLI $(UB.products/). - $(LIPO.exe) $(foreach n,$(UB.xcconfigs),ub.$n/$(UB.products/)HandBrakeCLI) -create -output $(UB.products/)HandBrakeCLI + $(CP.exe) ub.$(MACOSX.UB.first)/$(MACOSX.UB.products/)HandBrakeCLI $(MACOSX.UB.products/). + $(LIPO.exe) $(foreach n,$(MACOSX.UB.xcconfigs),ub.$n/$(MACOSX.UB.products/)HandBrakeCLI) -create -output $(MACOSX.UB.products/)HandBrakeCLI - $(CP.exe) -R ub.$(UB.first)/$(UB.products/)HandBrake.app $(UB.products/). - $(foreach n,$(UB.contents),$(call UB.BUILD.lipo,$n)) + $(CP.exe) -R ub.$(MACOSX.UB.first)/$(MACOSX.UB.products/)HandBrake.app $(MACOSX.UB.products/). + $(foreach n,$(MACOSX.UB.contents),$(call MACOSX.UB.BUILD.lipo,$n)) @sync @echo "" - @echo "$@: { $(UB.xcconfigs) } combined -> $(UB.products/)HandBrakeCLI" - @echo "$@: UB executable size: `du -sh $(UB.products/)HandBrakeCLI | awk '{ print $$1 }'`" + @echo "$@: { $(MACOSX.UB.xcconfigs) } combined -> $(MACOSX.UB.products/)HandBrakeCLI" + @echo "$@: UB executable size: `du -sh $(MACOSX.UB.products/)HandBrakeCLI | awk '{ print $$1 }'`" @echo "" - @echo "$@: { $(UB.xcconfigs) } combined -> $(UB.products/)HandBrake.app" - @echo "$@: UB executable size: `du -sh $(UB.products/)$(1) | awk '{ print $$1 }'`" + @echo "$@: { $(MACOSX.UB.xcconfigs) } combined -> $(MACOSX.UB.products/)HandBrake.app" + @echo "$@: UB executable size: `du -sh $(MACOSX.UB.products/)$(1) | awk '{ print $$1 }'`" @echo "" endef diff --git a/macosx/module.xcodebuild b/macosx/module.xcodebuild index 8073ef3d8..c08c37f5a 100644 --- a/macosx/module.xcodebuild +++ b/macosx/module.xcodebuild @@ -6,8 +6,8 @@ macosx.build: $(call MACOSX.XCODE,HandBrakeCLI HandBrake,build) macosx.ub: - $(call UB.BUILD.SERIAL) - $(call UB.COMBINE) + $(call MACOSX.UB.BUILD.SERIAL) + $(call MACOSX.UB.COMBINE) $(call MACOSX.SIGN) macosx.sign: |