File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
webf/android/src/main/java/com/openwebf/webf Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -364,6 +364,20 @@ if (APPLE OR WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "Linux")
364364 include(./test/test.cmake)
365365endif ()
366366
367+ # Android integration tests also need the test bridge exports, but they do not
368+ # build the desktop-only unit test targets from test.cmake.
369+ if (IS_ANDROID AND ENABLE_TEST)
370+ add_compile_definitions(IS_TEST=true)
371+ target_sources(webf PRIVATE
372+ include/webf_bridge_test.h
373+ webf_bridge_test.cc
374+ ./test/test_framework_polyfill.c
375+ test/webf_test_context.cc
376+ test/webf_test_context.h
377+ )
378+ target_include_directories(webf PRIVATE ./test)
379+ endif ()
380+
367381#if(CMAKE_SYSTEM_NAME MATCHES " MSYS " OR MINGW)
368382# install(TARGETS webf
369383# LIBRARY DESTINATION lib # For Unix-like OSes
Original file line number Diff line number Diff line change @@ -47,8 +47,6 @@ private static void loadLibrary() {
4747 }
4848 // Loads `libwebf.so`.
4949 System .loadLibrary ("webf" );
50- // Loads `libquickjs.so`.
51- System .loadLibrary ("quickjs" );
5250 isLibraryLoaded = true ;
5351 }
5452
You can’t perform that action at this time.
0 commit comments