Skip to content

Commit

Permalink
fix: only use png and svgs, since jpeg isn't available with mt support
Browse files Browse the repository at this point in the history
also convert the mgerhold.jpg to png
  • Loading branch information
Totto16 committed Nov 17, 2024
1 parent 2d0f123 commit 2898d62
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Binary file removed assets/authors/mgerhold.jpg
Binary file not shown.
Binary file added assets/authors/mgerhold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions platforms/build-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
EMSDK_QUIET=1 source "$EMSCRIPTEN_ROOT/emsdk_env.sh" >/dev/null

## build theneeded dependencies
embuilder build sdl2-mt harfbuzz-mt freetype zlib sdl2_ttf mpg123 sdl2_mixer_mp3 libpng-mt libjpeg "sdl2_image:formats=png,jpg,svg" icu-mt
embuilder build sdl2-mt harfbuzz-mt freetype zlib sdl2_ttf mpg123 sdl2_mixer_mp3 libpng-mt "sdl2_image:formats=png,svg" icu-mt

export EMSCRIPTEN_SYS_ROOT="$EMSCRIPTEN_ROOT/upstream/emscripten/cache/sysroot"

Expand All @@ -38,7 +38,7 @@ export ENDIANESS="little"

export ROMFS="platforms/romfs"

export PACKAGE_FLAGS="'--use-port=sdl2', '--use-port=harfbuzz', '--use-port=freetype', '--use-port=zlib', '--use-port=sdl2_ttf', '--use-port=mpg123', '--use-port=sdl2_mixer', '-sSDL2_MIXER_FORMATS=[\"mp3\"]','--use-port=libpng', '--use-port=libjpeg', '--use-port=sdl2_image','-sSDL2_IMAGE_FORMATS=[\"png\",\"jpg\",\"svg\"]', '--use-port=icu'"
export PACKAGE_FLAGS="'--use-port=sdl2', '--use-port=harfbuzz', '--use-port=freetype', '--use-port=zlib', '--use-port=sdl2_ttf', '--use-port=mpg123', '--use-port=sdl2_mixer', '-sSDL2_MIXER_FORMATS=[\"mp3\"]','--use-port=libpng', '--use-port=sdl2_image','-sSDL2_IMAGE_FORMATS=[\"png\",\"svg\"]', '--use-port=icu'"

export COMMON_FLAGS="'-fexceptions', '-pthread', '-sEXCEPTION_CATCHING_ALLOWED=[..]', $PACKAGE_FLAGS"

Expand Down
2 changes: 1 addition & 1 deletion src/scenes/about_page/about_page.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace scenes {

static constexpr std::initializer_list<std::tuple<const char* const, const char* const, const char* const>>
authors{
{ "mgerhold", "https://github.com/mgerhold", "mgerhold.jpg" },
{ "mgerhold", "https://github.com/mgerhold", "mgerhold.png" },
{ "Totto16", "https://github.com/Totto16", "Totto16.png" }
};

Expand Down
3 changes: 1 addition & 2 deletions tools/dependencies/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if meson.is_cross_build()
['SDL2_ttf'],
['mpg123'],
['SDL2_mixer_mp3', 'SDL2_mixer'],
['SDL2_image_jpg-png-svg', 'SDL2_image'],
['SDL2_image_png-svg', 'SDL2_image'],
['icu_common-mt', 'icu-uc'],
]
foreach native_dependency_tuple : map_native_dependencies
Expand Down Expand Up @@ -118,7 +118,6 @@ if meson.is_cross_build()
'z',
'mpg123',
'png-mt',
'jpeg',
'fetch-mt',
]

Expand Down

0 comments on commit 2898d62

Please sign in to comment.