@@ -126,10 +126,12 @@ let package = Package(
126126 ] ,
127127 cSettings: [
128128 . define( " GL_SILENCE_DEPRECATION " ,
129- . when( platforms: [ . macOS] ) ) ,
129+ . when( platforms: [ . macOS] )
130+ ) ,
130131 . define( " GLES_SILENCE_DEPRECATION " ,
131- . when( platforms: [ . iOS, . tvOS] ) ) ,
132- ] ,
132+ . when( platforms: [ . iOS, . tvOS] )
133+ ) ,
134+ ] ,
133135 swiftSettings: {
134136 var settings : [ SwiftSetting ] = [ ]
135137
@@ -141,32 +143,39 @@ let package = Package(
141143 settings. append ( contentsOf: [
142144 /// Closes all open windows when the main window is closed
143145 . define( " GATEENGINE_CLOSES_ALLWINDOWS_WITH_MAINWINDOW " ,
144- . when( platforms: . desktop) ) ,
146+ . when( platforms: . desktop)
147+ ) ,
145148 /// Checks for reloadable resources and reloads them if they have changed
146149 . define( " GATEENGINE_ENABLE_HOTRELOADING " ,
147- . when( platforms: . desktop, configuration: . debug) ) ,
150+ . when( platforms: . desktop, configuration: . debug)
151+ ) ,
148152 /// The host platform requests the main window, so GateEngine won't create one until it's requested
149153 . define( " GATEENGINE_PLATFORM_CREATES_MAINWINDOW " ,
150- . when( platforms: [ . iOS, . tvOS] ) ) ,
154+ . when( platforms: [ . iOS, . tvOS] )
155+ ) ,
151156 /// The host platform updates and draws from an event callback, so GateEngine won't create a game loop.
152157 . define( " GATEENGINE_PLATFORM_EVENT_DRIVEN " ,
153- . when( platforms: . any) ) ,
158+ . when( platforms: . any)
159+ ) ,
154160 /// The host platform requires an intermediate task, so GateEngine won't load default systems.
155161 . define( " GATEENGINE_PLATFORM_DEFERS_LAUNCH " ,
156- . when( platforms: [ . wasi] ) ) ,
162+ . when( platforms: [ . wasi] )
163+ ) ,
157164 /// The host platform supports file system read/write
158165 . define( " GATEENGINE_PLATFORM_HAS_FILESYSTEM " ,
159- . when( platforms: . any) ) ,
166+ . when( platforms: . any)
167+ ) ,
160168 /// The host platform supports Foundation.FileManager
161169 . define( " GATEENGINE_PLATFORM_FOUNDATION_FILEMANAGER " ,
162- . when( platforms: . any( except: . wasi) ) ) ,
170+ . when( platforms: . any( except: . wasi) )
171+ ) ,
163172 ] )
164173 #if !(os(macOS) || os(Linux))
165174 /// The host platform can't be used to compile HTML5 products
166175 settings. append ( . define( " GATEENGINE_WASI_UNSUPPORTED_HOST " , . when( platforms: [ . wasi] ) ) )
167176 #endif
168177
169- #if true // Experimental and upcomming language features.
178+ #if false // Experimental and upcomming language features.
170179 // These should be disabled for releases.
171180 // These are to get a headstart on the next Swift versions.
172181 // https://www.swift.org/swift-evolution/#?upcoming=true
0 commit comments