From 29e01d9b888dd5a4313c1deab2ec38fe5c53de84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 5 Jun 2019 21:47:06 +0200 Subject: [PATCH] [wip] enable minimal runtime for the test app --- src/Magnum/Platform/Test/CMakeLists.txt | 2 ++ .../Test/EmscriptenApplicationTest.html | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Platform/Test/CMakeLists.txt b/src/Magnum/Platform/Test/CMakeLists.txt index a8394d458..5ccfb8cee 100644 --- a/src/Magnum/Platform/Test/CMakeLists.txt +++ b/src/Magnum/Platform/Test/CMakeLists.txt @@ -25,6 +25,8 @@ set(ADDITIONAL_WEB_FILES "") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lGL -s MINIMAL_RUNTIME=2 -s IGNORE_CLOSURE_COMPILER_ERRORS=1 -s ENVIRONMENT=web") + if(WITH_ANDROIDAPPLICATION) add_library(PlatformAndroidApplicationTest SHARED AndroidApplicationTest.cpp) target_link_libraries(PlatformAndroidApplicationTest PRIVATE MagnumAndroidApplication) diff --git a/src/Magnum/Platform/Test/EmscriptenApplicationTest.html b/src/Magnum/Platform/Test/EmscriptenApplicationTest.html index f4e616e0a..abdc71516 100644 --- a/src/Magnum/Platform/Test/EmscriptenApplicationTest.html +++ b/src/Magnum/Platform/Test/EmscriptenApplicationTest.html @@ -14,8 +14,25 @@
Initialization...
-