summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@gmail.com>2020-09-03 18:29:41 +1000
committerLorn Potter <lorn.potter@gmail.com>2021-04-01 19:23:42 +1000
commit4972fdb350fe79e18b0413e74028cd9b9803f96b (patch)
tree1db1aed90773da8b543576819ea8a156e3748bb2 /src/gui
parent5bf4133c1752c8d38afaac0064a0726d6036e52c (diff)
wasm: add cmake build support
A few configure defines get changed: QMAKE_WASM_PTHREAD_POOL_SIZE is now QT_WASM_PTHREAD_POOL_SIZE QMAKE_WASM_TOTAL_MEMORY is now QT_WASM_INITIAL_MEMORY QMAKE_WASM_SOURCE_MAP_BASE is now QT_WASM_SOURCE_MAP_BASE device-option EMSCRIPTEN_ASYNCIFY=1 is QT_EMSCRIPTEN_ASYNCIFY=1 To create source maps for debugging. use device-option QT_WASM_SOURCE_MAP=1 Task-number: QTBUG-78647 Change-Id: If9f30cd7fb408c386d6d69b5f7b1beecf1ab44b5 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/configure.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake
index 0e2482e380..449bd838b7 100644
--- a/src/gui/configure.cmake
+++ b/src/gui/configure.cmake
@@ -389,10 +389,19 @@ ioctl(fd, FBIOGET_VSCREENINFO, &vinfo);
")
# opengles3
+# special case begin
+if(WASM)
+ set(extra_compiler_options "-s FULL_ES3=1")
+endif()
+# special case end
+
qt_config_compile_test(opengles3
LABEL "OpenGL ES 3.0"
LIBRARIES
GLESv2::GLESv2
+# special case begin
+ COMPILE_OPTIONS ${extra_compiler_options}
+# special case end
CODE
"#ifdef __APPLE__
# include <OpenGLES/ES3/gl.h>