summaryrefslogtreecommitdiff
path: root/platform/javascript/export/export_plugin.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-05-24 18:12:26 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-06-14 14:09:06 +0200
commit3a2fbd6fae6ea48b01b904f67245db2e6f4f8228 (patch)
tree158ea0f8682e7863f5eeec959780d73b8a37425e /platform/javascript/export/export_plugin.h
parent22a40365c05a0fce917110b87c5d46afdcd1b44a (diff)
[HTML5] Add GDNative+Threads build.
Diffstat (limited to 'platform/javascript/export/export_plugin.h')
-rw-r--r--platform/javascript/export/export_plugin.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/platform/javascript/export/export_plugin.h b/platform/javascript/export/export_plugin.h
index 2d6cbfde38..1aaec5454d 100644
--- a/platform/javascript/export/export_plugin.h
+++ b/platform/javascript/export/export_plugin.h
@@ -61,19 +61,16 @@ class EditorExportPlatformJavaScript : public EditorExportPlatform {
EXPORT_MODE_NORMAL = 0,
EXPORT_MODE_THREADS = 1,
EXPORT_MODE_GDNATIVE = 2,
+ EXPORT_MODE_THREADS_GDNATIVE = 3,
};
String _get_template_name(ExportMode p_mode, bool p_debug) const {
String name = "webassembly";
- switch (p_mode) {
- case EXPORT_MODE_THREADS:
- name += "_threads";
- break;
- case EXPORT_MODE_GDNATIVE:
- name += "_gdnative";
- break;
- default:
- break;
+ if (p_mode & EXPORT_MODE_GDNATIVE) {
+ name += "_gdnative";
+ }
+ if (p_mode & EXPORT_MODE_THREADS) {
+ name += "_threads";
}
if (p_debug) {
name += "_debug.zip";