Allow specifying a custom ibtool path

This commit is contained in:
Lior Halphon
2025-07-11 18:03:36 +03:00
parent 9bd84978cf
commit ec8baa6329

View File

@@ -136,6 +136,8 @@ CC := clang
endif endif
endif endif
IBTOOL ?= ibtool
# Find libraries with pkg-config if available. # Find libraries with pkg-config if available.
ifneq (, $(shell which pkg-config 2> $(NULL))) ifneq (, $(shell which pkg-config 2> $(NULL)))
# But not on macOS, it's annoying, and not on Haiku, where OpenGL is broken # But not on macOS, it's annoying, and not on Haiku, where OpenGL is broken
@@ -590,10 +592,10 @@ ifeq ($(CONF), release)
endif endif
$(BIN)/SameBoy.app/Contents/Resources/%.nib: Cocoa/%.xib $(BIN)/SameBoy.app/Contents/Resources/%.nib: Cocoa/%.xib
ibtool --target-device mac --minimum-deployment-target 10.9 --compile $@ $^ 2>&1 | cat - $(IBTOOL) --target-device mac --minimum-deployment-target 10.9 --compile $@ $^ 2>&1 | cat -
$(BIN)/SameBoy-iOS.app/%.storyboardc: iOS/%.storyboard $(BIN)/SameBoy-iOS.app/%.storyboardc: iOS/%.storyboard
ibtool --target-device iphone --target-device ipad --minimum-deployment-target $(IOS_MIN) --compile $@ $^ 2>&1 | cat - $(IBTOOL) --target-device iphone --target-device ipad --minimum-deployment-target $(IOS_MIN) --compile $@ $^ 2>&1 | cat -
# Quick Look generators # Quick Look generators