1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

[Web] Rename JavaScript platform to Web.

Also rename export name from "HTML5" to "Web".
This commit is contained in:
Fabio Alessandrelli
2022-08-28 20:27:45 +02:00
parent 223e083d36
commit d20b32186f
120 changed files with 547 additions and 548 deletions

View File

@@ -5,7 +5,7 @@ Import("env_modules")
env_webrtc = env_modules.Clone()
if env["platform"] == "javascript":
if env["platform"] == "web":
# Our JavaScript/C++ interface.
env.AddJSLibraries(["library_godot_webrtc.js"])

View File

@@ -28,7 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#ifdef JAVASCRIPT_ENABLED
#ifdef WEB_ENABLED
#include "webrtc_data_channel_js.h"

View File

@@ -31,7 +31,7 @@
#ifndef WEBRTC_DATA_CHANNEL_JS_H
#define WEBRTC_DATA_CHANNEL_JS_H
#ifdef JAVASCRIPT_ENABLED
#ifdef WEB_ENABLED
#include "webrtc_data_channel.h"
@@ -89,6 +89,6 @@ public:
~WebRTCDataChannelJS();
};
#endif // JAVASCRIPT_ENABLED
#endif // WEB_ENABLED
#endif // WEBRTC_DATA_CHANNEL_JS_H

View File

@@ -30,7 +30,7 @@
#include "webrtc_peer_connection.h"
#ifdef JAVASCRIPT_ENABLED
#ifdef WEB_ENABLED
#include "webrtc_peer_connection_js.h"
#endif
@@ -44,7 +44,7 @@ void WebRTCPeerConnection::set_default_extension(const StringName &p_extension)
}
WebRTCPeerConnection *WebRTCPeerConnection::create() {
#ifdef JAVASCRIPT_ENABLED
#ifdef WEB_ENABLED
return memnew(WebRTCPeerConnectionJS);
#else
if (default_extension == String()) {

View File

@@ -28,7 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#ifdef JAVASCRIPT_ENABLED
#ifdef WEB_ENABLED
#include "webrtc_peer_connection_js.h"

View File

@@ -31,7 +31,7 @@
#ifndef WEBRTC_PEER_CONNECTION_JS_H
#define WEBRTC_PEER_CONNECTION_JS_H
#ifdef JAVASCRIPT_ENABLED
#ifdef WEB_ENABLED
#include "webrtc_peer_connection.h"