Skip to content

Commit 836560a

Browse files
committed
fix: fix the discord social sdk c++ library
1 parent 9db46bf commit 836560a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
#define DISCORDPP_IMPLEMENTATION
3+
#include "./discordpp.h"

subprojects/packagefiles/discord_social_sdk/meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ discord_partner_sdk = c.find_library(
8686
required: true,
8787
)
8888

89-
discord_social_sdk_lib = library(
89+
## NOTE: this is a static library, as it doesn't export the symbols correctly, so on windows the dll would fail to link
90+
discord_social_sdk_lib = static_library(
9091
'discord_social_sdk',
91-
header_files,
92-
cpp_args: ['-DDISCORDPP_IMPLEMENTATION'],
92+
files('impl.cpp'),
9393
include_directories: inc_dirs,
9494
dependencies: discord_partner_sdk,
9595
install: true,

0 commit comments

Comments
 (0)