mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-22 16:30:23 +00:00
Added 32-bit Discord library for Windows
This commit is contained in:
parent
389ea20180
commit
469fa2ff33
4 changed files with 21 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -79,6 +79,7 @@ sm64config.txt
|
|||
!/assets/**/*custom*.bin
|
||||
!/assets/**/*custom*/**/*.bin
|
||||
!/lib/discordsdk/*.*
|
||||
!/lib/discordsdk/x86/*.*
|
||||
|
||||
# visual studio
|
||||
build-windows-visual-studio/.vs
|
||||
|
|
21
Makefile
21
Makefile
|
@ -118,6 +118,21 @@ ifneq ($(TARGET_BITS),0)
|
|||
BITS := -m$(TARGET_BITS)
|
||||
endif
|
||||
|
||||
# Determine default windows target bits
|
||||
|
||||
ifeq ($(WINDOWS_BUILD), 1)
|
||||
ifeq ($(TARGET_BITS), 0)
|
||||
CPU_TYPE := $(firstword $(subst -, ,$(shell $(CC) -dumpmachine)))
|
||||
ifeq ($(CPU_TYPE), x86_64)
|
||||
TARGET_BITS := 64
|
||||
else ifeq ($(CPU_TYPE), i686)
|
||||
TARGET_BITS := 32
|
||||
else ifeq ($(CPU_TYPE), mingw32)
|
||||
TARGET_BITS := 32
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Release (version) flag defs
|
||||
|
||||
ifeq ($(VERSION),jp)
|
||||
|
@ -435,7 +450,11 @@ RPC_LIBS :=
|
|||
DISCORD_SDK_LIBS :=
|
||||
ifeq ($(DISCORD_SDK), 1)
|
||||
ifeq ($(WINDOWS_BUILD),1)
|
||||
DISCORD_SDK_LIBS := lib/discordsdk/discord_game_sdk.dll
|
||||
ifeq ($(TARGET_BITS), 32)
|
||||
DISCORD_SDK_LIBS := lib/discordsdk/x86/discord_game_sdk.dll
|
||||
else
|
||||
DISCORD_SDK_LIBS := lib/discordsdk/discord_game_sdk.dll
|
||||
endif
|
||||
else ifeq ($(OSX_BUILD),1)
|
||||
# needs testing
|
||||
DISCORD_SDK_LIBS := lib/discordsdk/discord_game_sdk.dylib
|
||||
|
|
BIN
lib/discordsdk/x86/discord_game_sdk.dll
Normal file
BIN
lib/discordsdk/x86/discord_game_sdk.dll
Normal file
Binary file not shown.
BIN
lib/discordsdk/x86/discord_game_sdk.dll.lib
Normal file
BIN
lib/discordsdk/x86/discord_game_sdk.dll.lib
Normal file
Binary file not shown.
Loading…
Reference in a new issue