mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Add the option to turn on only the EGL interface to use desktop OpenGL with it.
Conflicts: CMakeLists.txt
This commit is contained in:
parent
1e64c38998
commit
e53d88da2d
@ -3,6 +3,20 @@
|
|||||||
#
|
#
|
||||||
cmake_minimum_required(VERSION 2.6)
|
cmake_minimum_required(VERSION 2.6)
|
||||||
|
|
||||||
|
option(USE_GLES "Enables GLES And EGL, disables OGL" OFF)
|
||||||
|
option(USE_EGL "Enables EGL OpenGL Interface" OFF)
|
||||||
|
option(DISABLE_WX "Disable wxWidgets (use CLI interface)" OFF)
|
||||||
|
|
||||||
|
option(FASTLOG "Enable all logs" OFF)
|
||||||
|
option(OPROFILING "Enable profiling" OFF)
|
||||||
|
option(OPENMP "Enable OpenMP parallelization" ON)
|
||||||
|
option(ENCODE_FRAMEDUMPS "Encode framedumps in AVI format" ON)
|
||||||
|
########################################
|
||||||
|
# Optional Targets
|
||||||
|
# TODO: Add DSPSpy and TestSuite.
|
||||||
|
option(DSPTOOL "Build dsptool" OFF)
|
||||||
|
option(UNITTESTS "Build unitests" OFF)
|
||||||
|
|
||||||
# Update compiler before calling project()
|
# Update compiler before calling project()
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
# Use clang compiler
|
# Use clang compiler
|
||||||
@ -217,20 +231,23 @@ if(CMAKE_BUILD_TYPE STREQUAL Release)
|
|||||||
add_definitions(-fomit-frame-pointer)
|
add_definitions(-fomit-frame-pointer)
|
||||||
endif(CMAKE_BUILD_TYPE STREQUAL Release)
|
endif(CMAKE_BUILD_TYPE STREQUAL Release)
|
||||||
|
|
||||||
option(FASTLOG "Enable all logs" OFF)
|
|
||||||
if(FASTLOG)
|
if(FASTLOG)
|
||||||
add_definitions(-DDEBUGFAST)
|
add_definitions(-DDEBUGFAST)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# For now GLES and EGL are tied to each other.
|
# For now GLES and EGL are tied to each other.
|
||||||
# Enabling GLES also disables the OpenGL plugin.
|
# Enabling GLES also disables the OpenGL plugin.
|
||||||
option(USE_GLES "Enables GLES, disables OGL" OFF)
|
|
||||||
if(USE_GLES)
|
if(USE_GLES)
|
||||||
message("GLES rendering enabled")
|
message("GLES rendering enabled")
|
||||||
add_definitions(-DUSE_GLES)
|
add_definitions(-DUSE_GLES)
|
||||||
add_definitions(-DUSE_EGL)
|
add_definitions(-DUSE_EGL)
|
||||||
set(USE_EGL True)
|
set(USE_EGL True)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(USE_EGL)
|
||||||
|
message("EGL OpenGL interface enabled")
|
||||||
|
add_definitions(-DUSE_EGL)
|
||||||
|
endif()
|
||||||
add_definitions(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE)
|
add_definitions(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE)
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
@ -248,7 +265,6 @@ if(NOT OPENGL_GLU_FOUND)
|
|||||||
message(FATAL_ERROR "GLU is required but not found")
|
message(FATAL_ERROR "GLU is required but not found")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(OPENMP "Enable OpenMP parallelization" ON)
|
|
||||||
if(OPENMP)
|
if(OPENMP)
|
||||||
include(FindOpenMP OPTIONAL)
|
include(FindOpenMP OPTIONAL)
|
||||||
if(OPENMP_FOUND)
|
if(OPENMP_FOUND)
|
||||||
@ -331,7 +347,6 @@ else()
|
|||||||
add_definitions(-DHAVE_XRANDR=0)
|
add_definitions(-DHAVE_XRANDR=0)
|
||||||
endif(XRANDR_FOUND)
|
endif(XRANDR_FOUND)
|
||||||
|
|
||||||
option(ENCODE_FRAMEDUMPS "Encode framedumps in AVI format" ON)
|
|
||||||
if(ENCODE_FRAMEDUMPS)
|
if(ENCODE_FRAMEDUMPS)
|
||||||
check_libav()
|
check_libav()
|
||||||
endif()
|
endif()
|
||||||
@ -353,7 +368,6 @@ else()
|
|||||||
set(PORTAUDIO_FOUND FALSE)
|
set(PORTAUDIO_FOUND FALSE)
|
||||||
endif(PORTAUDIO)
|
endif(PORTAUDIO)
|
||||||
|
|
||||||
option(OPROFILING "Enable profiling" OFF)
|
|
||||||
if(OPROFILING)
|
if(OPROFILING)
|
||||||
check_lib(OPROFILE opagent opagent.h)
|
check_lib(OPROFILE opagent opagent.h)
|
||||||
check_lib(BFD bfd bfd.h)
|
check_lib(BFD bfd bfd.h)
|
||||||
@ -502,7 +516,6 @@ else()
|
|||||||
add_subdirectory(Externals/CLRun)
|
add_subdirectory(Externals/CLRun)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(DISABLE_WX "Disable wxWidgets (use CLI interface)" OFF)
|
|
||||||
if(NOT DISABLE_WX)
|
if(NOT DISABLE_WX)
|
||||||
include(FindwxWidgets OPTIONAL)
|
include(FindwxWidgets OPTIONAL)
|
||||||
FIND_PACKAGE(wxWidgets COMPONENTS core aui adv)
|
FIND_PACKAGE(wxWidgets COMPONENTS core aui adv)
|
||||||
@ -598,11 +611,6 @@ file(WRITE ${PROJECT_BINARY_DIR}/Source/Core/Common/Src/scmrev.h
|
|||||||
)
|
)
|
||||||
include_directories("${PROJECT_BINARY_DIR}/Source/Core/Common/Src")
|
include_directories("${PROJECT_BINARY_DIR}/Source/Core/Common/Src")
|
||||||
|
|
||||||
########################################
|
|
||||||
# Optional Targets
|
|
||||||
# TODO: Add DSPSpy and TestSuite.
|
|
||||||
option(DSPTOOL "Build dsptool" OFF)
|
|
||||||
option(UNITTESTS "Build unitests" OFF)
|
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# Start compiling our code
|
# Start compiling our code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user