summaryrefslogtreecommitdiff
path: root/contrib/depends/hosts/iossimulator.mk
diff options
context:
space:
mode:
authorcyan <cyjan@mrcyjanek.net>2025-02-04 18:22:07 +0100
committerGitHub <noreply@github.com>2025-02-04 18:22:07 +0100
commit9301097ff504525070cc0cb915fe2f1bb0670345 (patch)
tree1cdf375c78db23bb330b5cee6a445fec2db0aea9 /contrib/depends/hosts/iossimulator.mk
parent127c54599c612d7d3d226e4c016d5812e7a0966d (diff)
add support for ios simulator (#111)v0.18.3.4-RC10
* add support for ios simulator * remove libmd.tbd dependency
Diffstat (limited to 'contrib/depends/hosts/iossimulator.mk')
-rw-r--r--contrib/depends/hosts/iossimulator.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/depends/hosts/iossimulator.mk b/contrib/depends/hosts/iossimulator.mk
new file mode 100644
index 0000000..60599db
--- /dev/null
+++ b/contrib/depends/hosts/iossimulator.mk
@@ -0,0 +1,26 @@
+IOS_MIN_VERSION=12.0
+IOS_SDK=$(shell xcrun --sdk iphonesimulator --show-sdk-path)
+
+ifeq (aarch64, $(host_arch))
+CC_target_iossimulator=arm64-apple-ios-simulator
+iossimulator_host=arm64-apple-darwin
+aarch64_iossimulator_host=arm64-apple-darwin
+else
+CC_target_iossimulator=x86_64-apple-ios-simulator
+iossimulator_host=x86_64-apple-darwin
+x86_64_iossimulator_host=x86_64-apple-darwin
+endif
+iossimulator_CC=$(shell xcrun -f clang) -target $(CC_target_iossimulator) -mios-version-min=$(IOS_MIN_VERSION) --sysroot $(IOS_SDK)
+iossimulator_CXX=$(shell xcrun -f clang++) -target $(CC_target_iossimulator) -mios-version-min=$(IOS_MIN_VERSION) --sysroot $(IOS_SDK) -stdlib=libc++ -std=c++14
+iossimulator_AR:=$(shell xcrun -f ar)
+iossimulator_RANLIB:=$(shell xcrun -f ranlib)
+iossimulator_STRIP:=$(shell xcrun -f strip)
+iossimulator_LIBTOOL:=$(shell xcrun -f libtool)
+iossimulator_OTOOL:=$(shell xcrun -f otool)
+iossimulator_NM:=$(shell xcrun -f nm)
+iossimulator_INSTALL_NAME_TOOL:=$(shell xcrun -f install_name_tool)
+iossimulator_native_toolchain=
+
+
+iossimulator_CFLAGS=-pipe
+iossimulator_CXXFLAGS=$(iossimulator_CFLAGS) \ No newline at end of file