Makefile supports building fat iOS and tvOS libraries from command line.
This commit is contained in:
parent
abb8792843
commit
d984d403bf
15
Makefile
15
Makefile
@ -1,9 +1,12 @@
|
||||
XCODE_PROJ := MoltenVKPackaging.xcodeproj
|
||||
XCODE_SCHEME_BASE := MoltenVK Package
|
||||
|
||||
# Specify individually (not as dependencies) so the sub-targets don't run in parallel
|
||||
.PHONY: all
|
||||
all:
|
||||
xcodebuild -quiet -project "$(XCODE_PROJ)" -scheme "$(XCODE_SCHEME_BASE)" build
|
||||
@$(MAKE) macos
|
||||
@$(MAKE) iosfat
|
||||
@$(MAKE) tvosfat
|
||||
|
||||
.PHONY: macos
|
||||
macos:
|
||||
@ -13,16 +16,24 @@ macos:
|
||||
ios:
|
||||
xcodebuild -quiet -project "$(XCODE_PROJ)" -scheme "$(XCODE_SCHEME_BASE) (iOS only)" build
|
||||
|
||||
.PHONY: iosfat
|
||||
iosfat: ios
|
||||
xcodebuild -quiet -project "$(XCODE_PROJ)" -scheme "$(XCODE_SCHEME_BASE) (iOS only)" -destination "generic/platform=iOS Simulator" build
|
||||
|
||||
.PHONY: tvos
|
||||
tvos:
|
||||
xcodebuild -quiet -project "$(XCODE_PROJ)" -scheme "$(XCODE_SCHEME_BASE) (tvOS only)" build
|
||||
|
||||
.PHONY: tvosfat
|
||||
tvosfat: tvos
|
||||
xcodebuild -quiet -project "$(XCODE_PROJ)" -scheme "$(XCODE_SCHEME_BASE) (tvOS only)" -destination "generic/platform=tvOS Simulator" build
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
xcodebuild -quiet -project "$(XCODE_PROJ)" -scheme "$(XCODE_SCHEME_BASE)" clean
|
||||
rm -rf Package
|
||||
|
||||
#Usually requires 'sudo make install'
|
||||
# Usually requires 'sudo make install'
|
||||
.PHONY: install
|
||||
install:
|
||||
rm -rf /Library/Frameworks/MoltenVK.framework
|
||||
|
@ -158,9 +158,9 @@ platforms, or just one platform (in **_Release_** configuration):
|
||||
|
||||
- **MoltenVK Package**
|
||||
- **MoltenVK Package (Debug)**
|
||||
- **MoltenVK Package (macOS only)**
|
||||
- **MoltenVK Package (iOS only)**
|
||||
- **MoltenVK Package (tvOS only)**
|
||||
- **MoltenVK Package (macOS only)**
|
||||
|
||||
Each of these`MoltenVKPackaging.xcodeproj` *Xcode* project *Schemes* puts the resulting packages in the
|
||||
`Package` directory, creating it if necessary. This directory contains separate `Release` and `Debug`
|
||||
|
Loading…
x
Reference in New Issue
Block a user