Skip to content

Commit

Permalink
preliminary libretro port.
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaspider committed Feb 27, 2022
1 parent 7ca2385 commit 54efcb4
Show file tree
Hide file tree
Showing 161 changed files with 16,586 additions and 361 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 3
NamespaceIndentation: All
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/scripts/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ generate_cmake() {

# Generate CMake into ./build
cmake \
-D CMAKE_C_COMPILER_LAUNCHER=ccache \
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_REPLAY_LOADERS=TRUE \
-D CMAKE_BUILD_PO=FALSE \
Expand Down
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,14 @@ oprofile_data/
/pcsx2/windows/VCprojects/GSdx_opengl_debug_hw.txt
/pcsx2/windows/VCprojects/GSdx_opengl_debug_sw.txt
/out/build/x64-Debug (default)

bin/*
build*/
*.cflags
*.config
*.creator
*.creator.user.*
*.cxxflags
*.files
*.includes
*.autosave
57 changes: 57 additions & 0 deletions 3rdparty/baseclasses/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
add_library(baseclasses
amextra.cpp
amfilter.cpp
amvideo.cpp
combase.cpp
ctlutil.cpp
ddmm.cpp
mtype.cpp
outputq.cpp
pstream.cpp
pullpin.cpp
refclock.cpp
renbase.cpp
schedule.cpp
seekpt.cpp
source.cpp
strmctl.cpp
sysclock.cpp
transfrm.cpp
transip.cpp
vtrans.cpp
wxdebug.cpp
wxlist.cpp
wxutil.cpp

amextra.h
amfilter.h
cache.h
combase.h
ctlutil.h
ddmm.h
fourcc.h
measure.h
msgthrd.h
mtype.h
outputq.h
pstream.h
pullpin.h
refclock.h
reftime.h
renbase.h
schedule.h
seekpt.h
source.h
streams.h
strmctl.h
sysclock.h
transfrm.h
transip.h
vtrans.h
wxdebug.h
wxlist.h
wxutil.h
)

target_include_directories(baseclasses PRIVATE .)
target_compile_definitions(baseclasses PRIVATE -DHAVE_PTW32_CONFIG_H -DPTW32_BUILD_INLINED)
111 changes: 111 additions & 0 deletions 3rdparty/libpng/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
if(UNIX)
set(wxUnixSources
src/unix/appunix.cpp
src/unix/dir.cpp
src/unix/dlunix.cpp
src/unix/evtloopunix.cpp
src/unix/epolldispatcher.cpp
src/unix/fdiounix.cpp
src/unix/stackwalk.cpp
src/unix/stdpaths.cpp
src/unix/threadpsx.cpp
src/unix/timerunx.cpp
src/unix/utilsunx.cpp
src/unix/wakeuppipe.cpp
src/common/selectdispatcher.cpp
src/common/fdiodispatcher.cpp
)
endif()
if(WIN32)
set(wxWindowsSources
src/msw/basemsw.cpp
src/msw/crashrpt.cpp
src/msw/dde.cpp
src/msw/debughlp.cpp
src/msw/dir.cpp
src/msw/dlmsw.cpp
src/msw/evtloopconsole.cpp
src/msw/fswatcher.cpp
src/msw/main.cpp
src/msw/mimetype.cpp
src/msw/mslu.cpp
src/msw/power.cpp
src/msw/regconf.cpp
src/msw/registry.cpp
src/msw/snglinst.cpp
src/msw/stackwalk.cpp
src/msw/stdpaths.cpp
src/msw/thread.cpp
src/msw/timer.cpp
src/msw/utils.cpp
src/msw/utilsexc.cpp
src/msw/volume.cpp
)
endif()
add_library(wxwidgets
src/common/appbase.cpp
src/common/arrstr.cpp
src/common/cmdline.cpp
src/common/config.cpp
src/common/convauto.cpp
src/common/datetime.cpp
src/common/datetimefmt.cpp
src/common/dircmn.cpp
src/common/dynarray.cpp
src/common/dynlib.cpp
src/common/event.cpp
src/common/evtloopcmn.cpp
src/common/ffile.cpp
src/common/file.cpp
src/common/fileconf.cpp
src/common/filefn.cpp
src/common/filename.cpp
src/common/fmapbase.cpp
src/common/hashmap.cpp
src/common/init.cpp
src/common/intl.cpp
src/common/languageinfo.cpp
src/common/list.cpp
src/common/log.cpp
src/common/longlong.cpp
src/common/module.cpp
src/common/msgout.cpp
src/common/mstream.cpp
src/common/object.cpp
src/common/platinfo.cpp
src/common/stdpbase.cpp
src/common/strconv.cpp
src/common/stream.cpp
src/common/string.cpp
src/common/stringimpl.cpp
src/common/strvararg.cpp
src/common/sysopt.cpp
src/common/tarstrm.cpp
src/common/textbuf.cpp
src/common/textfile.cpp
src/common/threadinfo.cpp
src/common/time.cpp
src/common/timercmn.cpp
src/common/timerimpl.cpp
src/common/tokenzr.cpp
src/common/translation.cpp
src/common/txtstrm.cpp
src/common/unichar.cpp
src/common/utilscmn.cpp
src/common/wfstream.cpp
src/common/wxcrt.cpp
src/common/xlocale.cpp
src/common/zipstrm.cpp
src/common/zstream.cpp
src/common/any.cpp
src/common/archive.cpp
src/common/base64.cpp
src/common/datstrm.cpp
src/common/encconv.cpp
src/common/extended.c
src/common/hash.cpp
src/common/process.cpp
src/common/variant.cpp
${wxUnixSources}
${wxWindowsSources}
)
14 changes: 14 additions & 0 deletions 3rdparty/pthreads4w/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
add_library(pthread
pthread.c
config.h
context.h
implement.h
need_errno.h
include/pthread.h
include/sched.h
include/semaphore.h
)

target_include_directories(pthread PRIVATE . include)
#target_compile_definitions(pthread PRIVATE -DHAVE_PTW32_CONFIG_H -DPTW32_BUILD_INLINED)

112 changes: 112 additions & 0 deletions 3rdparty/wxwidgets3.0/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
if(UNIX)
set(wxUnixSources
src/unix/appunix.cpp
src/unix/dir.cpp
src/unix/dlunix.cpp
src/unix/evtloopunix.cpp
src/unix/epolldispatcher.cpp
src/unix/fdiounix.cpp
src/unix/stackwalk.cpp
src/unix/stdpaths.cpp
src/unix/threadpsx.cpp
src/unix/timerunx.cpp
src/unix/utilsunx.cpp
src/unix/wakeuppipe.cpp
src/common/selectdispatcher.cpp
src/common/fdiodispatcher.cpp
)
endif()
if(WIN32)
set(wxWindowsSources
src/msw/basemsw.cpp
src/msw/crashrpt.cpp
src/msw/dde.cpp
src/msw/debughlp.cpp
src/msw/dir.cpp
src/msw/dlmsw.cpp
src/msw/evtloopconsole.cpp
src/msw/fswatcher.cpp
src/msw/main.cpp
src/msw/mimetype.cpp
src/msw/mslu.cpp
src/msw/power.cpp
src/msw/regconf.cpp
src/msw/registry.cpp
src/msw/snglinst.cpp
src/msw/stackwalk.cpp
src/msw/stdpaths.cpp
src/msw/thread.cpp
src/msw/timer.cpp
src/msw/utils.cpp
src/msw/utilsexc.cpp
src/msw/volume.cpp
src/common/ipcbase.cpp
)
endif()
add_library(wxwidgets
src/common/appbase.cpp
src/common/arrstr.cpp
src/common/cmdline.cpp
src/common/config.cpp
src/common/convauto.cpp
src/common/datetime.cpp
src/common/datetimefmt.cpp
src/common/dircmn.cpp
src/common/dynarray.cpp
src/common/dynlib.cpp
src/common/event.cpp
src/common/evtloopcmn.cpp
src/common/ffile.cpp
src/common/file.cpp
src/common/fileconf.cpp
src/common/filefn.cpp
src/common/filename.cpp
src/common/fmapbase.cpp
src/common/hashmap.cpp
src/common/init.cpp
src/common/intl.cpp
src/common/languageinfo.cpp
src/common/list.cpp
src/common/log.cpp
src/common/longlong.cpp
src/common/module.cpp
src/common/msgout.cpp
src/common/mstream.cpp
src/common/object.cpp
src/common/platinfo.cpp
src/common/stdpbase.cpp
src/common/strconv.cpp
src/common/stream.cpp
src/common/string.cpp
src/common/stringimpl.cpp
src/common/strvararg.cpp
src/common/sysopt.cpp
src/common/tarstrm.cpp
src/common/textbuf.cpp
src/common/textfile.cpp
src/common/threadinfo.cpp
src/common/time.cpp
src/common/timercmn.cpp
src/common/timerimpl.cpp
src/common/tokenzr.cpp
src/common/translation.cpp
src/common/txtstrm.cpp
src/common/unichar.cpp
src/common/utilscmn.cpp
src/common/wfstream.cpp
src/common/wxcrt.cpp
src/common/xlocale.cpp
src/common/zipstrm.cpp
src/common/zstream.cpp
src/common/any.cpp
src/common/archive.cpp
src/common/base64.cpp
src/common/datstrm.cpp
src/common/encconv.cpp
src/common/extended.c
src/common/hash.cpp
src/common/process.cpp
src/common/variant.cpp
${wxUnixSources}
${wxWindowsSources}
)
24 changes: 24 additions & 0 deletions 3rdparty/wxwidgets3.0/UsewxWidgets.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
set(wxWidgets_FOUND 1)
set(wxWidgets_DIR ${CMAKE_SOURCE_DIR}/3rdparty/wxwidgets3.0)
set(wxWidgets_INCLUDE_DIRS ${wxWidgets_DIR}/include ${wxWidgets_DIR}/include/nogui)
set(wxWidgets_LIBRARIES wxwidgets)
set(wxWidgets_CXX_FLAGS)

include_directories(SYSTEM ${wxWidgets_INCLUDE_DIRS})
add_definitions(-DwxUSE_GUI=0 -D_FILE_OFFSET_BITS=64)
if(UNIX)
add_definitions(-DwxUSE_UNIX -D__UNIX__)
if(APPLE)
add_definitions(-D__DARWIN__)
else()
add_definitions(-D__LINUX__)
endif()
elseif(WIN32)
add_definitions(-D__WINDOWS__)
if(MINGW)
add_definitions(-D__GNUWIN32__)
endif()
endif()



Loading

0 comments on commit 54efcb4

Please sign in to comment.