-
Notifications
You must be signed in to change notification settings - Fork 40
/
CMakeLists.txt
135 lines (125 loc) · 4.58 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
cmake_minimum_required(VERSION 3.16)
project(UIKit LANGUAGES C Swift)
set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift)
add_library(UIKit SHARED
Sources/$<$<PLATFORM_ID:Android>:androidNativeInit.swift>
Sources/$<$<PLATFORM_ID:Android>:AVPlayer+Android.swift>
Sources/$<$<PLATFORM_ID:Android>:AVPlayerLayer+Android.swift>
Sources/$<$<PLATFORM_ID:Android>:AVURLAsset+Android.swift>
Sources/$<$<PLATFORM_ID:Darwin>:AVPlayerItem+Mac.swift>
Sources/$<$<PLATFORM_ID:Darwin>:AVPlayerLayer+Mac.swift>
Sources/$<$<PLATFORM_ID:Darwin>:UIApplicationMain+Mac.swift>
Sources/$<$<PLATFORM_ID:Darwin>:VideoTexture+Mac.swift>
Sources/AffineTransform.swift
Sources/AnimatableProperty.swift
Sources/AnimationKeyPath.swift
Sources/Bundle.swift
Sources/Button.swift
Sources/CAAction.swift
Sources/CABasicAnimation+updateProgress.swift
Sources/CABasicAnimation.swift
Sources/CABasicAnimationPrototype.swift
Sources/CALayer+ContentsGravity.swift
Sources/CALayer+SDL.swift
Sources/CALayer+animations.swift
Sources/CATransform3D+interpolate.swift
Sources/CALayer.swift
Sources/CAMediaTimingFunction.swift
Sources/CASpringAnimation.swift
Sources/CASpringAnimationPrototype.swift
Sources/CATransaction.swift
Sources/CATransform3D+SDL_gpu.swift
Sources/CATransform3D+animations.swift
Sources/CATransform3D.swift
Sources/CGAffineTransform.swift
Sources/CGDataProvider.swift
Sources/CGFloat.swift
Sources/CGImage.swift
Sources/CGPath.swift
Sources/CGPoint+animations.swift
Sources/CGPoint.swift
Sources/CGRect+animations.swift
Sources/CGRect.swift
Sources/CGSize.swift
Sources/Data.swift
Sources/Data+fromRelativePathCrossPlatform.swift
Sources/DisplayLink.swift
Sources/FontRenderer+renderAttributedString.swift
Sources/FontRenderer+singleLineSize.swift
Sources/FontRenderer.swift
Sources/Logging.swift
Sources/MaskingShaders.swift
Sources/MeteringView.swift
Sources/Notification.swift
Sources/NotificationCenter.swift
Sources/SDL+JNIExtensions.swift
Sources/SDL2-Shims.swift
Sources/Shader.swift
Sources/ShaderProgram+mask.swift
Sources/ShaderProgram.swift
Sources/Timer.swift
Sources/UIAccessibilityIdentification.swift
Sources/UIActivityIndicatorView.swift
Sources/UIAlertAction.swift
Sources/UIAlertController.swift
Sources/UIAlertControllerBackdrop.swift
Sources/UIAlertControllerView.swift
Sources/UIApplication+Notifications.swift
Sources/UIApplication+handleSDLEvents.swift
Sources/UIApplication.swift
Sources/UIApplicationDelegate.swift
Sources/UIApplicationMain.swift
Sources/UIColor.swift
Sources/UIControl.swift
Sources/UIEdgeInsets.swift
Sources/UIEvent.swift
Sources/UIFont.swift
Sources/UIGestureRecognizer.swift
Sources/UIGestureRecognizerDelegate.swift
Sources/UIImage.swift
Sources/UIImageView.swift
Sources/UILabel.swift
Sources/UIModalPresentationStyle.swift
Sources/UINavigationBar.swift
Sources/UINavigationBarAndroid.swift
Sources/UINavigationController.swift
Sources/UINavigationControllerContainerView.swift
Sources/UINavigationItem.swift
Sources/UIPanGestureRecognizer.swift
Sources/UIPinchGestureRecognizer.swift
Sources/UIProgressView.swift
Sources/UIResponder.swift
Sources/UIScreen+Errors.swift
Sources/UIScreen+render.swift
Sources/UIScreen.swift
Sources/UIScrollView+indicatorsInternal.swift
Sources/UIScrollView+velocity.swift
Sources/UIScrollView.swift
Sources/UITapGestureRecognizer.swift
Sources/UITextView.swift
Sources/UITouch.swift
Sources/UIView+SDL.swift
Sources/UIView+animate.swift
Sources/UIView+printViewHierarchy.swift
Sources/UIView.swift
Sources/UIViewAnimationGroup.swift
Sources/UIViewController.swift
Sources/UIVisualEffect.swift
Sources/UIVisualEffectView.swift
Sources/UIWindow+TouchHandling.swift
Sources/UIWindow+hardwareBackButton.swift
Sources/UIWindow+getSafeAreaInsets.swift
Sources/UIWindow.swift
Sources/Switch.swift
Sources/DispatchQueue+syncSafe.swift
)
set_target_properties(UIKit PROPERTIES
INTERFACE_LINK_DIRECTORIES $<TARGET_LINKER_FILE_DIR:UIKit>
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
add_subdirectory(swift-jni)
target_link_libraries(UIKit PUBLIC JNI)
add_subdirectory(SDL)
target_link_libraries(UIKit PUBLIC SDL)
# target_compile_options(UIKit PRIVATE
# $<$<BOOL:ENABLE_TESTING>:-enable-testing>)
# install(TARGETS UIKit LIBRARY DESTINATION lib)