Skip to content

Commit 0f9af61

Browse files
committed
added verison information to future built artifacts. fixes #29
1 parent 387fa2f commit 0f9af61

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

patches/jsc.patch

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,3 +247,27 @@ diff -aur target-org/webkit/Source/JavaScriptCore/CMakeLists.txt target/webkit/S
247247
${LLVM_LIBRARIES}
248248
)
249249

250+
diff -aur target-org/webkit/Source/JavaScriptCore/API/JSBase.cpp target/webkit/Source/JavaScriptCore/API/JSBase.cpp
251+
--- target-org/webkit/Source/JavaScriptCore/API/JSBase.cpp 2017-05-05 02:37:52.000000000 +0300
252+
+++ target/webkit/Source/JavaScriptCore/API/JSBase.cpp 2018-10-09 14:38:30.000000000 +0300
253+
@@ -191,3 +191,9 @@
254+
const char iosInstallName60 = 0;
255+
const char iosInstallName61 = 0;
256+
#endif
257+
+
258+
+extern "C" int __android_log_print(int prio, const char *tag, const char *fmt, ...);
259+
+__attribute__((constructor))
260+
+void printVersion() {
261+
+ __android_log_print(3, "JavaScriptCore-Version", "%s", "224109.1.0");
262+
+}
263+
diff -aur target-org/webkit/Source/JavaScriptCore/CMakeLists.txt target/webkit/Source/JavaScriptCore/CMakeLists.txt
264+
--- target-org/webkit/Source/JavaScriptCore/CMakeLists.txt 2017-10-16 15:19:26.000000000 +0300
265+
+++ target/webkit/Source/JavaScriptCore/CMakeLists.txt 2018-10-09 14:44:23.000000000 +0300
266+
@@ -1073,6 +1073,7 @@
267+
WTF${DEBUG_SUFFIX}
268+
${ICU_I18N_LIBRARIES}
269+
${LLVM_LIBRARIES}
270+
+ log
271+
)
272+
273+
set(JavaScriptCore_SCRIPTS_SOURCES_DIR "${JAVASCRIPTCORE_DIR}/Scripts")

0 commit comments

Comments
 (0)