* externals: Update dynarmic * settings: Introduce GraphicsAPI enum * For now it's OpenGL only but will be expanded upon later * citra_qt: Introduce backend agnostic context management * Mostly a direct port from yuzu * core: Simplify context acquire * settings: Add option to create debug contexts * renderer_opengl: Abstract initialization to Driver * This commit also updates glad and adds some useful extensions which we will use in part 2 * Rasterizer construction is moved to the specific renderer instead of RendererBase. Software rendering has been disable to achieve this but will be brought back in the next commit. * video_core: Remove Init/Shutdown methods from renderer * The constructor and destructor can do the same job * In addition move opengl function loading to Qt since SDL already does this. Also remove ErrorVideoCore which is never reached * citra_qt: Decouple software renderer from opengl part 1 * citra: Decouple software renderer from opengl part 2 * android: Decouple software renderer from opengl part 3 * swrasterizer: Decouple software renderer from opengl part 4 * This commit simply enforces the renderer naming conventions in the software renderer * video_core: Move RendererBase to VideoCore * video_core: De-globalize screenshot state * video_core: Pass system to the renderers * video_core: Commonize shader uniform data * video_core: Abstract backend agnostic rasterizer operations * bootmanager: Remove references to OpenGL for macOS OpenGL macOS headers definitions clash heavily with each other * citra_qt: Proper title for api settings * video_core: Reduce boost usage * bootmanager: Fix hide mouse option Remove event handlers from RenderWidget for events that are already handled by the parent GRenderWindow. Also enable mouse tracking on the RenderWidget. * android: Remove software from graphics api list * code: Address review comments * citra: Port per-game settings read * Having to update the default value for all backends is a pain so lets centralize it * android: Rename to OpenGLES --------- Co-authored-by: MerryMage <MerryMage@users.noreply.github.com> Co-authored-by: Vitor Kiguchi <vitor-kiguchi@hotmail.com>
42 lines
1.1 KiB
CMake
42 lines
1.1 KiB
CMake
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
|
|
|
|
add_executable(citra
|
|
citra.cpp
|
|
citra.rc
|
|
config.cpp
|
|
config.h
|
|
default_ini.h
|
|
emu_window/emu_window_sdl2.cpp
|
|
emu_window/emu_window_sdl2.h
|
|
emu_window/emu_window_sdl2_gl.cpp
|
|
emu_window/emu_window_sdl2_gl.h
|
|
emu_window/emu_window_sdl2_sw.cpp
|
|
emu_window/emu_window_sdl2_sw.h
|
|
lodepng_image_interface.cpp
|
|
lodepng_image_interface.h
|
|
precompiled_headers.h
|
|
resource.h
|
|
)
|
|
|
|
create_target_directory_groups(citra)
|
|
|
|
target_link_libraries(citra PRIVATE common core input_common network)
|
|
target_link_libraries(citra PRIVATE inih glad lodepng)
|
|
if (MSVC)
|
|
target_link_libraries(citra PRIVATE getopt)
|
|
endif()
|
|
target_link_libraries(citra PRIVATE ${PLATFORM_LIBRARIES} SDL2::SDL2 Threads::Threads)
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
install(TARGETS citra RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
|
endif()
|
|
|
|
if (MSVC)
|
|
include(CopyCitraSDLDeps)
|
|
copy_citra_SDL_deps(citra)
|
|
endif()
|
|
|
|
if (CITRA_USE_PRECOMPILED_HEADERS)
|
|
target_precompile_headers(citra PRIVATE precompiled_headers.h)
|
|
endif()
|