-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Why upgrade to latest WebKitGTK 2.36.3 (svn r294992). mostly from community requests and hopefully to fix the crashes on samsung android 12 devices. # How - upgrade NDK to 23.2.8568313. we need newer versions because the newer webkit needs std::filesystem that doesn't support on NDK r21. also, because the NDK r23 libc++_shared.so has std::filesystem symbols that older version doesn't have. to prevent developers use pickFirst to pick wrong libc++_shared.so, i turned to use link static c++ runtime instead. - **[BREAKING CHANGE]** remove non Intl variant, because newer JSC doesn't have a build flag to turn it off. - **[BREAKING CHANGE]** Bump minimum supported Android SDK to 21 - remove outdated patches for older jsc or ndk - remove some platform specific cflags, let ndk to do it. size changes: | - | r250230 Intl | r294992 Intl | | :---------: | :----------: | :----------: | | armeabi-v7a | 14 MB | 17 MB | | arm64-v8a | 18 MB | 19 MB | | x86 | 17 MB | 20 MB | | x86_64 | 19 MB | 21 MB | # Test Plan - ci passed. - launch test on arm64 devices
- Loading branch information
Showing
25 changed files
with
140 additions
and
505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
rootProject.name = 'JavaScriptCore Lib' | ||
|
||
include ':android-jsc' | ||
include ':cppruntime' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,34 @@ | ||
diff -aur target-org/webkit/CMakeLists.txt target/webkit/CMakeLists.txt | ||
--- target-org/webkit/CMakeLists.txt 2017-12-22 19:18:43.000000000 +0200 | ||
+++ target/webkit/CMakeLists.txt 2018-06-14 15:41:59.000000000 +0300 | ||
@@ -177,13 +177,13 @@ | ||
--- target-org/webkit/CMakeLists.txt 2021-03-06 03:12:45.000000000 +0800 | ||
+++ target/webkit/CMakeLists.txt 2022-07-09 18:13:01.000000000 +0800 | ||
@@ -38,9 +38,9 @@ | ||
add_subdirectory(Tools) | ||
endif () | ||
|
||
-if ("${PORT}" STREQUAL "GTK" OR "${PORT}" STREQUAL "WPE") | ||
- if (DEVELOPER_MODE) | ||
- add_subdirectory(PerformanceTests) | ||
- endif () | ||
-else () | ||
|
||
-if (DEVELOPER_MODE) | ||
- add_subdirectory(PerformanceTests) | ||
-endif () | ||
+#if ("${PORT}" STREQUAL "GTK" OR "${PORT}" STREQUAL "WPE") | ||
+# if (DEVELOPER_MODE) | ||
+# add_subdirectory(PerformanceTests) | ||
+# endif () | ||
+#else () | ||
+# add_subdirectory(PerformanceTests) | ||
+#endif () | ||
|
||
+# if (DEVELOPER_MODE) | ||
+# add_subdirectory(PerformanceTests) | ||
+# endif () | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Print the features list last, for maximum visibility. | ||
diff -aur target-org/webkit/Source/cmake/OptionsJSCOnly.cmake target/webkit/Source/cmake/OptionsJSCOnly.cmake | ||
--- target-org/webkit/Source/cmake/OptionsJSCOnly.cmake 2019-03-26 11:25:17.000000000 +0800 | ||
+++ target/webkit/Source/cmake/OptionsJSCOnly.cmake 2019-03-26 11:28:29.000000000 +0800 | ||
@@ -35,12 +35,7 @@ | ||
set(ENABLE_WEBCORE OFF) | ||
set(ENABLE_WEBKIT_LEGACY OFF) | ||
set(ENABLE_WEBKIT OFF) | ||
- | ||
-if (WIN32) | ||
- set(ENABLE_API_TESTS OFF) | ||
-else () | ||
--- target-org/webkit/Source/cmake/OptionsJSCOnly.cmake 2022-07-09 15:31:32.000000000 +0800 | ||
+++ target/webkit/Source/cmake/OptionsJSCOnly.cmake 2022-07-09 15:29:24.000000000 +0800 | ||
@@ -47,7 +47,7 @@ | ||
if (WIN32) | ||
set(ENABLE_API_TESTS OFF) | ||
else () | ||
- set(ENABLE_API_TESTS ON) | ||
-endif () | ||
+set(ENABLE_API_TESTS OFF) | ||
|
||
+ set(ENABLE_API_TESTS OFF) | ||
endif () | ||
if (WTF_CPU_ARM OR WTF_CPU_MIPS) | ||
SET_AND_EXPOSE_TO_BUILD(USE_CAPSTONE TRUE) | ||
diff -aur target-org/webkit/Source/JavaScriptCore/CMakeLists.txt target/webkit/Source/JavaScriptCore/CMakeLists.txt | ||
--- target-org/webkit/Source/JavaScriptCore/CMakeLists.txt 2017-05-02 21:13:03.000000000 +0200 | ||
+++ target/webkit/Source/JavaScriptCore/CMakeLists.txt 2017-07-11 11:34:55.962374878 +0200 | ||
@@ -1291,7 +1291,7 @@ | ||
) | ||
target_include_directories(LLIntOffsetsExtractor SYSTEM PRIVATE ${JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES}) | ||
|
||
--- target-org/webkit/Source/JavaScriptCore/CMakeLists.txt 2022-07-09 15:31:21.000000000 +0800 | ||
+++ target/webkit/Source/JavaScriptCore/CMakeLists.txt 2022-07-09 15:31:50.000000000 +0800 | ||
@@ -1564,4 +1565,4 @@ | ||
VERBATIM) | ||
endif () | ||
|
||
-add_subdirectory(shell) | ||
+# add_subdirectory(shell) | ||
|
||
WEBKIT_COMPUTE_SOURCES(JavaScriptCore) | ||
WEBKIT_WRAP_SOURCELIST(${JavaScriptCore_SOURCES}) | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
6b1ec06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"link static c++ runtime" may produce some issues. as Android official doc said: "in practice crashes are very common" https://developer.android.com/ndk/guides/cpp-support#sr