Skip to content

Commit b083bde

Browse files
committed
Improved stuff
1 parent 7d5ad80 commit b083bde

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ISC License
22

3-
YUP - Copyright (c) 2024 [email protected]
3+
YUP - Copyright (c) 2024-2026 [email protected]
44

55
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is
66
hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

cmake/platforms/ios/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@
3030
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
3131
<key>NSHighResolutionCapable</key>
3232
<true/>
33+
<key>UIApplicationSupportsIndirectInputEvents</key>
34+
<true/>
3335
</dict>
3436
</plist>

cmake/platforms/yup_ios.cmake

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# ==============================================================================
2+
#
3+
# This file is part of the YUP library.
4+
# Copyright (c) 2026 - [email protected]
5+
#
6+
# YUP is an open source library subject to open-source licensing.
7+
#
8+
# The code included in this file is provided under the terms of the ISC license
9+
# http://www.isc.org/downloads/software-support-policy/isc-license. Permission
10+
# To use, copy, modify, and/or distribute this software for any purpose with or
11+
# without fee is hereby granted provided that the above copyright notice and
12+
# this permission notice appear in all copies.
13+
#
14+
# YUP IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
15+
# EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
16+
# DISCLAIMED.
17+
#
18+
# ==============================================================================
19+
20+
#==============================================================================
21+
# iOS Platform Configuration
22+
#==============================================================================
23+
24+
# Handle iOS simulator builds when not using the full YUP iOS toolchain
25+
# This ensures the correct SDK is used even when using FetchContent
26+
if (DEFINED PLATFORM AND PLATFORM MATCHES "^SIMULATOR")
27+
# Determine the correct SDK name based on platform
28+
set (SDK_NAME "iphonesimulator")
29+
30+
# Query xcodebuild for the simulator SDK path if sysroot is not set correctly
31+
if (NOT DEFINED CMAKE_OSX_SYSROOT OR CMAKE_OSX_SYSROOT STREQUAL "" OR CMAKE_OSX_SYSROOT MATCHES "iphoneos")
32+
find_program (XCODEBUILD_EXECUTABLE xcodebuild)
33+
if (XCODEBUILD_EXECUTABLE)
34+
execute_process (
35+
COMMAND ${XCODEBUILD_EXECUTABLE} -version -sdk ${SDK_NAME} Path
36+
OUTPUT_VARIABLE SIMULATOR_SDK_PATH
37+
ERROR_QUIET
38+
OUTPUT_STRIP_TRAILING_WHITESPACE
39+
)
40+
if (SIMULATOR_SDK_PATH)
41+
set (CMAKE_OSX_SYSROOT "${SIMULATOR_SDK_PATH}" CACHE PATH "iOS Simulator SDK path" FORCE)
42+
_yup_message (STATUS "Using iOS Simulator SDK: ${SIMULATOR_SDK_PATH}")
43+
endif()
44+
endif()
45+
endif()
46+
endif()

0 commit comments

Comments
 (0)