Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 220c74c

Browse files
committed
Merge branch 'alpha' into fix_macos_building
2 parents 366829c + 49046ae commit 220c74c

File tree

168 files changed

+3841
-90
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+3841
-90
lines changed

CMakeLists.txt

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ set(d_core ${reicast_core_path})
5050
message(${d_core})
5151

5252
file(GLOB_RECURSE hw_SRCS ${d_core}/hw/*.cpp ${d_core}/hw/*.h)
53+
file(GLOB_RECURSE lxdream_SRCS ${d_core}/gpl/lxdream/*.cpp ${d_core}/gpl/lxdream/*.h)
5354

5455
file(GLOB cfg_SRCS ${d_core}/cfg/*.cpp ${d_core}/cfg/*.h)
5556
file(GLOB rend_SRCS ${d_core}/rend/*.cpp ${d_core}/rend/*.h)
@@ -77,6 +78,7 @@ if(${HOST_OS} EQUAL ${OS_WINDOWS})
7778
endif()
7879

7980
set(core_SRCS
81+
${lxdream_SRCS}
8082
${hw_SRCS}
8183
${cfg_SRCS}
8284
${rend_SRCS}
@@ -147,9 +149,11 @@ endif()
147149
### deps.cmake #################################################################################
148150

149151
set(d_deps ${reicast_core_path}/deps)
152+
set(gpl_deps ${reicast_core_path}/gpl/deps)
153+
150154
include_directories ("${d_deps}")
151-
include_directories ("${d_deps}/picotcp/include")
152-
include_directories ("${d_deps}/picotcp/modules")
155+
include_directories ("${gpl_deps}/picotcp/include")
156+
include_directories ("${gpl_deps}/picotcp/modules")
153157

154158
file(GLOB xbyak_H ${d_deps}/xbyak/*.h) # include headers into cmake target/project view
155159

@@ -166,8 +170,8 @@ file(GLOB crypt_SRCS ${d_deps}/crypto/*.cpp)
166170
file(GLOB imgui_SRCS ${d_deps}/imgui/*.cpp)
167171
file(GLOB lua_SRCS ${d_deps}/lua/*.c)
168172

169-
file(GLOB picoModS ${d_deps}/picotcp/modules/*.c)
170-
file(GLOB picoStkS ${d_deps}/picotcp/stack/*.c)
173+
file(GLOB picoModS ${gpl_deps}/picotcp/modules/*.c)
174+
file(GLOB picoStkS ${gpl_deps}/picotcp/stack/*.c)
171175
set(pico_SRCS ${picoModS} ${picoStkS})
172176

173177
set(deps_SRCS
@@ -179,7 +183,7 @@ set(deps_SRCS
179183
${crypt_SRCS}
180184
${imgui_SRCS}
181185
${lua_SRCS}
182-
${d_deps}/xbrz/xbrz.cpp
186+
${gpl_deps}/xbrz/xbrz.cpp
183187
${d_deps}/xxhash/xxhash.c
184188
${d_deps}/cdipsr/cdipsr.cpp
185189
${d_deps}/coreio/coreio.cpp
@@ -273,6 +277,9 @@ add_executable(${TNAME}${binSuffix} ${reicast_SRCS} ${deps_SRCS})
273277
target_compile_features(${TNAME}${binSuffix} PRIVATE cxx_std_14)
274278

275279
if(${HOST_OS} EQUAL ${OS_LINUX})
280+
# needed for opentty
281+
target_link_libraries(${TNAME} -lutil)
282+
276283
find_package(ALSA)
277284
if(ALSA_FOUND)
278285
target_compile_definitions(${TNAME} PUBLIC USE_ALSA)

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
By reading this license agreement you commit to be a decent human being in
2+
all your daily interactions for the rest of your life.
3+
4+
<><<<<< <><<< <><< ><> <>< >><> >>><> >>>>><>
5+
6+
Reicast is under the
7+
18
BSD 3-Clause License
29

310
Copyright (c) 2003-2020, Reicast Team and Contributors

README.md

Lines changed: 3 additions & 1 deletion

libswirl/build.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,20 @@
172172
#define LICENSE_LGPL 0x50000002
173173
#define LICENSE_GPL 0x50000003
174174

175+
//FEAT_TA
176+
#define TA_HLE 0x60000001
177+
#define TA_LLE 0x60000002
178+
175179
//automatic
176180

177181
#if !defined(TARGET_LICENSE)
178182
#define TARGET_LICENSE LICENSE_GPL
179183
#endif
180184

185+
#if !defined(FEAT_TA)
186+
#define FEAT_TA TA_HLE
187+
#endif
188+
181189
#ifndef CMAKE_BUILD
182190

183191
#if defined(_WIN32) && !defined(TARGET_WIN86) && !defined(TARGET_WIN64)
@@ -316,6 +324,10 @@
316324
#define FEAT_HAS_SOFTREND BUILD_COMPILER == COMPILER_VC //GCC wants us to enable sse4 globaly to enable intrins
317325
#endif
318326

327+
#ifndef FEAT_HAS_SERIAL_TTY
328+
#define FEAT_HAS_SERIAL_TTY (HOST_OS == OS_LINUX && !defined(_ANDROID))
329+
#endif
330+
319331
//Depricated build configs
320332
#ifdef HOST_NO_REC
321333
#error Dont use HOST_NO_REC

libswirl/core.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ VERSION_HEADER := $(RZDCY_SRC_DIR)/version.h
1010
RZDCY_MODULES := cfg/ hw/arm7/ hw/aica/ hw/holly/ hw/ hw/gdrom/ hw/maple/ \
1111
hw/mem/ hw/pvr/ hw/sh4/ hw/sh4/interpr/ hw/sh4/modules/ plugins/ profiler/ oslib/ \
1212
hw/extdev/ hw/arm/ hw/naomi/ imgread/ ./ deps/coreio/ deps/zlib/ deps/chdr/ deps/crypto/ \
13-
deps/libelf/ deps/cdipsr/ arm_emitter/ rend/ reios/ deps/libpng/ deps/xbrz/ \
13+
deps/libelf/ deps/cdipsr/ arm_emitter/ rend/ reios/ deps/libpng/ gpl/deps/xbrz/ \
1414
deps/xxhash/ deps/libzip/ deps/imgui/ archive/ input/ utils/ utils/glwrap/ gui/
1515

1616
ifdef SCRIPTING
@@ -117,8 +117,8 @@ RZDCY_CFLAGS += -I$(RZDCY_SRC_DIR) -I$(RZDCY_SRC_DIR)/rend/gles -I$(RZDCY_SRC_DI
117117
-I$(RZDCY_SRC_DIR)/deps/vixl -I$(RZDCY_SRC_DIR)/khronos
118118

119119
ifdef USE_MODEM
120-
RZDCY_CFLAGS += -DENABLE_MODEM -I$(RZDCY_SRC_DIR)/deps/picotcp/include -I$(RZDCY_SRC_DIR)/deps/picotcp/modules
121-
RZDCY_MODULES += hw/modem/ deps/picotcp/modules/ deps/picotcp/stack/
120+
RZDCY_CFLAGS += -DENABLE_MODEM -I$(RZDCY_SRC_DIR)/gpl/deps/picotcp/include -I$(RZDCY_SRC_DIR)/gpl/deps/picotcp/modules
121+
RZDCY_MODULES += hw/modem/ gpl/deps/picotcp/modules/ gpl/deps/picotcp/stack/
122122
endif
123123

124124
ifdef NO_REC

0 commit comments

Comments
 (0)