Skip to content

Commit

Permalink
chore: Update Makefile to set IPHONEOS_DEPLOYMENT_TARGET for iOS builds
Browse files Browse the repository at this point in the history
  • Loading branch information
theashraf committed Dec 6, 2024
1 parent 45f9a3f commit 9b1dc5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ endef

define SIMPLE_CARGO_BUILD
IPHONEOS_DEPLOYMENT_TARGET=$(THORVG_APPLE_IOS_VERSION_MIN) \
MACOSX_DEPLOYMENT_TARGET=$(THORVG_APPLE_IOS_VERSION_MIN) \
cargo build \
--manifest-path $(PROJECT_DIR)/Cargo.toml \
--release;
Expand All @@ -382,6 +383,7 @@ define CARGO_BUILD
--release; \
else \
IPHONEOS_DEPLOYMENT_TARGET=$(THORVG_APPLE_IOS_VERSION_MIN) \
MACOSX_DEPLOYMENT_TARGET=$(THORVG_APPLE_IOS_VERSION_MIN) \
cargo build \
--manifest-path $(PROJECT_DIR)/Cargo.toml \
--target $(CARGO_TARGET) \
Expand Down Expand Up @@ -567,7 +569,7 @@ define NEW_APPLE_CMAKE_BUILD
$4/$(CMAKE_CACHE): DEP_SOURCE_DIR := $(DEPS_MODULES_DIR)/$3
$4/$(CMAKE_CACHE): DEP_BUILD_DIR := $4
$4/$(CMAKE_CACHE): DEP_ARTIFACTS_DIR := $$($1_DEPS_ARTIFACTS_DIR)
$4/$(CMAKE_CACHE): CMAKE_BUILD_SETTINGS := -GXcode -DCMAKE_MACOSX_BUNDLE=NO
$4/$(CMAKE_CACHE): CMAKE_BUILD_SETTINGS := -GXcode -DCMAKE_MACOSX_BUNDLE=NO -DMACOSX_DEPLOYMENT_TARGET=$(THORVG_APPLE_IOS_VERSION_MIN) -DDEPLOYMENT_TARGET=$(THORVG_APPLE_IOS_VERSION_MIN) -DIPHONEOS_DEPLOYMENT_TARGET=$(THORVG_APPLE_IOS_VERSION_MIN)
$4/$(CMAKE_CACHE): PLATFORM := -DPLATFORM=$$($1_ARCH)
$4/$(CMAKE_CACHE): TOOLCHAIN_FILE := -DCMAKE_TOOLCHAIN_FILE=$(PWD)/$(DEPS_MODULES_DIR)/ios-cmake/ios.toolchain.cmake
$4/$(CMAKE_CACHE):
Expand Down

0 comments on commit 9b1dc5c

Please sign in to comment.