getting further with implementing the lib

This commit is contained in:
2023-03-16 19:11:22 +01:00
parent abc3460796
commit 7096e38279
9 changed files with 16 additions and 5 deletions

View File

@@ -13,9 +13,13 @@ env = SConscript("./godot-cpp/SConstruct")
# - LINKFLAGS are for linking flags
# tweak this if you want to use different folders, or more folders, to store your source code in.
env.Append(CPPPATH=["src/"])
sources = Glob("src/*.cpp")
env.Append(CPPPATH=["src/","src/discord-game-sdk-cpp"])
env.Append(LIBPATH=[ "./godot-cpp/bin", "src/discord-game-sdk-cpp/lib"])
env.Append(LIBS=[ "libgodot-cpp{}{}".format(env["suffix"], env["SHLIBSUFFIX"]), "discord_game_sdk"])
sources = Glob("src/*.cpp")
if env["platform"] == "macos":
library = env.SharedLibrary(
"project/addons/discord-rpc-gd/bin/libgd-discordrpc.{}.{}.framework/discord-rpc-gd.{}.{}".format(
@@ -29,4 +33,5 @@ else:
source=sources,
)
Default(library)