Skip to content
Permalink
Browse files
[PlayStation] Turn on WebP support
https://bugs.webkit.org/show_bug.cgi?id=241887

Reviewed by Ross Kirsling.

Turn USE_WEBP to ON. Load WebP as a shared library if applicable.

* Source/WebKit/WebProcess/EntryPoint/playstation/WebProcessMain.cpp:
* Source/cmake/OptionsPlayStation.cmake:
* Tools/MiniBrowser/playstation/main.cpp:
* Tools/TestWebKitAPI/playstation/main.cpp:

Canonical link: https://commits.webkit.org/251765@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
donny-dont committed Jun 23, 2022
1 parent 69d738f commit 8ecc2269762c9b227de3c06307eb1e21b7ee51ae
Showing 4 changed files with 12 additions and 2 deletions.
@@ -47,8 +47,11 @@ int main(int argc, char** argv)
exit(EXIT_FAILURE);
}

loadLibraryOrExit(PNG_LOAD_AT);
loadLibraryOrExit(ICU_LOAD_AT);
loadLibraryOrExit(PNG_LOAD_AT);
#if defined(WebP_LOAD_AT)
loadLibraryOrExit(WebP_LOAD_AT);
#endif
loadLibraryOrExit(Freetype_LOAD_AT);
loadLibraryOrExit(Fontconfig_LOAD_AT);
loadLibraryOrExit(HarfBuzz_LOAD_AT);
@@ -234,6 +234,7 @@ SET_AND_EXPOSE_TO_BUILD(USE_FREETYPE ON)
SET_AND_EXPOSE_TO_BUILD(USE_HARFBUZZ ON)
SET_AND_EXPOSE_TO_BUILD(USE_LIBWPE ON)
SET_AND_EXPOSE_TO_BUILD(USE_OPENSSL ON)
SET_AND_EXPOSE_TO_BUILD(USE_WEBP ON)
SET_AND_EXPOSE_TO_BUILD(USE_WPE_RENDERER OFF)

SET_AND_EXPOSE_TO_BUILD(USE_INSPECTOR_SOCKET_SERVER ${ENABLE_REMOTE_INSPECTOR})
@@ -48,8 +48,11 @@ static void initialize()
loadLibraryOrExit("PosixWebKit");
setenv_np("WebInspectorServerPort", "868", 1);

loadLibraryOrExit(PNG_LOAD_AT);
loadLibraryOrExit(ICU_LOAD_AT);
loadLibraryOrExit(PNG_LOAD_AT);
#if defined(WebP_LOAD_AT)
loadLibraryOrExit(WebP_LOAD_AT);
#endif
loadLibraryOrExit(Fontconfig_LOAD_AT);
loadLibraryOrExit(Freetype_LOAD_AT);
loadLibraryOrExit(HarfBuzz_LOAD_AT);
@@ -41,6 +41,9 @@ int main(int argc, char** argv)
loadLibraryOrExit(ICU_LOAD_AT);
#if defined(BUILDING_TestWebCore) || defined(BUILDING_TestWebKit)
loadLibraryOrExit(PNG_LOAD_AT);
#if defined(WebP_LOAD_AT)
loadLibraryOrExit(WebP_LOAD_AT);
#endif
loadLibraryOrExit(Fontconfig_LOAD_AT);
loadLibraryOrExit(Freetype_LOAD_AT);
loadLibraryOrExit(HarfBuzz_LOAD_AT);

0 comments on commit 8ecc226

Please sign in to comment.