RetroArch/griffin/griffin_cpp.cpp

208 lines
7.5 KiB
C++
Raw Normal View History

/* RetroArch - A frontend for libretro.
2017-01-22 12:40:32 +00:00
* Copyright (C) 2011-2017 - Daniel De Matteis
*
* 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 16:59:50 +00:00
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL)
#define HAVE_SHADERS
#endif
#if defined(HAVE_ZLIB) || defined(HAVE_7ZIP)
#define HAVE_COMPRESSION
#endif
#if defined(_MSC_VER)
#include <compat/posix_string.h>
#endif
2016-03-01 22:37:27 +00:00
#ifdef WANT_GLSLANG
2016-02-17 06:23:32 +00:00
#ifdef HAVE_VULKAN
#include "../deps/glslang/glslang.cpp"
#include "../deps/glslang/glslang_tab.cpp"
#include "../deps/glslang/glslang/SPIRV/disassemble.cpp"
2016-02-17 06:23:32 +00:00
#include "../deps/glslang/glslang/SPIRV/doc.cpp"
#include "../deps/glslang/glslang/SPIRV/GlslangToSpv.cpp"
#include "../deps/glslang/glslang/SPIRV/InReadableOrder.cpp"
#include "../deps/glslang/glslang/SPIRV/Logger.cpp"
#include "../deps/glslang/glslang/SPIRV/SpvBuilder.cpp"
#include "../deps/glslang/glslang/SPIRV/SPVRemapper.cpp"
#include "../deps/glslang/glslang/glslang/GenericCodeGen/CodeGen.cpp"
#include "../deps/glslang/glslang/glslang/GenericCodeGen/Link.cpp"
2016-02-17 06:23:32 +00:00
#include "../deps/glslang/glslang/OGLCompilersDLL/InitializeDll.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/Constant.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/glslang_tab.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/InfoSink.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/Initialize.cpp"
2016-02-17 06:23:32 +00:00
#include "../deps/glslang/glslang/glslang/MachineIndependent/Intermediate.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/intermOut.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/IntermTraverse.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/iomapper.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/limits.cpp"
2016-02-17 06:23:32 +00:00
#include "../deps/glslang/glslang/glslang/MachineIndependent/linkValidate.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/parseConst.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/ParseContextBase.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/ParseHelper.cpp"
2016-02-17 06:23:32 +00:00
#include "../deps/glslang/glslang/glslang/MachineIndependent/PoolAlloc.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/propagateNoContraction.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/reflection.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/RemoveTree.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/Scan.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/ShaderLang.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/SymbolTable.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/Versions.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/preprocessor/Pp.cpp"
2016-02-17 06:23:32 +00:00
#include "../deps/glslang/glslang/glslang/MachineIndependent/preprocessor/PpAtom.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/preprocessor/PpContext.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/preprocessor/PpMemory.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/preprocessor/PpScanner.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/preprocessor/PpSymbols.cpp"
#include "../deps/glslang/glslang/glslang/MachineIndependent/preprocessor/PpTokens.cpp"
#include "../deps/glslang/glslang/hlsl/hlslAttributes.cpp"
#include "../deps/glslang/glslang/hlsl/hlslGrammar.cpp"
#include "../deps/glslang/glslang/hlsl/hlslOpMap.cpp"
#include "../deps/glslang/glslang/hlsl/hlslParseables.cpp"
#include "../deps/glslang/glslang/hlsl/hlslParseHelper.cpp"
#include "../deps/glslang/glslang/hlsl/hlslScanContext.cpp"
#include "../deps/glslang/glslang/hlsl/hlslTokenStream.cpp"
2016-02-17 06:23:32 +00:00
#ifdef _WIN32
#include "../deps/glslang/glslang/glslang/OSDependent/Windows/ossource.cpp"
#endif
#if defined(__linux__) && !defined(ANDROID)
#include "../deps/glslang/glslang/glslang/OSDependent/Unix/ossource.cpp"
#endif
#endif
2016-03-01 22:37:27 +00:00
#endif
2016-02-17 06:23:32 +00:00
/*============================================================
AUDIO
============================================================ */
#ifdef HAVE_XAUDIO
#include "../audio/drivers/xaudio.cpp"
#endif
2015-11-11 19:23:19 +00:00
2015-11-16 00:05:49 +00:00
/*============================================================
KEYBOARD EVENT
============================================================ */
2015-11-11 19:23:19 +00:00
#if defined(_WIN32) && !defined(_XBOX)
#include "../input/drivers_keyboard/keyboard_event_win32.cpp"
#endif
2015-11-11 19:07:06 +00:00
/*============================================================
UI COMMON CONTEXT
============================================================ */
#if defined(_WIN32) && !defined(_XBOX)
#include "../gfx/common/win32_common.cpp"
#if defined(HAVE_OPENGL) || defined(HAVE_VULKAN)
2015-11-11 19:07:06 +00:00
#include "../gfx/drivers_context/wgl_ctx.cpp"
#endif
2017-01-05 22:21:13 +00:00
#if defined(_WIN32) && !defined(_XBOX)
#include "../gfx/drivers_context/gdi_ctx.cpp"
#endif
2016-06-15 17:34:23 +00:00
#if defined(HAVE_FFMPEG)
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES3)
#include "../cores/libretro-ffmpeg/fft/fft.cpp"
#endif
#endif
2015-11-11 19:07:06 +00:00
#endif
/*============================================================
MENU
============================================================ */
2016-01-12 08:23:17 +00:00
#ifdef HAVE_XUI
#include "../menu/drivers/xui.cpp"
#endif
2015-11-09 01:19:59 +00:00
#if defined(HAVE_D3D)
#include "../menu/drivers_display/menu_display_d3d.cpp"
#endif
/*============================================================
VIDEO CONTEXT
============================================================ */
#if defined(HAVE_D3D)
#include "../gfx/drivers_context/d3d_ctx.cpp"
#endif
/*============================================================
UI
============================================================ */
#if defined(_WIN32) && !defined(_XBOX)
#include "../ui/drivers/win32/ui_win32_window.cpp"
#endif
2016-06-09 18:11:26 +00:00
#if defined(HAVE_QT)
2016-06-10 08:15:38 +00:00
#include "../ui/drivers/ui_qt.cpp"
2016-06-09 18:11:26 +00:00
#include "../ui/drivers/qt/ui_qt_window.cpp"
2016-06-10 08:15:38 +00:00
#include "../ui/drivers/qt/ui_qt_browser_window.cpp"
#include "../ui/drivers/qt/ui_qt_msg_window.cpp"
2016-06-09 18:18:08 +00:00
#include "../ui/drivers/qt/ui_qt_application.cpp"
2016-06-09 18:11:26 +00:00
#endif
2016-11-20 02:19:56 +00:00
#if defined(HAVE_QT_WRAPPER)
#include "../ui/drivers/ui_qt.cpp"
#endif
2016-06-09 18:11:26 +00:00
/*============================================================
VIDEO DRIVER
============================================================ */
#ifdef _XBOX
2015-09-20 13:39:59 +00:00
#include "../frontend/drivers/platform_xdk.cpp"
#endif
#if defined(HAVE_D3D)
2015-11-18 12:00:13 +00:00
#include "../gfx/common/d3d_common.cpp"
2016-08-01 20:05:57 +00:00
#include "../gfx/drivers/d3d.cpp"
#ifdef _XBOX
2016-08-01 20:05:57 +00:00
#include "../gfx/drivers/d3d_renderchains/render_chain_xdk.cpp"
#endif
#ifdef HAVE_CG
2016-08-01 20:05:57 +00:00
#include "../gfx/drivers/d3d_renderchains/render_chain_cg.cpp"
#endif
#endif
2016-02-17 04:22:17 +00:00
#ifdef HAVE_VULKAN
#include "../gfx/drivers_shader/shader_vulkan.cpp"
#include "../gfx/drivers_shader/glslang_util.cpp"
#include "../gfx/drivers_shader/slang_reflection.cpp"
#include "../deps/SPIRV-Cross/spirv_cross.cpp"
2016-12-04 03:19:13 +00:00
#include "../deps/SPIRV-Cross/spirv_cfg.cpp"
2016-02-17 04:22:17 +00:00
#endif
/*============================================================
FONTS
============================================================ */
#if defined(HAVE_D3D9) && !defined(_XBOX)
#include "../gfx/drivers_font/d3d_w32_font.cpp"
2015-04-13 08:47:02 +00:00
#endif
2015-11-17 21:47:27 +00:00
#if defined(_XBOX360)
#include "../gfx/drivers_font/xdk360_fonts.cpp"
#endif