Merge pull request #8 from loathingKernel/travis

Add Travis CI support for Linux and OS X
This commit is contained in:
iCatButler 2018-04-27 12:18:49 +01:00 committed by GitHub
commit 7936d466c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
385 changed files with 70 additions and 50 deletions

View File

@ -1,28 +1,29 @@
os: linux
dist: trusty
language: c
compiler:
- clang
- gcc
addons:
apt:
sources:
- ubuntu-sdk-team
packages:
- intltool
- libavformat-dev
- libavcodec-dev
- libavutil-dev
- libgtk-3-dev
- libsdl2-dev
- libxtst-dev
- libxml2-utils
script:
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE='Release' -DCMAKE_INSTALL_PREFIX='/usr' -DCMAKE_INSTALL_LIBDIR='/usr/lib'
- make -j1
matrix:
include:
- os: linux
language: c
sudo: required
compiler: gcc
services: docker
before_install:
- docker pull ubuntu:17.10
script:
- docker build -f Dockerfile.gcc .
- os: linux
language: c
sudo: required
compiler: clang
services: docker
before_install:
- docker pull ubuntu:17.10
script:
- docker build -f Dockerfile.clang .
- os: osx
osx_image: xcode7.3
before_install:
- curl -O -L https://www.libsdl.org/release/SDL2-2.0.8.dmg
- hdiutil attach SDL2-2.0.8.dmg
- sudo cp -a /Volumes/SDL2/SDL2.framework /Library/Frameworks/
language: objective-c
xcode_project: macosx/Pcsxr.xcodeproj
xcode_scheme: PCSXR

View File

@ -27,7 +27,8 @@ add_definitions(-DENABLE_NLS -DGETTEXT_PACKAGE="pcsxr")
#WARNING! this is required for dynarec to work!
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-pie")
if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
list(APPEND COMPILER_IDS "GNU" "Clang")
if(CMAKE_C_COMPILER_ID IN_LIST COMPILER_IDS)
CHECK_C_COMPILER_FLAG("-no-pie" NO_PIE_UPSTREAM)
if(NO_PIE_UPSTREAM)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie")

0
ChangeLog Executable file → Normal file
View File

12
Dockerfile.clang Normal file
View File

@ -0,0 +1,12 @@
FROM ubuntu:17.10
RUN apt-get update -qq
RUN apt-get install -qq -y libtool intltool clang automake autoconf cmake
RUN apt-get install -qq -y libavformat-dev libavcodec-dev libavutil-dev libgtk-3-dev libsdl2-dev libxtst-dev libxml2-utils libxml2-dev libarchive-dev libcdio-dev
RUN mkdir -p /src/build/
WORKDIR /src/build/
COPY . /src/
RUN cmake .. -DCMAKE_C_COMPILER='clang' -DCMAKE_CXX_COMPILER='clang++' -DCMAKE_BUILD_TYPE='Release' -DCMAKE_INSTALL_PREFIX='/usr' -DCMAKE_INSTALL_LIBDIR='/usr/lib' -DSND_BACKEND='sdl' -DENABLE_CCDDA='ON' -DUSE_LIBARCHIVE='ON' -DUSE_LIBCDIO='ON'
RUN make

12
Dockerfile.gcc Normal file
View File

@ -0,0 +1,12 @@
FROM ubuntu:17.10
RUN apt-get update -qq
RUN apt-get install -qq -y libtool intltool gcc automake autoconf cmake
RUN apt-get install -qq -y libavformat-dev libavcodec-dev libavutil-dev libgtk-3-dev libsdl2-dev libxtst-dev libxml2-utils libxml2-dev libarchive-dev libcdio-dev
RUN mkdir -p /src/build/
WORKDIR /src/build/
COPY . /src/
RUN cmake .. -DCMAKE_C_COMPILER='gcc' -DCMAKE_CXX_COMPILER='g++' -DCMAKE_BUILD_TYPE='Release' -DCMAKE_INSTALL_PREFIX='/usr' -DCMAKE_INSTALL_LIBDIR='/usr/lib' -DSND_BACKEND='sdl' -DENABLE_CCDDA='ON' -DUSE_LIBARCHIVE='ON' -DUSE_LIBCDIO='ON'
RUN make

0
gui/AboutDlg.c Executable file → Normal file
View File

0
gui/AboutDlg.h Executable file → Normal file
View File

View File

@ -1,9 +1,8 @@
message(STATUS "* Configuring gui")
message(STATUS "* Configuring UI")
include(GlibCompileResourcesSupport)
#deps
find_package(GLib REQUIRED)
if(NOT GLib_FOUND)
message(FATAL_ERROR "GLIB2 library not found")

0
gui/Cheat.c Executable file → Normal file
View File

0
gui/Cheat.h Executable file → Normal file
View File

0
gui/ConfDlg.c Executable file → Normal file
View File

0
gui/ConfDlg.h Executable file → Normal file
View File

0
gui/DebugMemory.c Executable file → Normal file
View File

0
gui/DebugMemory.h Executable file → Normal file
View File

0
gui/GtkGui.c Executable file → Normal file
View File

0
gui/Linux.h Executable file → Normal file
View File

0
gui/LnxMain.c Executable file → Normal file
View File

0
gui/MemcardDlg.c Executable file → Normal file
View File

0
gui/MemcardDlg.h Executable file → Normal file
View File

0
gui/Plugin.c Executable file → Normal file
View File

0
gui/nopic.h Executable file → Normal file
View File

View File

@ -1,4 +1,4 @@
message(STATUS "* Configuring langs")
message(STATUS "* Configuring translations")
include(Gettext)
#find_package(LibArchive REQUIRED)

View File

@ -1,4 +1,4 @@
message(STATUS "* Configuring core")
message(STATUS "* Configuring Core")
set(DYNAREC "auto" CACHE STRING "Build dynarec for arch.")
set_property(CACHE DYNAREC PROPERTY STRINGS auto x86_64 x86 ppc no)

0
libpcsxcore/cdriso.c Executable file → Normal file
View File

0
libpcsxcore/cdriso.h Executable file → Normal file
View File

0
libpcsxcore/cdrom.c Executable file → Normal file
View File

0
libpcsxcore/cdrom.h Executable file → Normal file
View File

0
libpcsxcore/cheat.c Executable file → Normal file
View File

0
libpcsxcore/cheat.h Executable file → Normal file
View File

0
libpcsxcore/coff.h Executable file → Normal file
View File

0
libpcsxcore/debug.c Executable file → Normal file
View File

0
libpcsxcore/debug.h Executable file → Normal file
View File

0
libpcsxcore/decode_xa.c Executable file → Normal file
View File

0
libpcsxcore/decode_xa.h Executable file → Normal file
View File

0
libpcsxcore/disr3000a.c Executable file → Normal file
View File

0
libpcsxcore/gpu.c Executable file → Normal file
View File

0
libpcsxcore/gpu.h Executable file → Normal file
View File

0
libpcsxcore/gte.c Executable file → Normal file
View File

0
libpcsxcore/gte.h Executable file → Normal file
View File

0
libpcsxcore/ix86/iGte.h Executable file → Normal file
View File

0
libpcsxcore/ix86/iR3000A.c Executable file → Normal file
View File

0
libpcsxcore/ix86/ix86.c Executable file → Normal file
View File

0
libpcsxcore/ix86/ix86.h Executable file → Normal file
View File

0
libpcsxcore/ix86_64/iGte.h Executable file → Normal file
View File

0
libpcsxcore/ix86_64/iR3000A-64.c Executable file → Normal file
View File

0
libpcsxcore/ix86_64/ix86-64.c Executable file → Normal file
View File

0
libpcsxcore/ix86_64/ix86-64.h Executable file → Normal file
View File

0
libpcsxcore/ix86_64/ix86_3dnow.c Executable file → Normal file
View File

0
libpcsxcore/ix86_64/ix86_cpudetect.c Executable file → Normal file
View File

0
libpcsxcore/ix86_64/ix86_fpu.c Executable file → Normal file
View File

0
libpcsxcore/ix86_64/ix86_mmx.c Executable file → Normal file
View File

0
libpcsxcore/ix86_64/ix86_sse.c Executable file → Normal file
View File

0
libpcsxcore/mdec.c Executable file → Normal file
View File

0
libpcsxcore/mdec.h Executable file → Normal file
View File

0
libpcsxcore/misc.c Executable file → Normal file
View File

0
libpcsxcore/misc.h Executable file → Normal file
View File

0
libpcsxcore/plugins.c Executable file → Normal file
View File

0
libpcsxcore/plugins.h Executable file → Normal file
View File

0
libpcsxcore/ppc/pR3000A.c Executable file → Normal file
View File

0
libpcsxcore/ppf.c Executable file → Normal file
View File

0
libpcsxcore/ppf.h Executable file → Normal file
View File

0
libpcsxcore/psemu_plugin_defs.h Executable file → Normal file
View File

0
libpcsxcore/psxbios.c Executable file → Normal file
View File

0
libpcsxcore/psxbios.h Executable file → Normal file
View File

0
libpcsxcore/psxcommon.c Executable file → Normal file
View File

0
libpcsxcore/psxcommon.h Executable file → Normal file
View File

0
libpcsxcore/psxcounters.c Executable file → Normal file
View File

0
libpcsxcore/psxcounters.h Executable file → Normal file
View File

0
libpcsxcore/psxdma.c Executable file → Normal file
View File

0
libpcsxcore/psxdma.h Executable file → Normal file
View File

0
libpcsxcore/psxhle.c Executable file → Normal file
View File

0
libpcsxcore/psxhle.h Executable file → Normal file
View File

0
libpcsxcore/psxhw.c Executable file → Normal file
View File

0
libpcsxcore/psxhw.h Executable file → Normal file
View File

0
libpcsxcore/psxinterpreter.c Executable file → Normal file
View File

0
libpcsxcore/psxmem.c Executable file → Normal file
View File

0
libpcsxcore/psxmem.h Executable file → Normal file
View File

0
libpcsxcore/r3000a.c Executable file → Normal file
View File

0
libpcsxcore/r3000a.h Executable file → Normal file
View File

0
libpcsxcore/sio.c Executable file → Normal file
View File

0
libpcsxcore/sio.h Executable file → Normal file
View File

0
libpcsxcore/sjisfont.h Executable file → Normal file
View File

0
libpcsxcore/socket.c Executable file → Normal file
View File

0
libpcsxcore/socket.h Executable file → Normal file
View File

0
libpcsxcore/spu.c Executable file → Normal file
View File

0
libpcsxcore/spu.h Executable file → Normal file
View File

0
libpcsxcore/system.h Executable file → Normal file
View File

View File

@ -16,11 +16,11 @@ static inline void CopyMemcardData(char *from, char *to, int srci, int dsti, cha
{
// header
memmove(to + (dsti + 1) * 128, from + (srci + 1) * 128, 128);
SaveMcd(0, str, to, (dsti + 1) * 128, 128);
SaveMcd(str, to, (dsti + 1) * 128, 128);
// data
memmove(to + (dsti + 1) * 1024 * 8, from + (srci+1) * 1024 * 8, 1024 * 8);
SaveMcd(0, str, to, (dsti + 1) * 1024 * 8, 1024 * 8);
SaveMcd(str, to, (dsti + 1) * 1024 * 8, 1024 * 8);
}
static inline char* BlankHeader()
@ -56,11 +56,11 @@ static inline void ClearMemcardData(char *to, int dsti, char *str)
// header
char *header = BlankHeader();
memcpy(to + (dsti + 1) * 128, header, 128);
SaveMcd(0, str, to, (dsti + 1) * 128, 128);
SaveMcd(str, to, (dsti + 1) * 128, 128);
// data
memset(to + (dsti + 1) * 1024 * 8, 0, 1024 * 8);
SaveMcd(0, str, to, (dsti + 1) * 1024 * 8, 1024 * 8);
SaveMcd(str, to, (dsti + 1) * 1024 * 8, 1024 * 8);
}
@interface PcsxrMemCardArray ()
@ -338,7 +338,7 @@ static inline void ClearMemcardData(char *to, int dsti, char *str)
for (unsigned char j = 0; j < 127; j++) xor ^= *ptr++;
*ptr = xor;
SaveMcd(0, filename, data, i * 128, 128);
SaveMcd(filename, data, i * 128, 128);
}
}

View File

View File

0
macosx/plugins/Bladesio1/macsrc/cfg.c Executable file → Normal file
View File

0
macosx/plugins/DFCdrom/macsrc/PluginConfigController.h Executable file → Normal file
View File

0
macosx/plugins/DFCdrom/macsrc/PluginConfigController.m Executable file → Normal file
View File

0
macosx/plugins/DFCdrom/macsrc/cdr-macosx.c Executable file → Normal file
View File

0
macosx/plugins/DFCdrom/macsrc/cfg.c Executable file → Normal file
View File

0
macosx/plugins/DFInput/macsrc/ControllerList.h Executable file → Normal file
View File

0
macosx/plugins/DFInput/macsrc/ControllerList.m Executable file → Normal file
View File

0
macosx/plugins/DFInput/macsrc/MappingCell.h Executable file → Normal file
View File

0
macosx/plugins/DFInput/macsrc/MappingCell.m Executable file → Normal file
View File

0
macosx/plugins/DFInput/macsrc/PadController.h Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More