mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-04 00:05:25 +08:00
qt 6.6.0 clean
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
defineReplace(qtEmccRecommendedVersion) {
|
||||
return (3.1.25)
|
||||
return (3.1.37)
|
||||
}
|
||||
|
||||
defineReplace(qtSystemEmccVersion) {
|
||||
|
@ -9,9 +9,9 @@ exists($$QMAKE_QT_CONFIG) {
|
||||
|
||||
## qmake puts a space if done otherwise
|
||||
!isEmpty(QT_WASM_EXTRA_EXPORTED_METHODS): {
|
||||
EXPORTED_METHODS = UTF16ToString,stringToUTF16,JSEvents,specialHTMLTargets,$$QT_WASM_EXTRA_EXPORTED_METHODS
|
||||
EXPORTED_METHODS = UTF16ToString,stringToUTF16,JSEvents,specialHTMLTargets,FS,$$QT_WASM_EXTRA_EXPORTED_METHODS
|
||||
} else {
|
||||
EXPORTED_METHODS = UTF16ToString,stringToUTF16,JSEvents,specialHTMLTargets
|
||||
EXPORTED_METHODS = UTF16ToString,stringToUTF16,JSEvents,specialHTMLTargets,FS
|
||||
}
|
||||
EMCC_LFLAGS += -s EXPORTED_RUNTIME_METHODS=$$EXPORTED_METHODS
|
||||
|
||||
@ -47,6 +47,17 @@ exists($$QMAKE_QT_CONFIG) {
|
||||
QMAKE_LFLAGS_DEBUG += -msimd128 -msse -msse2
|
||||
}
|
||||
|
||||
qtConfig(shared) {
|
||||
contains(TEMPLATE, .*app) {
|
||||
EMCC_MODULE_FLAGS = -s MAIN_MODULE=1
|
||||
}
|
||||
contains(TEMPLATE, .*lib):!static: {
|
||||
EMCC_MODULE_FLAGS = -s SIDE_MODULE=1
|
||||
}
|
||||
EMCC_CFLAGS += $$EMCC_MODULE_FLAGS
|
||||
EMCC_LFLAGS += $$EMCC_MODULE_FLAGS
|
||||
}
|
||||
|
||||
QMAKE_LFLAGS += $$EMCC_LFLAGS
|
||||
QMAKE_LFLAGS_DEBUG += $$EMCC_LFLAGS
|
||||
QMAKE_CFLAGS += $$EMCC_CFLAGS
|
||||
@ -81,11 +92,16 @@ contains(TEMPLATE, .*app) {
|
||||
WASM_PLUGIN_PATH = $$PWD/../../../src/plugins/platforms/wasm
|
||||
}
|
||||
|
||||
PRELOAD = ""
|
||||
shared {
|
||||
PRELOAD = "preload:\ ['qt_plugins.json',\ 'qt_qml_imports.json'],"
|
||||
}
|
||||
|
||||
# Copy/Generate main .html file (e.g. myapp.html) from the webassembly_shell.html by
|
||||
# replacing the app name placeholder with the actual app name.
|
||||
apphtml.name = application main html file
|
||||
apphtml.output = $$DESTDIR/$$TARGET_HTML
|
||||
apphtml.commands = $$QMAKE_STREAM_EDITOR -e s/@APPNAME@/$$TARGET_BASE/g $$WASM_PLUGIN_PATH/wasm_shell.html > $$DESTDIR/$$TARGET_HTML
|
||||
apphtml.commands = $$QMAKE_STREAM_EDITOR -e s/@APPNAME@/$$TARGET_BASE/g -e s/@PRELOAD@/$$PRELOAD/g $$WASM_PLUGIN_PATH/wasm_shell.html > $$DESTDIR/$$TARGET_HTML
|
||||
apphtml.input = $$WASM_PLUGIN_PATH/wasm_shell.html
|
||||
apphtml.depends = $$apphtml.input
|
||||
QMAKE_EXTRA_COMPILERS += apphtml
|
||||
|
Reference in New Issue
Block a user