@@ -62,6 +62,7 @@ let package = Package(
6262 dependencies. append ( contentsOf: [
6363 . product( name: " JavaScriptEventLoop " , package : " JavaScriptKit " , condition: . when( platforms: [ . wasi] ) ) ,
6464 . product( name: " DOM " , package : " WebAPIKit " , condition: . when( platforms: [ . wasi] ) ) ,
65+ . product( name: " FileSystem " , package : " WebAPIKit " , condition: . when( platforms: [ . wasi] ) ) ,
6566 . product( name: " WebAudio " , package : " WebAPIKit " , condition: . when( platforms: [ . wasi] ) ) ,
6667 . product( name: " Gamepad " , package : " WebAPIKit " , condition: . when( platforms: [ . wasi] ) ) ,
6768 . product( name: " WebGL2 " , package : " WebAPIKit " , condition: . when( platforms: [ . wasi] ) ) ,
@@ -74,7 +75,7 @@ let package = Package(
7475 . copy( " _Resources/GateEngine " ) ,
7576 ] ,
7677 cSettings: [
77- . define( " GL_SILENCE_DEPRECATION " , . when( platforms: [ . macOS, . iOS , . tvOS ] ) ) ,
78+ . define( " GL_SILENCE_DEPRECATION " , . when( platforms: [ . macOS] ) ) ,
7879 . define( " GLES_SILENCE_DEPRECATION " , . when( platforms: [ . iOS, . tvOS] ) ) ,
7980 ] ,
8081 swiftSettings: {
@@ -92,14 +93,20 @@ let package = Package(
9293 . define( " GATEENGINE_WASI_UNSUPPORTED_HOST " , . when( platforms: [ . windows] ) ) ,
9394 /// The host platform updates and draws from an event callback, so GateEngine won't create a game loop.
9495 . define( " GATEENGINE_PLATFORM_EVENT_DRIVEN " , . when( platforms: [ . wasi] ) ) ,
95- /// The host pltfrom requires an intermediate task, so GateEngine won't load default systems.
96+ /// The host platform requires an intermediate task, so GateEngine won't load default systems.
9697 . define( " GATEENGINE_PLATFORM_DEFERS_LAUNCH " , . when( platforms: [ . wasi] ) ) ,
98+ /// The host platform supports file system read/write
99+ . define( " GATEENGINE_PLATFORM_HAS_FILESYSTEM " , . when( platforms: [ . macOS, . windows, . linux, . iOS, . tvOS, . android, . wasi] ) ) ,
100+ /// The host platform supports Foundation.FileManager
101+ . define( " GATEENGINE_PLATFORM_SUPPORTS_FOUNDATION_FILEMANAGER " , . when( platforms: [ . macOS, . windows, . linux, . iOS, . tvOS, . android] ) ) ,
102+ /// The host platform requires an intermediate task, so GateEngine won't load default systems.
103+ . define( " GATEENGINE_ASYNCLOAD_CURRENTPLATFORM " , . when( platforms: [ . macOS, . windows, . linux, . iOS, . tvOS, . android] ) ) ,
97104 ] )
98105
99106 #if false // Options for development of GateEngine. These should be commented out for tagged version releases.
100107 #warning("GateEngine development options are enabled. These can cause strange build errors on some platforms.")
101108
102- // Options for developments of WASI platform
109+ // Options for development of WASI platform
103110 #if false
104111 settings. append ( contentsOf: [
105112 /// Allows HTML5 platform to be compiled from a compatible host, such as macOS. This allows the IDE to show compile errors without targeting WASI.
@@ -110,14 +117,16 @@ let package = Package(
110117 #endif
111118
112119 settings. append ( contentsOf: [
113- /// Printers the output of generated shaders
120+ /// Prints the output of generated shaders
114121 . define( " GATEENGINE_LOG_SHADERS " ) ,
115122 /// Enables various additional checks and output for rendering
116123 . define( " GATEENGINE_DEBUG_RENDERING " ) ,
117124 /// Enables various additional checks and output for input
118125 . define( " GATEENGINE_DEBUG_HID " ) ,
126+ /// Enables varius additional, additional, checks and output for input
127+ . define( " GATEENGINE_DEBUG_HID_VERBOSE " ) ,
119128 /// Forces Apple platforms to use OpenGL for rendering
120- . define( " GATEENGINE_FORCE_OPNEGL_APPLE " , . when( platforms: [ . macOS, . iOS, . tvOS] ) ) ,
129+ . define( " GATEENGINE_FORCE_OPNEGL_APPLE " , . when( platforms: [ . macOS, /* .iOS, .tvOS*/ ] ) ) ,
121130 ] )
122131 #endif
123132 return settings
0 commit comments