2017-12-30 23:07:39 -05:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2017-01-22 13:40:32 +01:00
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
2019-06-23 18:23:39 -04:00
|
|
|
* Copyright (C) 2016-2019 - Brad Parker
|
2015-04-12 18:56:23 +02:00
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2015-04-12 18:59:50 +02:00
|
|
|
#if defined(HAVE_ZLIB) || defined(HAVE_7ZIP)
|
2018-01-21 11:52:56 +01:00
|
|
|
#define HAVE_COMPRESSION 1
|
2015-04-12 18:59:50 +02:00
|
|
|
#endif
|
|
|
|
|
2020-04-29 22:49:10 +00:00
|
|
|
#if defined(_WIN32) && !defined(_XBOX)
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#endif
|
|
|
|
|
2015-04-12 18:59:50 +02:00
|
|
|
#if defined(_MSC_VER)
|
2018-01-21 11:52:56 +01:00
|
|
|
#include <string.h>
|
2015-04-12 18:59:50 +02:00
|
|
|
#include <compat/posix_string.h>
|
|
|
|
#endif
|
|
|
|
|
2019-12-06 15:21:54 +08:00
|
|
|
#if defined(HAVE_OPENGL) && defined(HAVE_ANGLE)
|
|
|
|
#ifndef HAVE_OPENGLES
|
|
|
|
#define HAVE_OPENGLES 1
|
|
|
|
#endif
|
|
|
|
#if !defined(HAVE_OPENGLES3) && !defined(HAVE_OPENGLES2)
|
|
|
|
#define HAVE_OPENGLES3 1
|
|
|
|
#endif
|
|
|
|
#ifndef HAVE_EGL
|
|
|
|
#define HAVE_EGL 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2016-06-08 10:05:48 +02:00
|
|
|
/*============================================================
|
|
|
|
UI
|
|
|
|
============================================================ */
|
2016-06-09 20:11:26 +02:00
|
|
|
#if defined(HAVE_QT)
|
2018-09-05 20:10:54 -07:00
|
|
|
#ifndef __APPLE__
|
2018-04-30 14:33:05 -04:00
|
|
|
#define HAVE_MAIN /* also requires defining in frontend.c */
|
2018-09-05 20:10:54 -07:00
|
|
|
#endif
|
2019-01-15 19:41:24 +01:00
|
|
|
|
|
|
|
#undef mkdir
|
|
|
|
|
2016-06-10 10:15:38 +02:00
|
|
|
#include "../ui/drivers/ui_qt.cpp"
|
|
|
|
|
2016-06-09 20:11:26 +02:00
|
|
|
#include "../ui/drivers/qt/ui_qt_window.cpp"
|
2018-05-03 10:32:32 -05:00
|
|
|
#include "../ui/drivers/qt/ui_qt_load_core_window.cpp"
|
2016-06-10 10:15:38 +02:00
|
|
|
#include "../ui/drivers/qt/ui_qt_browser_window.cpp"
|
|
|
|
#include "../ui/drivers/qt/ui_qt_msg_window.cpp"
|
2016-06-09 20:18:08 +02:00
|
|
|
#include "../ui/drivers/qt/ui_qt_application.cpp"
|
2018-12-12 20:45:19 +01:00
|
|
|
#include "../ui/drivers/qt/gridview.cpp"
|
2019-07-21 00:33:39 +02:00
|
|
|
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
2018-08-16 22:48:31 -04:00
|
|
|
#include "../ui/drivers/qt/shaderparamsdialog.cpp"
|
2019-07-21 00:33:39 +02:00
|
|
|
#endif
|
2018-08-29 11:34:36 -04:00
|
|
|
#include "../ui/drivers/qt/coreoptionsdialog.cpp"
|
2018-08-16 22:48:31 -04:00
|
|
|
#include "../ui/drivers/qt/filedropwidget.cpp"
|
|
|
|
#include "../ui/drivers/qt/coreinfodialog.cpp"
|
|
|
|
#include "../ui/drivers/qt/playlistentrydialog.cpp"
|
|
|
|
#include "../ui/drivers/qt/viewoptionsdialog.cpp"
|
2019-01-12 21:16:48 +01:00
|
|
|
#include "../ui/drivers/qt/qt_playlist.cpp"
|
2018-08-16 22:48:31 -04:00
|
|
|
#include "../ui/drivers/qt/updateretroarch.cpp"
|
2018-08-25 01:00:18 -04:00
|
|
|
#include "../ui/drivers/qt/thumbnaildownload.cpp"
|
2018-08-26 23:24:43 -04:00
|
|
|
#include "../ui/drivers/qt/thumbnailpackdownload.cpp"
|
2018-08-27 23:29:44 -04:00
|
|
|
#include "../ui/drivers/qt/playlistthumbnaildownload.cpp"
|
2019-03-27 02:37:34 +01:00
|
|
|
#ifdef HAVE_MENU
|
|
|
|
#include "../ui/drivers/qt/settingswidgets.cpp"
|
2019-07-19 16:02:00 +02:00
|
|
|
#include "../ui/drivers/qt/options/generic.cpp"
|
2019-03-27 02:37:34 +01:00
|
|
|
#include "../ui/drivers/qt/options/video.cpp"
|
|
|
|
#include "../ui/drivers/qt/options/audio.cpp"
|
|
|
|
#include "../ui/drivers/qt/options/saving.cpp"
|
|
|
|
#include "../ui/drivers/qt/options/osd.cpp"
|
|
|
|
#include "../ui/drivers/qt/options/input.cpp"
|
|
|
|
#include "../ui/drivers/qt/options/latency.cpp"
|
|
|
|
#include "../ui/drivers/qt/options/playlists.cpp"
|
|
|
|
#include "../ui/drivers/qt/options/user.cpp"
|
|
|
|
#include "../ui/drivers/qt/options/recording.cpp"
|
|
|
|
#include "../ui/drivers/qt/options/ui.cpp"
|
|
|
|
#include "../ui/drivers/qt/options/achievements.cpp"
|
|
|
|
#include "../ui/drivers/qt/options/network.cpp"
|
2019-04-19 19:28:25 +02:00
|
|
|
#include "../ui/drivers/qt/moc_settingswidgets.cpp"
|
2019-03-27 02:37:34 +01:00
|
|
|
#include "../ui/drivers/qt/options/moc_options.cpp"
|
|
|
|
#endif
|
2018-09-05 20:10:54 -07:00
|
|
|
#include "../ui/drivers/moc_ui_qt.cpp"
|
|
|
|
#include "../ui/drivers/qt/moc_coreinfodialog.cpp"
|
|
|
|
#include "../ui/drivers/qt/moc_coreoptionsdialog.cpp"
|
|
|
|
#include "../ui/drivers/qt/moc_filedropwidget.cpp"
|
2018-12-12 20:45:19 +01:00
|
|
|
#include "../ui/drivers/qt/moc_gridview.cpp"
|
2018-09-05 20:10:54 -07:00
|
|
|
#include "../ui/drivers/qt/moc_playlistentrydialog.cpp"
|
2019-07-21 00:33:39 +02:00
|
|
|
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
2018-09-05 20:10:54 -07:00
|
|
|
#include "../ui/drivers/qt/moc_shaderparamsdialog.cpp"
|
2019-07-21 00:33:39 +02:00
|
|
|
#endif
|
2018-09-05 20:10:54 -07:00
|
|
|
#include "../ui/drivers/qt/moc_ui_qt_load_core_window.cpp"
|
|
|
|
#include "../ui/drivers/qt/moc_viewoptionsdialog.cpp"
|
2016-06-09 20:11:26 +02:00
|
|
|
#endif
|
2016-11-19 21:19:56 -05:00
|
|
|
|
2015-04-12 19:13:21 +02:00
|
|
|
/*============================================================
|
|
|
|
VIDEO DRIVER
|
|
|
|
============================================================ */
|
2016-02-17 05:22:17 +01:00
|
|
|
#ifdef HAVE_VULKAN
|
|
|
|
#include "../gfx/drivers_shader/shader_vulkan.cpp"
|
2018-02-03 17:10:20 +01:00
|
|
|
#endif
|
|
|
|
|
2019-04-24 03:23:57 +02:00
|
|
|
#if defined(HAVE_OPENGL_CORE)
|
2019-03-02 11:53:14 +01:00
|
|
|
#include "../gfx/drivers_shader/shader_gl_core.cpp"
|
|
|
|
#endif
|
|
|
|
|
2018-06-25 16:52:15 +02:00
|
|
|
#if defined(HAVE_SPIRV_CROSS)
|
|
|
|
#if defined(ENABLE_HLSL)
|
|
|
|
#include "../deps/SPIRV-Cross/spirv_hlsl.cpp"
|
|
|
|
#endif
|
2016-05-15 14:02:48 +02:00
|
|
|
#include "../deps/SPIRV-Cross/spirv_cross.cpp"
|
2016-12-04 04:19:13 +01:00
|
|
|
#include "../deps/SPIRV-Cross/spirv_cfg.cpp"
|
2018-02-04 14:21:11 +01:00
|
|
|
#include "../deps/SPIRV-Cross/spirv_glsl.cpp"
|
|
|
|
#include "../deps/SPIRV-Cross/spirv_msl.cpp"
|
2019-06-24 14:24:47 +02:00
|
|
|
#include "../deps/SPIRV-Cross/spirv_parser.cpp"
|
|
|
|
#include "../deps/SPIRV-Cross/spirv_cross_parsed_ir.cpp"
|
2018-02-03 17:10:20 +01:00
|
|
|
#ifdef HAVE_SLANG
|
2019-08-18 18:01:21 +02:00
|
|
|
#include "../gfx/drivers_shader/glslang_util_cxx.cpp"
|
2018-02-03 17:10:20 +01:00
|
|
|
#include "../gfx/drivers_shader/slang_process.cpp"
|
|
|
|
#include "../gfx/drivers_shader/slang_reflection.cpp"
|
|
|
|
#endif
|
2016-02-17 05:22:17 +01:00
|
|
|
#endif
|
|
|
|
|
2015-04-12 19:13:21 +02:00
|
|
|
/*============================================================
|
|
|
|
FONTS
|
|
|
|
============================================================ */
|
2018-02-04 14:21:11 +01:00
|
|
|
#ifdef WANT_GLSLANG
|
2018-05-03 10:32:32 -05:00
|
|
|
#ifdef _WIN32
|
|
|
|
#include "../deps/glslang/glslang/glslang/OSDependent/Windows/ossource.cpp"
|
|
|
|
#endif
|
|
|
|
|
2018-02-07 05:49:33 +01:00
|
|
|
#if defined(__linux__)
|
2018-05-03 10:32:32 -05:00
|
|
|
#include "../deps/glslang/glslang/glslang/OSDependent/Unix/ossource.cpp"
|
2018-02-04 14:21:11 +01:00
|
|
|
#endif
|
|
|
|
#endif
|
2018-05-29 10:30:56 +02:00
|
|
|
|
|
|
|
#if defined(HAVE_DISCORD)
|
|
|
|
#include "../deps/discord-rpc/src/discord_rpc.cpp"
|
|
|
|
#include "../deps/discord-rpc/src/rpc_connection.cpp"
|
|
|
|
#include "../deps/discord-rpc/src/serialization.cpp"
|
|
|
|
|
|
|
|
#if defined(_WIN32)
|
|
|
|
#include "../deps/discord-rpc/src/connection_win.cpp"
|
|
|
|
#endif
|
|
|
|
#if defined(__unix__) || defined(__APPLE__)
|
|
|
|
#include "../deps/discord-rpc/src/connection_unix.cpp"
|
|
|
|
#endif
|
|
|
|
#endif
|