mirror of
https://github.com/godotengine/webrtc-native.git
synced 2026-01-05 02:10:04 +03:00
Compare commits
4 Commits
1.0.0-alph
...
1.0.0-alph
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e41d2903ad | ||
|
|
f315912d85 | ||
|
|
62ab2e59f8 | ||
|
|
a2fc27f646 |
@@ -67,6 +67,10 @@ else:
|
||||
})
|
||||
env = env.Clone()
|
||||
|
||||
# Patch mingw SHLIBSUFFIX.
|
||||
if env["platform"] == "windows" and env["use_mingw"]:
|
||||
env["SHLIBSUFFIX"] = ".dll"
|
||||
|
||||
opts.Update(env)
|
||||
|
||||
target = env["target"]
|
||||
|
||||
@@ -63,6 +63,9 @@ def ssl_action(target, source, env):
|
||||
"--prefix=%s" % install_dir,
|
||||
"--openssldir=%s" % install_dir,
|
||||
]
|
||||
if env["target"] == "debug":
|
||||
args.append("-d")
|
||||
|
||||
if env["platform"] != "windows":
|
||||
args.append("no-shared") # Windows "app" doesn't like static-only builds.
|
||||
if env["platform"] == "linux":
|
||||
@@ -160,6 +163,7 @@ def rtc_action(target, source, env):
|
||||
"-DOPENSSL_INCLUDE_DIR=%s" % get_ssl_include_dir(env),
|
||||
"-DOPENSSL_SSL_LIBRARY=%s/libssl.a" % get_ssl_build_dir(env),
|
||||
"-DOPENSSL_CRYPTO_LIBRARY=%s/libcrypto.a" % get_ssl_build_dir(env),
|
||||
"-DCMAKE_BUILD_TYPE=%s" % ("Release" if env["target"] == "release" else "Debug"),
|
||||
]
|
||||
if env["platform"] == "android":
|
||||
abi = {
|
||||
|
||||
@@ -37,6 +37,12 @@
|
||||
#include "WebRTCLibDataChannel.hpp"
|
||||
#include "WebRTCLibPeerConnection.hpp"
|
||||
|
||||
#ifdef _WIN32
|
||||
// See upstream godot-cpp GH-771.
|
||||
#undef GDN_EXPORT
|
||||
#define GDN_EXPORT __declspec(dllexport)
|
||||
#endif
|
||||
|
||||
using namespace godot;
|
||||
using namespace godot_webrtc;
|
||||
|
||||
|
||||
@@ -34,6 +34,12 @@
|
||||
#include <gdnative_api_struct.gen.h>
|
||||
#include <net/godot_net.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
// See upstream godot GH-62173.
|
||||
#undef GDN_EXPORT
|
||||
#define GDN_EXPORT __declspec(dllexport)
|
||||
#endif
|
||||
|
||||
/* Singleton */
|
||||
static bool _singleton = false;
|
||||
static const godot_object *_singleton_lib = NULL;
|
||||
|
||||
Reference in New Issue
Block a user