Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test pull request #3

Open
wants to merge 46 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
373bf57
Update .gitlab-ci.yml
inactive123 Jan 10, 2021
1e5e73e
fix buzzing sound in audio
hahnmt Jan 17, 2021
3d38cd1
fix buzzing sound in audio
hahnmt Jan 17, 2021
e8ae39f
fix buzzing sound in audio
hahnmt Jan 17, 2021
0931dcc
Merge pull request #67 from hahnmt/audiofix
inactive123 Jan 17, 2021
2f077a6
(MacOS) Add ARM64 MacOS build
inactive123 Jan 31, 2021
c684af3
Add Ps2 Support
Feb 7, 2021
b406bb8
Merge pull request #69 from fjtrujy/ps2-support
inactive123 Feb 7, 2021
e3fe05b
Add ios-arm64 and tvos-arm64
inactive123 Mar 12, 2021
ddef5f5
Update libco
inactive123 Mar 12, 2021
dba73d2
ios arm32bit doesn't seem to compile yet (ASM error), so
inactive123 Mar 12, 2021
4cb766e
Add ios9 core
inactive123 Mar 16, 2021
129b3f0
Remove unnecessary files in dependencies
inactive123 Apr 9, 2021
7b71185
Cleared code formatting
Apr 10, 2021
3328d29
Added new system options for modern Atari XL/XE with 576 or 1088KB of…
Apr 10, 2021
04068ef
Merge pull request #70 from grzybsonssg/add-modern-xl-xe-systems
inactive123 Apr 10, 2021
e507d5e
Update libretro-core.c
Pecusx Apr 15, 2021
00e7204
Modified buttons names
Pecusx Apr 15, 2021
f87cc90
Better buttons names.
Pecusx Apr 15, 2021
86c87b5
Merge pull request #71 from Pecusx/master
inactive123 Apr 15, 2021
c39dc2a
Third (final??) attemp at a new Virtual Keyboard (#75)
Pecusx May 29, 2021
b59fb7e
Fixed PS3/Psl1ght build (#72)
crystalct May 29, 2021
bcbbf63
add retrofw target (#77)
Poligraf Aug 3, 2021
cd61841
retrofw target remove findstring (#78)
Poligraf Aug 5, 2021
478a8ec
(zlib) Cleanups
inactive123 Oct 3, 2021
beab30e
Add .rom to the list of valid extensions (#81)
phcoder Mar 27, 2022
c2153ab
Attempt to fix Vita build - GIT_VERSION seems not defined for
LibretroAdmin May 27, 2022
9cb2a8b
Update .gitlab-ci.yml
LibretroAdmin Jul 26, 2022
9403328
Don't use C++ linker
LibretroAdmin Jul 26, 2022
408a83d
add target Miyoo
salvacam Mar 16, 2023
86be15d
Merge pull request #86 from salvacam/master
LibretroAdmin Mar 16, 2023
20d59af
Fix first run crashing on Xbox One. Added savestate support. Rewind …
greenchili2 Jul 31, 2023
c50fb61
use static_linking for emscripten platform (#89)
JoeOsborn Nov 1, 2023
410d7bf
added ToadKing libco support that fixes emscripten build (#90)
gitGalu Nov 14, 2023
8bfa3b8
Fix type to enable compilation (#92)
pstef May 18, 2024
50141a6
Attempt to improve types between audio_cb and Sound_Callback (#99)
pstef Jul 25, 2024
cea3f5a
Try to fix ps2 build
LibretroAdmin Sep 5, 2024
e92e6b2
Buildfix #2 for PS2
LibretroAdmin Sep 5, 2024
7215aa2
Add Joy 2B+ support (#103)
jfroco Sep 6, 2024
72884cc
Update Makefile + Update Libco + Change paths from sd:/ to fs:/vol/ex…
Ploggy Sep 6, 2024
173edee
Update Atari 800 carts hashes (#104)
jfroco Sep 13, 2024
39380a6
Add XEGS emulation and Start Core without content (#105)
jfroco Sep 24, 2024
683a37f
Enhanced cart auto-detection and more (#106)
jfroco Oct 1, 2024
648bf37
Fix iOS build (#107)
warmenhoven Oct 6, 2024
cf1df09
ios/tvos: properly set min supported version (#108)
warmenhoven Oct 21, 2024
6a18cb2
Add AltirraOS 3.41 ROMs and disable legacy config (#109)
jfroco Oct 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .bash_history
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
cd /developer
make -f Makefile.libretro platform=wiiu -j3 DEBUG_ALLOW_DIRTY_SUBMODULES=1
make -f Makefile platform=wiiu -j3 DEBUG_ALLOW_DIRTY_SUBMODULES=1
make clean
make -f Makefile platform=wiiu -j3 DEBUG_ALLOW_DIRTY_SUBMODULES=1
exit
71 changes: 66 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ include:
- project: 'libretro-infrastructure/ci-templates'
file: '/linux-i686.yml'

# MacOS ARM 64-bit
- project: 'libretro-infrastructure/ci-templates'
file: '/osx-arm64.yml'

# MacOS 64-bit
- project: 'libretro-infrastructure/ci-templates'
file: '/osx-x64.yml'
Expand All @@ -38,7 +42,11 @@ include:
- project: 'libretro-infrastructure/ci-templates'
file: '/android-jni.yml'

# iOS 9
# iOS
- project: 'libretro-infrastructure/ci-templates'
file: '/ios-arm64.yml'

# iOS (armv7)
- project: 'libretro-infrastructure/ci-templates'
file: '/ios9.yml'

Expand All @@ -62,7 +70,11 @@ include:
# Nintendo Switch
- project: 'libretro-infrastructure/ci-templates'
file: '/libnx-static.yml'


# PlayStation 2
- project: 'libretro-infrastructure/ci-templates'
file: '/ps2-static.yml'

# PlayStation Portable
- project: 'libretro-infrastructure/ci-templates'
file: '/psp-static.yml'
Expand All @@ -71,6 +83,20 @@ include:
- project: 'libretro-infrastructure/ci-templates'
file: '/vita-static.yml'

# tvOS (AppleTV)
- project: 'libretro-infrastructure/ci-templates'
file: '/tvos-arm64.yml'

# OpenDingux
- project: 'libretro-infrastructure/ci-templates'
file: '/dingux-mips32.yml'

# OpenDingux (ARM)
- project: 'libretro-infrastructure/ci-templates'
file: '/dingux-arm32.yml'

#################################### MISC ##################################

# Stages for building
stages:
- build-prepare
Expand Down Expand Up @@ -105,7 +131,13 @@ libretro-build-linux-i686:
# MacOS 64-bit
libretro-build-osx-x64:
extends:
- .libretro-osx-x64-make-default
- .libretro-osx-x64-make-10-7
- .core-defs

# MacOS ARM 64-bit
libretro-build-osx-arm64:
extends:
- .libretro-osx-arm64-make-default
- .core-defs

################################### CELLULAR #################################
Expand Down Expand Up @@ -133,14 +165,31 @@ android-x86:
- .libretro-android-jni-x86
- .core-defs

# iOS 9
libretro-build-ios-9:
# iOS
libretro-build-ios-arm64:
extends:
- .libretro-ios-arm64-make-default
- .core-defs

# iOS (armv7) [iOS 9 and up]
libretro-build-ios9:
extends:
- .libretro-ios9-make-default
- .core-defs

# tvOS
libretro-build-tvos-arm64:
extends:
- .libretro-tvos-arm64-make-default
- .core-defs

################################### CONSOLES #################################
# PlayStation 2
libretro-build-ps2:
extends:
- .libretro-ps2-static-retroarch-master
- .core-defs

# PlayStation Portable
libretro-build-psp:
extends:
Expand Down Expand Up @@ -182,3 +231,15 @@ libretro-build-libnx-aarch64:
extends:
- .libretro-libnx-static-retroarch-master
- .core-defs

# RetroFW
libretro-build-retrofw-mips32:
extends:
- .libretro-retrofw-mips32-make-default
- .core-defs

# Miyoo
libretro-build-miyoo-arm32:
extends:
- .libretro-miyoo-arm32-make-default
- .core-defs
108 changes: 80 additions & 28 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,44 +83,53 @@ else ifeq ($(platform), osx)
fpic := -fPIC
SHARED := -dynamiclib
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
CFLAGS += -DHAVE_POSIX_MEMALIGN
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
ifeq ($(OSX_LT_MAVERICKS),"YES")
fpic += -mmacosx-version-min=10.5
endif

ifeq ($(CROSS_COMPILE),1)
TARGET_RULE = -target $(LIBRETRO_APPLE_PLATFORM) -isysroot $(LIBRETRO_APPLE_ISYSROOT)
CFLAGS += $(TARGET_RULE)
CPPFLAGS += $(TARGET_RULE)
CXXFLAGS += $(TARGET_RULE)
LDFLAGS += $(TARGET_RULE)
endif


# iOS
else ifneq (,$(findstring ios,$(platform)))

TARGET := $(TARGET_NAME)_libretro_ios.dylib
fpic := -fPIC
SHARED := -dynamiclib
CFLAGS += -Wno-error=implicit-function-declaration -DHAVE_POSIX_MEMALIGN
MINVERSION :=
CFLAGS += -Wno-error=implicit-function-declaration -DHAVE_POSIX_MEMALIGN -DIOS

ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
endif

ifeq ($(platform),$(filter $(platform),ios-arm64))
CC = cc -arch arm64 -isysroot $(IOSSDK)
CC_AS = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
else
CC = cc -arch armv7 -isysroot $(IOSSDK)
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
CC = cc -marm -arch armv7 -isysroot $(IOSSDK)
CC_AS = cc -marm -arch armv7 -isysroot $(IOSSDK)
CXX = c++ -marm -arch armv7 -isysroot $(IOSSDK)
endif

CC_AS = perl ./tools/gas-preprocessor.pl $(CC)

ifeq ($(platform),$(filter $(platform),ios9 ios-arm64))
CC += -miphoneos-version-min=8.0
CXX += -miphoneos-version-min=8.0
CC_AS += -miphoneos-version-min=8.0
PLATFORM_DEFINES := -miphoneos-version-min=8.0 -DIOS
MINVERSION = -miphoneos-version-min=8.0
else
CC += -miphoneos-version-min=5.0
CXX += -miphoneos-version-min=5.0
CC_AS += -miphoneos-version-min=5.0
PLATFORM_DEFINES := -miphoneos-version-min=5.0 -DIOS
MINVERSION = -miphoneos-version-min=5.0
endif
PLATFORM_DEFINES := $(MINVERSION) -DIOS
LDFLAGS += $(MINVERSION)

# tvOS
else ifeq ($(platform), tvos-arm64)
Expand All @@ -134,6 +143,15 @@ else ifeq ($(platform), tvos-arm64)
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
endif

CC = cc -arch arm64 -isysroot $(IOSSDK)
CC_AS = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK)

CC_AS = perl ./tools/gas-preprocessor.pl $(CC)
MINVERSION = -mappletvos-version-min=11.0
PLATFORM_DEFINES := $(MINVERSION)
LDFLAGS += $(MINVERSION)

# Theos
else ifeq ($(platform), theos_ios)
DEPLOYMENT_IOSVERSION = 5.0
Expand All @@ -157,19 +175,33 @@ else ifeq ($(platform), qnx)
PLATFORM_DEFINES := -D__BLACKBERRY_QNX__ -fexceptions -marm -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp

# Lightweight PS3 Homebrew SDK
else ifeq ($(platform), psl1ght)
TARGET := $(TARGET_NAME)_libretro_psl1ght.a
CC = $(PS3DEV)/ppu/bin/ppu-gcc$(EXE_EXT)
CC_AS = $(PS3DEV)/ppu/bin/ppu-gcc$(EXE_EXT)
CXX = $(PS3DEV)/ppu/bin/ppu-g++$(EXE_EXT)
AR = $(PS3DEV)/ppu/bin/ppu-ar$(EXE_EXT)
PLATFORM_DEFINES :=
else ifneq (,$(filter $(platform), ps3 psl1ght))
ifeq ($(platform), psl1ght)
PLATFORM_DEFINES := -D__PS3__ -D__PSLIGHT__
else
PLATFORM_DEFINES := -D__PS3__
endif
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(PS3DEV)/ppu/bin/ppu-$(COMMONLV)gcc$(EXE_EXT)
CC_AS = $(PS3DEV)/ppu/bin/ppu-$(COMMONLV)gcc$(EXE_EXT)
CXX = $(PS3DEV)/ppu/bin/ppu-$(COMMONLV)g++$(EXE_EXT)
AR = $(PS3DEV)/ppu/bin/ppu-$(COMMONLV)ar$(EXE_EXT)
STATIC_LINKING = 1
HAVE_COMPAT = 1

# PS2
else ifeq ($(platform), ps2)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = mips64r5900el-ps2-elf-gcc$(EXE_EXT)
AR = mips64r5900el-ps2-elf-ar$(EXE_EXT)
PLATFORM_DEFINES := -DPS2 -D_EE -DABGR1555 -G0 -O3
STATIC_LINKING = 1
HAVE_COMPAT = 1
EXTRA_INCLUDES := -I$(PS2SDK)/ee/include -I$(PS2SDK)/common/include

# PSP
else ifeq ($(platform), psp1)
TARGET := $(TARGET_NAME)_libretro_psp1.a
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = psp-gcc$(EXE_EXT)
AR = psp-ar$(EXE_EXT)
PLATFORM_DEFINES := -DPSP
Expand Down Expand Up @@ -218,16 +250,15 @@ else ifneq (,$(filter $(platform), ngc wii wiiu))
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
PLATFORM_DEFINES += -DGEKKO -mcpu=750 -meabi -mhard-float -DHAVE_STRTOF_L -DHAVE_LOCALE
PLATFORM_DEFINES += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int -D_GNU_SOURCE
STATIC_LINKING = 1
HAVE_COMPAT = 1
ifneq (,$(findstring wiiu,$(platform)))
CFLAGS += -DDEFAULT_CFG_NAME="\"sd:/retroarch/cores/system/atari800.cfg\""
PLATFORM_DEFINES += -DWIIU -DHW_RVL
CFLAGS += -DDEFAULT_CFG_NAME="\"fs:/vol/external01/retroarch/cores/system/atari800.cfg\""
PLATFORM_DEFINES += -DWIIU -DHW_RVL -ffunction-sections -fdata-sections -D__wiiu__ -D__wut__ -D_GNU_SOURCE
else ifneq (,$(findstring wii,$(platform)))
PLATFORM_DEFINES += -DHW_RVL -mrvl
PLATFORM_DEFINES += -DHW_RVL -mrvl -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int -D_GNU_SOURCE
else ifneq (,$(findstring ngc,$(platform)))
PLATFORM_DEFINES += -DHW_DOL -mrvl
PLATFORM_DEFINES += -DHW_DOL -mrvl -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int -D_GNU_SOURCE
endif

# Nintendo Switch (libnx)
Expand Down Expand Up @@ -318,9 +349,31 @@ else ifeq ($(platform), classic_armv8_a35)
LDFLAGS += -static-libgcc -static-libstdc++
#######################################

#RETROFW
else ifeq ($(platform), retrofw)
TARGET := $(TARGET_NAME)_libretro.so
CC = /opt/retrofw-toolchain/usr/bin/mipsel-linux-gcc
CXX = /opt/retrofw-toolchain/usr/bin/mipsel-linux-g++
AR = /opt/retrofw-toolchain/usr/bin/mipsel-linux-ar
fpic := -fPIC
SHARED := -shared -Wl,-version-script=link.T -Wl,-no-undefined
CFLAGS += -fomit-frame-pointer -march=mips32 -mtune=mips32 -mhard-float
PLATFORM_DEFINES += -DRETROFW

#MIYOO
else ifeq ($(platform), miyoo)
TARGET := $(TARGET_NAME)_libretro.so
CC = /opt/miyoo/usr/bin/arm-linux-gcc
CXX = /opt/miyoo/usr/bin/arm-linux-g++
AR = /opt/miyoo/usr/bin/arm-linux-ar
fpic := -fPIC
SHARED := -shared -Wl,-version-script=link.T -Wl,-no-undefined
CFLAGS += -fomit-frame-pointer -march=armv5te -mtune=arm926ej-s

# emscripten
else ifeq ($(platform), emscripten)
TARGET := $(TARGET_NAME)_libretro_emscripten.bc
STATIC_LINKING=1
# cross Windows
else ifeq ($(platform), wincross64)
TARGET := $(TARGET_NAME)_libretro.dll
Expand Down Expand Up @@ -458,8 +511,7 @@ ifeq ($(LOG_PERFORMANCE), 1)
endif


DEFINES := -D__LIBRETRO__ $(PLATFORM_DEFINES) -DINLINE="inline"
DEFINES += -DHAVE_CONFIG_H
DEFINES := -D__LIBRETRO__ $(PLATFORM_DEFINES) -DINLINE="inline" -DHAVE_CONFIG_H

CFLAGS += $(fpic) $(DEFINES)
CFLAGS += -Wall
Expand All @@ -477,7 +529,7 @@ include Makefile.common
HEADERS += $(ROMS:.rom=.h) $(SNAPS:.szx=.h)
OBJECTS += $(SOURCES_C:.c=.o) $(SOURCES_CXX:.cpp=.o)

INCDIRS := $(EXTRA_INCLUDES) $(INCFLAGS)
INCDIRS := $(INCFLAGS) $(EXTRA_INCLUDES)

OBJOUT = -o
LINKOUT = -o
Expand All @@ -487,7 +539,7 @@ ifneq (,$(findstring msvc,$(platform)))
LINKOUT = -out:
LD = link.exe
else ifneq ($(platform),genode)
LD = $(CXX)
LD = $(CC)
endif

%.o: %.cpp
Expand Down
15 changes: 12 additions & 3 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,20 @@ SOURCES_C := \
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
$(LIBRETRO_COMM_DIR)/file/file_path.c \
$(LIBRETRO_COMM_DIR)/file/file_path_io.c \
$(LIBRETRO_COMM_DIR)/streams/memory_stream.c \
$(LIBRETRO_COMM_DIR)/string/stdstring.c \
$(LIBRETRO_COMM_DIR)/time/rtime.c \
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c

SOURCES_C += \
$(CORE_DIR)/libretro/carts_hash.c \
$(CORE_DIR)/libretro/libretro-core.c \
$(CORE_DIR)/libretro/core-mapper.c \
$(CORE_DIR)/libretro/graph.c \
$(CORE_DIR)/libretro/vkbd.c
$(CORE_DIR)/libretro/vkbd.c \
$(CORE_DIR)/libretro/retro_strings.c \
$(CORE_DIR)/libretro/retro_utils.c \
$(CORE_DIR)/libretro/retro_disk_control.c

SOURCES_C += \
$(CORE_DIR)/atari800/src/afile.c \
Expand Down Expand Up @@ -85,10 +90,15 @@ SOURCES_C += \
# $(CORE_DIR)/atari800/src/videomode.c\
# $(CORE_DIR)/atari800/src/pal_blending.c \

SOURCES_C += \
$(CORE_DIR)/atari800/src/roms/altirraos_xl.c \
$(CORE_DIR)/atari800/src/roms/altirraos_800.c \
$(CORE_DIR)/atari800/src/roms/altirra_basic.c \
$(CORE_DIR)/atari800/src/roms/altirra_5200_os.c

ZLIB_INCFLAGS = -I$(DEPS_DIR)/zlib
ZLIB_SOURCES_C = \
$(DEPS_DIR)/zlib/adler32.c \
$(DEPS_DIR)/zlib/compress.c \
$(DEPS_DIR)/zlib/crc32.c \
$(DEPS_DIR)/zlib/deflate.c \
$(DEPS_DIR)/zlib/gzclose.c \
Expand All @@ -99,7 +109,6 @@ ZLIB_SOURCES_C = \
$(DEPS_DIR)/zlib/inflate.c \
$(DEPS_DIR)/zlib/inftrees.c \
$(DEPS_DIR)/zlib/trees.c \
$(DEPS_DIR)/zlib/uncompr.c \
$(DEPS_DIR)/zlib/zutil.c

ifeq ($(SYSTEM_ZLIB), 1)
Expand Down
Loading