@@ -46,21 +46,20 @@ if build_application
4646 endif
4747
4848 if not fs.exists(APP_ROMFS)
49- error (
50- ' APP_ROMFS should exist, but doesn\' t: \' '
51- + APP_ROMFS
52- + ' \' ' ,
53- )
49+ error (' APP_ROMFS should exist, but doesn\' t: \' '
50+ + APP_ROMFS + ' \' ' )
5451 endif
5552
5653 if not APP_ROMFS.endswith(' /' )
5754 APP_ROMFS = APP_ROMFS + ' /'
5855 endif
5956
6057 emscripten_link_args += [
61- ' --preload-file' , APP_ROMFS + ' @/assets/' ,
58+ ' --preload-file' ,
59+ APP_ROMFS + ' @/assets/' ,
6260 # based on: https://github.com/emscripten-core/emscripten/blob/main/src/shell_minimal.html
63- ' --shell-file' , meson .project_source_root() / ' platforms' / ' emscripten' / ' shell_file.html' ,
61+ ' --shell-file' ,
62+ meson .project_source_root() / ' platforms' / ' emscripten' / ' shell_file.html' ,
6463 ]
6564
6665 endif
@@ -85,7 +84,9 @@ if build_application
8584
8685 oopetris_html = executable (
8786 emscripten_name,
88- objects : oopetris_js.extract_all_objects(recursive : true ),
87+ objects : oopetris_js.extract_all_objects(
88+ recursive : true
89+ ),
8990 dependencies : emscripten_deps,
9091 link_args : emscripten_link_args,
9192 override_options : emscripten_options,
@@ -94,12 +95,15 @@ if build_application
9495 link_depends : [oopetris_js],
9596 )
9697
97- python3 = find_program (' python3' , required : false )
98+ python3 = find_program (
99+ ' python3' ,
100+ required : false ,
101+ )
98102
99103 if python3.found()
100104
101105 server_py = files (
102- meson .project_source_root() / ' platforms' / ' emscripten' / ' server.py' ,
106+ meson .project_source_root() / ' platforms' / ' emscripten' / ' server.py'
103107 )
104108
105109 dest_path = meson .project_build_root() / ' src' / ' executables'
@@ -112,7 +116,10 @@ if build_application
112116
113117 endif
114118
115- wasm_validate_exe = find_program (' wasm-validate' , required : false )
119+ wasm_validate_exe = find_program (
120+ ' wasm-validate' ,
121+ required : false ,
122+ )
116123
117124 if wasm_validate_exe.found()
118125
@@ -123,7 +130,6 @@ if build_application
123130 wasm_validate_exe,
124131 args : [' --enable-threads' , wasm_file],
125132 depends : [oopetris_js, oopetris_html],
126-
127133 )
128134 endif
129135
@@ -170,7 +176,7 @@ if build_application
170176 makensis = find_program (' makensis' )
171177
172178 nsis_script = files (
173- meson .project_source_root() / ' tools' / ' installer' / ' setup.nsi' ,
179+ meson .project_source_root() / ' tools' / ' installer' / ' setup.nsi'
174180 )
175181
176182 run_target (
@@ -184,9 +190,7 @@ if build_application
184190 + meson .project_source_root(),
185191 ' -DPROJECT_BUILD_DIR=' + meson .project_build_root(),
186192 ' -DDYNAMIC_LIBRARIES_DIR='
187- + (
188- meson .project_build_root() / ' dynamic_libraries' / get_option (' bindir' )
189- ),
193+ + (meson .project_build_root() / ' dynamic_libraries' / get_option (' bindir' )),
190194 nsis_script,
191195 ],
192196 depends : [oopetris_exe, oopetris_recordings_utility_exe],
0 commit comments