2021-11-17 19:44:12 +01:00
|
|
|
|
|
|
|
XCODE_VERSION_GE_4 := $(shell expr `xcodebuild -version | sed -nE 's/^Xcode ([0-9]+).*/\1/p'` \>= 4)
|
|
|
|
XCODE_VERSION_GE_10 := $(shell expr `xcodebuild -version | sed -nE 's/^Xcode ([0-9]+).*/\1/p'` \>= 10)
|
|
|
|
|
|
|
|
XCODEBUILD_OPTIONS=-project 'ConfigValidator.xcodeproj' CONFIGURATION_BUILD_DIR=$(CURDIR)/build DEPLOYMENT_LOCATION=NO
|
|
|
|
|
|
|
|
ifeq "$(XCODE_VERSION_GE_10)" "1"
|
|
|
|
XCODEBUILD_OPTIONS += ARCHS=x86_64 VALID_ARCHS=x86_64 ONLY_ACTIVE_ARCH=YES
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq "$(XCODE_VERSION_GE_4)" "1"
|
|
|
|
XCODEBUILD_OPTIONS += -scheme 'ConfigValidator'
|
|
|
|
# BUILD_ACTION=running
|
|
|
|
else
|
|
|
|
XCODEBUILD_OPTIONS += -configuration 'Release'
|
|
|
|
endif
|
|
|
|
|
|
|
|
ConfigValidator:
|
|
|
|
@echo "Building ConfigValidator..."
|
2022-02-01 11:31:23 +01:00
|
|
|
@echo "ConfigValidator uses release of User choice"
|
2022-01-31 01:14:12 +01:00
|
|
|
@$/chmod 755 CreateBuild.sh
|
|
|
|
@$/chmod 755 ConfigValidator.sh
|
|
|
|
@$/chmod 755 shc
|
2022-01-31 00:26:55 +01:00
|
|
|
@$(CURDIR)/CreateBuild.sh
|
2021-11-17 19:44:12 +01:00
|
|
|
@/usr/bin/xcodebuild $(XCODEBUILD_OPTIONS) $(BUILD_ACTION) >/dev/null
|
|
|
|
@echo [XCODE] $(PROGRAMS)
|
2022-01-31 00:26:55 +01:00
|
|
|
|
2021-11-17 19:44:12 +01:00
|
|
|
.PHONY: ConfigValidator clean
|