File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,15 @@ pub fn build_project(
113
113
conf_args. push ( "-DGEODE_DONT_INSTALL_MODS=1" . into ( ) ) ;
114
114
}
115
115
}
116
+ PlatformName :: IOS => {
117
+ if cross_compiling && cfg ! ( not( target_os = "macos" ) ) {
118
+ fatal ! ( "Sorry! but we do not know of any way to cross-compile to iOS when not using MacOS." ) ;
119
+ }
120
+ conf_args. push ( "-DCMAKE_SYSTEM_NAME=iOS" . into ( ) ) ;
121
+ conf_args. push ( "-DGEODE_TARGET_PLATFORM=iOS" . into ( ) ) ;
122
+ // TODO: cli cant install to a mobile device, yet
123
+ conf_args. push ( "-DGEODE_DONT_INSTALL_MODS=1" . into ( ) ) ;
124
+ }
116
125
}
117
126
118
127
let build_type = config_type. unwrap_or_else ( || {
Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ pub enum PlatformName {
231
231
Android ,
232
232
Android32 ,
233
233
Android64 ,
234
+ IOS ,
234
235
}
235
236
236
237
impl PlatformName {
@@ -243,6 +244,8 @@ impl PlatformName {
243
244
Some ( PlatformName :: Windows )
244
245
} else if cfg ! ( target_os = "macos" ) {
245
246
Some ( PlatformName :: MacOS )
247
+ } else if cfg ! ( target_os = "ios" ) {
248
+ Some ( PlatformName :: IOS )
246
249
} else {
247
250
None
248
251
}
@@ -260,6 +263,7 @@ impl Display for PlatformName {
260
263
P :: Android => "android" ,
261
264
P :: Android32 => "android32" ,
262
265
P :: Android64 => "android64" ,
266
+ P :: IOS => "ios" ,
263
267
} )
264
268
}
265
269
}
@@ -274,6 +278,7 @@ fn all_platforms() -> HashSet<PlatformName> {
274
278
P :: Android ,
275
279
P :: Android32 ,
276
280
P :: Android64 ,
281
+ P :: IOS ,
277
282
] )
278
283
}
279
284
You can’t perform that action at this time.
0 commit comments