You've already forked godot
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:
@@ -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"])
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user