@@ -116,7 +116,8 @@ fmt_use_header_only = false
116116
117117if (
118118 meson .is_cross_build()
119- and (host_machine .system() == ' switch' or host_machine .system() == ' 3ds' )
119+ and (host_machine .system() == ' switch'
120+ or host_machine .system() == ' 3ds' )
120121)
121122 fmt_use_header_only = true
122123 # clang with libc++ creates some really long and confusing linker errors, so just use the header only library
@@ -147,6 +148,7 @@ graphics_lib += {
147148 ' deps' : [graphics_lib.get(' deps' ), spdlog_dep],
148149}
149150
151+ # on the 3ds there is no thread local storage (TLS)
150152if (meson .is_cross_build() and host_machine .system() == ' 3ds' )
151153 graphics_lib += {
152154 ' compile_args' : [graphics_lib.get(' compile_args' ), ' -DSPDLOG_NO_TLS' ],
@@ -220,7 +222,8 @@ online_multiplayer_supported = true
220222
221223if (
222224 meson .is_cross_build()
223- and (host_machine .system() == ' switch' or host_machine .system() == ' 3ds' )
225+ and (host_machine .system() == ' switch'
226+ or host_machine .system() == ' 3ds' )
224227)
225228 online_multiplayer_supported = false
226229
@@ -261,8 +264,8 @@ is_flatpak_build = false
261264if build_installer
262265 if get_option (' buildtype' ) != ' release'
263266 error (
264- ' buildtype needs to be \' release\' , when building the installer, but was: '
265- + get_option (' buildtype' ),
267+ ' buildtype needs to be \' release\' , when building the installer, but was: ' +
268+ get_option (' buildtype' ),
266269 )
267270 endif
268271
@@ -278,8 +281,7 @@ if build_installer
278281 message (' Adding a windows installer target: \' windows_installer\' ' )
279282 else
280283 error (
281- ' unsuported system for building the installer: '
282- + host_machine .system(),
284+ ' unsuported system for building the installer: ' + host_machine .system(),
283285 )
284286
285287 endif
@@ -296,10 +298,7 @@ endif
296298if is_flatpak_build
297299 app_name = ' com.github.mgerhold.OOPetris'
298300 core_lib += {
299- ' compile_args' : [
300- core_lib.get(' compile_args' ),
301- ' -DFLATPAK_BUILD'
302- ],
301+ ' compile_args' : [core_lib.get(' compile_args' ), ' -DFLATPAK_BUILD' ],
303302 }
304303endif
305304
0 commit comments