2020-06-23 16:08:00 -04:00
|
|
|
XC_PROJ := MoltenVKPackaging.xcodeproj
|
|
|
|
XC_SCHEME := MoltenVK Package
|
2018-10-30 23:16:12 -04:00
|
|
|
|
2020-06-22 15:56:22 -04:00
|
|
|
# Specify individually (not as dependencies) so the sub-targets don't run in parallel
|
2018-10-30 23:16:12 -04:00
|
|
|
.PHONY: all
|
|
|
|
all:
|
2020-06-22 15:56:22 -04:00
|
|
|
@$(MAKE) iosfat
|
|
|
|
@$(MAKE) tvosfat
|
2020-08-27 19:29:14 -04:00
|
|
|
@$(MAKE) macos
|
2018-10-30 23:16:12 -04:00
|
|
|
|
2020-06-23 16:08:00 -04:00
|
|
|
.PHONY: all-debug
|
|
|
|
all-debug:
|
|
|
|
@$(MAKE) iosfat-debug
|
|
|
|
@$(MAKE) tvosfat-debug
|
2020-08-27 19:29:14 -04:00
|
|
|
@$(MAKE) macos-debug
|
2020-06-23 16:08:00 -04:00
|
|
|
|
2018-10-30 23:16:12 -04:00
|
|
|
.PHONY: macos
|
|
|
|
macos:
|
2020-06-23 16:08:00 -04:00
|
|
|
xcodebuild build -quiet -project "$(XC_PROJ)" -scheme "$(XC_SCHEME) (macOS only)"
|
|
|
|
|
|
|
|
.PHONY: macos-debug
|
|
|
|
macos-debug:
|
|
|
|
xcodebuild build -quiet -project "$(XC_PROJ)" -scheme "$(XC_SCHEME) (macOS only)" -configuration "Debug"
|
2018-10-30 23:16:12 -04:00
|
|
|
|
|
|
|
.PHONY: ios
|
|
|
|
ios:
|
2020-06-23 16:08:00 -04:00
|
|
|
xcodebuild build -quiet -project "$(XC_PROJ)" -scheme "$(XC_SCHEME) (iOS only)"
|
|
|
|
|
|
|
|
.PHONY: ios-debug
|
|
|
|
ios-debug:
|
|
|
|
xcodebuild build -quiet -project "$(XC_PROJ)" -scheme "$(XC_SCHEME) (iOS only)" -configuration "Debug"
|
2018-10-30 23:16:12 -04:00
|
|
|
|
2020-06-22 15:56:22 -04:00
|
|
|
.PHONY: iosfat
|
|
|
|
iosfat: ios
|
2020-06-23 16:08:00 -04:00
|
|
|
xcodebuild build -quiet -project "$(XC_PROJ)" -scheme "$(XC_SCHEME) (iOS only)" -destination "generic/platform=iOS Simulator"
|
|
|
|
|
|
|
|
.PHONY: iosfat-debug
|
|
|
|
iosfat-debug: ios-debug
|
|
|
|
xcodebuild build -quiet -project "$(XC_PROJ)" -scheme "$(XC_SCHEME) (iOS only)" -destination "generic/platform=iOS Simulator" -configuration "Debug"
|
2020-06-22 15:56:22 -04:00
|
|
|
|
2020-06-09 14:30:46 -07:00
|
|
|
.PHONY: tvos
|
|
|
|
tvos:
|
2020-06-23 16:08:00 -04:00
|
|
|
xcodebuild build -quiet -project "$(XC_PROJ)" -scheme "$(XC_SCHEME) (tvOS only)"
|
|
|
|
|
|
|
|
.PHONY: tvos-debug
|
|
|
|
tvos-debug:
|
|
|
|
xcodebuild build -quiet -project "$(XC_PROJ)" -scheme "$(XC_SCHEME) (tvOS only)" -configuration "Debug"
|
2020-06-09 14:30:46 -07:00
|
|
|
|
2020-06-22 15:56:22 -04:00
|
|
|
.PHONY: tvosfat
|
|
|
|
tvosfat: tvos
|
2020-06-23 16:08:00 -04:00
|
|
|
xcodebuild build -quiet -project "$(XC_PROJ)" -scheme "$(XC_SCHEME) (tvOS only)" -destination "generic/platform=tvOS Simulator"
|
|
|
|
|
|
|
|
.PHONY: tvosfat-debug
|
|
|
|
tvosfat-debug: tvos-debug
|
|
|
|
xcodebuild build -quiet -project "$(XC_PROJ)" -scheme "$(XC_SCHEME) (tvOS only)" -destination "generic/platform=tvOS Simulator" -configuration "Debug"
|
2020-06-22 15:56:22 -04:00
|
|
|
|
2018-10-30 23:16:12 -04:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2020-06-23 16:08:00 -04:00
|
|
|
xcodebuild clean -quiet -project "$(XC_PROJ)" -scheme "$(XC_SCHEME)"
|
2018-10-30 23:16:12 -04:00
|
|
|
rm -rf Package
|
|
|
|
|
2020-06-22 15:56:22 -04:00
|
|
|
# Usually requires 'sudo make install'
|
2019-03-22 19:36:21 -04:00
|
|
|
.PHONY: install
|
|
|
|
install:
|
2020-04-02 21:11:14 -04:00
|
|
|
rm -rf /Library/Frameworks/MoltenVK.framework
|
|
|
|
cp -a Package/Latest/MoltenVK/macOS/framework/MoltenVK.framework /Library/Frameworks/
|
2019-03-22 19:36:21 -04:00
|
|
|
|