FINALLY fixed the build error
This commit is contained in:
11
SConstruct
11
SConstruct
@@ -3,7 +3,7 @@ import os
|
||||
|
||||
env = SConscript("src/lib/godot-cpp/SConstruct")
|
||||
|
||||
env.Append(CPPPATH=["src/"])
|
||||
env.Append(CPPPATH=["src/", "src/lib/discord_social_sdk/include/"])
|
||||
sources = Glob("src/*.cpp")
|
||||
|
||||
if env["platform"] == "macos":
|
||||
@@ -18,8 +18,10 @@ elif env["platform"] == "windows":
|
||||
discord_library = "discord_partner_sdk.dll"
|
||||
libexportfolder = "/windows/"
|
||||
|
||||
folder = "release/"
|
||||
discord_library_target = discord_library
|
||||
if env["target"] == "template_debug":
|
||||
debugsuffix = "_debug"
|
||||
else:
|
||||
debugsuffix = ""
|
||||
|
||||
env.Append(LIBPATH=["src/lib/discord_social_sdk/lib/release/"])
|
||||
env.Append(LIBS=["discord_partner_sdk"])
|
||||
@@ -29,7 +31,8 @@ env.Append(CPPDEFINES=["HOT_RELOAD_ENABLED"])
|
||||
library = env.SharedLibrary(
|
||||
target="project/addons/discord-rpc-gd/bin/"
|
||||
+ libexportfolder
|
||||
+ discord_library,
|
||||
+ "discord_partner_sdk_binding"
|
||||
+ debugsuffix,
|
||||
source=sources,
|
||||
)
|
||||
env.Depends(
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#define DISCORDPP_IMPLEMENTATION
|
||||
#include "discordpp.h"
|
||||
#include "discordgodot.h"
|
||||
#include <godot_cpp/core/class_db.hpp>
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#include "editor_presence.h"
|
||||
#include "discordpp.h"
|
||||
#include <godot_cpp/core/class_db.hpp>
|
||||
#include <godot_cpp/variant/utility_functions.hpp>
|
||||
#include <godot_cpp/classes/scene_tree.hpp>
|
||||
|
Reference in New Issue
Block a user