@@ -75,6 +75,7 @@ let package = Package(
7575 )
7676
7777 dependencies. append ( contentsOf: [
78+ " GateEngineShared " ,
7879 " GameMath " ,
7980 " Shaders " ,
8081 " TrueType " ,
@@ -228,6 +229,7 @@ let package = Package(
228229 . target(
229230 name: " Shaders " ,
230231 dependencies: [
232+ " GateEngineShared " ,
231233 " GameMath " ,
232234 . product( name: " Collections " , package : " swift-collections " )
233235 ] ,
@@ -236,17 +238,25 @@ let package = Package(
236238 } )
237239 ) ,
238240
239- . target( name: " GameMath " , swiftSettings: . default( withCustomization: { settings in
240- #if false
241- // Possibly faster on old hardware, but less accurate.
242- // There is no reason to use this on modern hardware.
243- settings. append ( . define( " GameMathUseFastInverseSquareRoot " ) )
244- #endif
245-
246- // These settings are faster only with optimization.
247- settings. append ( . define( " GameMathUseSIMD " , . when( configuration: . release, traits: [ " SIMD " ] ) ) )
248- settings. append ( . define( " GameMathUseLoopVectorization " , . when( configuration: . release, traits: [ " SIMD " ] ) ) )
249- } ) ) ,
241+ . target(
242+ name: " GameMath " ,
243+ dependencies: [
244+ " GateEngineShared "
245+ ] ,
246+ swiftSettings: . default( withCustomization: { settings in
247+ #if false
248+ // Possibly faster on old hardware, but less accurate.
249+ // There is no reason to use this on modern hardware.
250+ settings. append ( . define( " GameMathUseFastInverseSquareRoot " ) )
251+ #endif
252+
253+ // These settings are faster only with optimization.
254+ settings. append ( . define( " GameMathUseSIMD " , . when( configuration: . release, traits: [ " SIMD " ] ) ) )
255+ settings. append ( . define( " GameMathUseLoopVectorization " , . when( configuration: . release, traits: [ " SIMD " ] ) ) )
256+ } )
257+ ) ,
258+
259+ . target( name: " GateEngineShared " , swiftSettings: . default) ,
250260 ] )
251261
252262 // MARK: - Macros
0 commit comments