Raspberry Pi Support (#117)
This commit is contained in:
parent
8928f7d207
commit
a40c3cf121
21
Makefile
21
Makefile
|
@ -353,13 +353,18 @@ else
|
|||
endif
|
||||
|
||||
ifeq ($(HEADLESS),1)
|
||||
$(warning Compiling headless)
|
||||
$(info Compiling headless)
|
||||
RENDER_API := DUMMY
|
||||
WINDOW_API := DUMMY
|
||||
AUDIO_API := DUMMY
|
||||
CONTROLLER_API :=
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_RPI),1)
|
||||
$(info Compiling for Raspberry Pi)
|
||||
DISCORD_SDK := 0
|
||||
endif
|
||||
|
||||
# NON_MATCHING - whether to build a matching, identical copy of the ROM
|
||||
# 1 - enable some alternate, more portable code that does not produce a matching ROM
|
||||
# 0 - build a matching ROM
|
||||
|
@ -641,6 +646,8 @@ else ifeq ($(OSX_BUILD),1)
|
|||
# I copied the library and gave it two names.
|
||||
# This really shouldn't be required, but I got tired of trying to do it the "right way"
|
||||
BASS_LIBS := lib/bass/bass.dylib lib/bass/libbass.dylib lib/bass/bass_fx.dylib lib/bass/libbass_fx.dylib
|
||||
else ifeq ($(TARGET_RPI),1)
|
||||
BASS_LIBS := lib/bass/arm/libbass.so lib/bass/arm/libbass_fx.so
|
||||
else
|
||||
BASS_LIBS := lib/bass/libbass.so lib/bass/libbass_fx.so
|
||||
endif
|
||||
|
@ -940,6 +947,8 @@ ifeq ($(WINDOWS_BUILD),1)
|
|||
endif
|
||||
else ifeq ($(OSX_BUILD),1)
|
||||
LDFLAGS += -L./lib/lua/mac/ -l lua53
|
||||
else ifeq ($(TARGET_RPI),1)
|
||||
LDFLAGS += -Llib/lua/linux -l:liblua53-arm.a
|
||||
else
|
||||
LDFLAGS += -Llib/lua/linux -l:liblua53.a
|
||||
endif
|
||||
|
@ -955,10 +964,14 @@ ifeq ($(WINDOWS_BUILD),1)
|
|||
else
|
||||
ifeq ($(DISCORD_SDK),1)
|
||||
LDFLAGS += -ldiscord_game_sdk -lbass -lbass_fx -Wl,-rpath . -Wl,-rpath lib/discordsdk -Wl,-rpath lib/bass
|
||||
else
|
||||
ifeq ($(TARGET_RPI),1)
|
||||
LDFLAGS += -lbass -lbass_fx -Wl,-rpath . -Wl,-rpath lib/bass/arm
|
||||
else
|
||||
LDFLAGS += -lbass -lbass_fx -Wl,-rpath . -Wl,-rpath lib/bass
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Prevent a crash with -sopt
|
||||
export LANG := C
|
||||
|
@ -1034,6 +1047,12 @@ ifeq ($(DEVELOPMENT),1)
|
|||
CFLAGS += -DDEVELOPMENT
|
||||
endif
|
||||
|
||||
# Check for rpi option
|
||||
ifeq ($(TARGET_RPI),1)
|
||||
CC_CHECK_CFLAGS += -DTARGET_RPI
|
||||
CFLAGS += -DTARGET_RPI
|
||||
endif
|
||||
|
||||
# Check for lua profiler option
|
||||
ifeq ($(LUA_PROFILER),1)
|
||||
CC_CHECK_CFLAGS += -DLUA_PROFILER
|
||||
|
|
|
@ -136,13 +136,14 @@ PackData* DynOS_Pack_Add(const SysPath& aPath) {
|
|||
|
||||
auto& _DynosPacks = DynosPacks();
|
||||
s32 index = _DynosPacks.Count();
|
||||
_DynosPacks.Add({
|
||||
const PackData packData = {
|
||||
.mIndex = index,
|
||||
.mPath = aPath,
|
||||
.mGfxData = {},
|
||||
.mTextures = {},
|
||||
.mLoaded = false,
|
||||
});
|
||||
};
|
||||
_DynosPacks.Add(packData);
|
||||
|
||||
PackData* _Pack = &_DynosPacks[index];
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue