Commit Graph

107 Commits (16df1f8078d694ed808074010ac9a9fd57478fb6)

Author SHA1 Message Date
Jeffrey Pfau 07ab936f12 CMakeLists: Autodetect clang and only then use libc++ 8 years ago
Yuri Kunde Schlesner 5a3ed81d9a Merge pull request #2202 from j-selby/man-docs
Add man documentation
8 years ago
James 61687840bc Disable Microprofile on Mingw builds
This fixes a crash when starting games
8 years ago
freiro 35e979f041 Appending PLATFORM_LIBRARIES instead of redefining them 8 years ago
freiro 0c22e52f52 WINVER definition moved to CMake and cleanup 8 years ago
James e5f8df8088 Add man documentation
Includes both SDL and QT frontends
8 years ago
freiro 9ca3a2d461 Move to SDL2-2.0.5 8 years ago
James Rowe c3ea6f4ddb Add mingw compile support 8 years ago
Jan Beich 8b833d3a97 build: don't install freedesktop.org metadata for SDL2-only builds
Citra SDL2 doesn't have a launcher, and citra.desktop tries to execute
citra-qt which is N/A unless built with ENABLE_QT. Limiting installed
files to one of the options also makes it easier to split them into
separate non-conflicting packages downstream.
8 years ago
Jan Beich 2240cb2eb0 build: add default install for DragonFly, Solaris, etc. 8 years ago
Jan Beich 52da9de5c4 build: clock_gettime() is in libc on BSDs 8 years ago
Jan Beich 48b6c98d31 build: libc may not provide iconv() on Unix
/usr/bin/ld: ../common/libcommon.a(string_util.cpp.o): undefined reference to symbol 'libiconv_open'
8 years ago
Anthony J. Bentley 26af2b644c common: convert to standard stat()/fstat() interfaces
Most modern Unix environments use 64-bit off_t by default: OpenBSD,
FreeBSD, OS X, and Linux libc implementations such as Musl.

glibc is the lone exception; it can default to 32 bits but this is
configurable by setting _FILE_OFFSET_BITS.

Avoiding the stat64()/fstat64() interfaces is desirable because they
are nonstandard and not implemented on many systems (including
OpenBSD and FreeBSD), and using 64 bits for stat()/fstat() is either
the default or trivial to set up.
8 years ago
bunnei 1ea1affe0a dynarmic: Add new submodule. 8 years ago
bunnei 8410e7891c CMakeLists: Set Boost_INCLUDE_DIR. 8 years ago
bunnei a71d6cc040 Revert "MSVC: Add RelWithDebInfo and removing debugging from Release." 8 years ago
James Rowe 8b685c4308 MSVC: Add RelWithDebInfo and removing debugging from Release.
This should reduce build size on windows from roughly 12MB compressed to 7MB
8 years ago
bunnei 33d17d0b62 qt: Use 5.7 on Windows. 9 years ago
James Rowe a976c2e3ba CMake: Fix for QT 5.7 overwriting -std=c++1y flag
In QT 5.7 they added a new check for CXX features which appends a minimum
required standard to the CXX_FLAGS. Because we were writing the flag
directly previously, cmake assumed it needed to add a c++11 flag to the
build. This tells cmake to use c++14 on every build.
9 years ago
Emmanuel Gil Peyrot e09e683720 Remove the -msse4.1 on ¬MSVC.
This option makes the generated binary crash with an illegal
instruction when the target CPU doesn’t support the SSE4.1 extension
(see #1968), with no noticeable performance increase compared to a
generic build.
9 years ago
Lioncash d5f5aeeab8 CMakeLists: Drop support for Qt 4 9 years ago
MerryMage 87de1ca968 Tests: Run tests on CI 9 years ago
MerryMage 920d2cf41d AudioCore: SDL2 Sink 9 years ago
MerryMage 27ce3b3f51 Externals: Add soundtouch 9 years ago
Sam Spilsbury df81fa11fc CMakeLists: Use imported version of Threads::Threads
This requires bumping up to a minimum of CMake 3.1. The benefit
of using the imported target is that you can switch to the -pthread
compiler flag on request, which may be necessary for some systems if
available.
9 years ago
Sam Spilsbury d051bd3032 CMakeLists: Use CMAKE_THREAD_LIBS_INIT 9 years ago
Lioncash 5ef90464a1 CMakeFiles: Compile as C++14 9 years ago
MerryMage ba2a54a9dd Dependencies: Remove GLFW, Add SDL2
citra: Remove GLFW, Add SDL2

FindSDL2: Do not CACHE SDL2_* variables if library is not found

EmuWindow_SDL2: Set minimal client area at initialisation time

EmuWindow_SDL2: Corrections

EmuWindow_SDL2: Fix no decorations on startup on OS X

cmake: windows_copy_files
9 years ago
Tony Wasserka 5f567a8229 Enable RTTI on Windows builds. 9 years ago
Yuri Kunde Schlesner f226365f55 CMake: Silence more MSVC "deprecation" warnings 9 years ago
Yuri Kunde Schlesner 6cec330103 CMake: Make all cache options appear even in case of errors
The `option` commands have been moved to the top of the file, so that
the relevant options are registered in the CMake cache even if one of
the required libraries is not found. This solves an ergonomic problem
when using bundled libraries where you have to first download GLFW
before being able to select the option to also download Qt.
9 years ago
Yuri Kunde Schlesner 9e52aaa01d CMake: Point binary downloads to new official repo 9 years ago
Yuri Kunde Schlesner 70d0d8890a CMake: Remove support for QTDIR environment variable
Using this variable is problematic is the user has several versions of
Qt installed on their system. There is no way to know ahead of time if
the Qt version pointed to by QTDIR matches the toolchain that is being
targeted.

The Qt installation path can still be easily specified if it's not found
by CMake by setting the Qt5_DIR cache variable after the initial
configuration run, so this shouldn't present an usability issue.
9 years ago
Yuri Kunde Schlesner fdb0f8203e CMake: Don't complain when Boost isn't found in the system. 9 years ago
Yuri Kunde Schlesner 2eec2c156b CMake: Use HINTS option instead of modifying CMAKE_PREFIX_PATH for Qt 9 years ago
Yuri Kunde Schlesner 078969bdd0 CMake: Add option to download Qt and GLFW binaries over HTTP 9 years ago
Yuri Kunde Schlesner eb26a1941e CMake: Fix architecture detection on MSVC
CMAKE_SYSTEM_ARCHICTETURE always returns the *host* not target arch
when using the MSVC generators. (CMake bugs 15170 and 14342.)
9 years ago
Yuri Kunde Schlesner a1a5570e97 Replace the previous OpenGL loader with a glad-generated 3.3 one
The main advantage of switching to glad from glLoadGen is that, apart
from being actively maintained, it supports a customizable entrypoint
loader function, which makes it possible to also support OpenGL ES.
9 years ago
Yuri Kunde Schlesner 0fcabd2b11 Integrate the MicroProfile profiling library
This brings goodies such as a configurable user interface and
multi-threaded timeline view.
10 years ago
darkf e053d30bf7 Fix building under MinGW 10 years ago
bunnei b39c053785 Rename ARCHITECTURE_X64 definition to ARCHITECTURE_x86_64. 10 years ago
bunnei 4d51792285 Common: Ported over Dolphin's code for x86 CPU capability detection. 10 years ago
Yuri Kunde Schlesner 12f78c2ba6 Enable linker optimizations in MSVC Release builds
Apparently /DEBUG implicitly disables linker optimizations. This
explicitly re-enables them, giving a 40% reduction in binary sizes and
a very slight runtime speed improvement.
10 years ago
JSFernandes 256eb24777 Fix permissions in pre-commit hook 10 years ago
Greg Wicks 9930ef72dd Implement new argument parsing using getopt and add the corresponding library to externals 10 years ago
Yuri Kunde Schlesner a24a0fbd8a CMake: Fix Debug build configuration in MSVC
Debug was missing compiler flags, causing MSVC to default it to building
with optimizations enabled (making for a not very useful binary for
actual debugging...). Additionally, the variables were re-organized to
remove some redundancy, the old Release build type was removed, and
RelWithDebInfo was renamed to take its place instead.
10 years ago
Yuri Kunde Schlesner 772ef097ea Merge pull request #839 from Lectem/whitespacepolicy
Enforce the "no tab, use spaces" policy with a pre-commit hook.
10 years ago
Lectem 85183a702a force no-tab/trailing spaces with git hook
Remove unneeded stuff from pre-commit script

The check against an empty commit was not needed (it is only a security for the 1st commit after git init).
It could also possibly pose problems because of the redirection to /dev/null on some windows systems.

newline at EOF & fixed indent
10 years ago
Emmanuel Gil Peyrot b1503b2020 Remove every trailing whitespace from the project (but externals). 10 years ago
Yuri Kunde Schlesner 33c57361a9 Update bundled GLFW to 3.1.1
It may be necessary to fix the CMake paths manually for an exsting CMake
cache after this change.
10 years ago