mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
Move optional.hpp as a submodule
This commit is contained in:
parent
c570410e06
commit
0129c54ab6
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -38,3 +38,6 @@
|
|||||||
path = 3rdparty/hidapi
|
path = 3rdparty/hidapi
|
||||||
url = https://github.com/RPCS3/hidapi
|
url = https://github.com/RPCS3/hidapi
|
||||||
branch = master
|
branch = master
|
||||||
|
[submodule "3rdparty/Optional"]
|
||||||
|
path = 3rdparty/Optional
|
||||||
|
url = https://github.com/akrzemi1/Optional.git
|
||||||
|
@ -51,7 +51,7 @@ before_install:
|
|||||||
fi;
|
fi;
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- git submodule update --init asmjit 3rdparty/ffmpeg 3rdparty/pugixml 3rdparty/GSL 3rdparty/libpng Utilities/yaml-cpp 3rdparty/cereal 3rdparty/hidapi Vulkan/glslang Vulkan/Vulkan-LoaderAndValidationLayers
|
- git submodule update --init asmjit 3rdparty/ffmpeg 3rdparty/pugixml 3rdparty/GSL 3rdparty/libpng Utilities/yaml-cpp 3rdparty/cereal 3rdparty/hidapi 3rdparty/Optional Vulkan/glslang Vulkan/Vulkan-LoaderAndValidationLayers
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- export CMAKE_PREFIX_PATH=~/Qt/5.9.1/gcc_64/lib/cmake
|
- export CMAKE_PREFIX_PATH=~/Qt/5.9.1/gcc_64/lib/cmake
|
||||||
|
1
3rdparty/Optional
vendored
Submodule
1
3rdparty/Optional
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit f27e79084a9176672ed1eae50b3397fa8035d50d
|
@ -1,23 +0,0 @@
|
|||||||
Boost Software License - Version 1.0 - August 17th, 2003
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person or organization
|
|
||||||
obtaining a copy of the software and accompanying documentation covered by
|
|
||||||
this license (the "Software") to use, reproduce, display, distribute,
|
|
||||||
execute, and transmit the Software, and to prepare derivative works of the
|
|
||||||
Software, and to permit third-parties to whom the Software is furnished to
|
|
||||||
do so, all subject to the following:
|
|
||||||
|
|
||||||
The copyright notices in the Software and this entire statement, including
|
|
||||||
the above license grant, this restriction and the following disclaimer,
|
|
||||||
must be included in all copies of the Software, in whole or in part, and
|
|
||||||
all derivative works of the Software, unless such copies or derivative
|
|
||||||
works are solely in the form of machine-executable object code generated by
|
|
||||||
a source language processor.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
|
||||||
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
|
||||||
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
|
||||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
DEALINGS IN THE SOFTWARE.
|
|
@ -1,10 +0,0 @@
|
|||||||
Copyright (C) 2011-2012 Andrzej Krzemienski
|
|
||||||
|
|
||||||
Distributed under the Boost Software License, Version 1.0
|
|
||||||
(see accompanying file LICENSE_1_0.txt or a copy at
|
|
||||||
http://www.boost.org/LICENSE_1_0.txt)
|
|
||||||
|
|
||||||
The idea and interface is based on Boost.Optional library
|
|
||||||
authored by Fernando Luis Cacciola Carballal
|
|
||||||
|
|
||||||
Home at https://github.com/akrzemi1/Optional
|
|
File diff suppressed because it is too large
Load Diff
@ -12,7 +12,7 @@ configuration:
|
|||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- ps: $env:Date="$(git show -s --date=short --format='%ad')"
|
- ps: $env:Date="$(git show -s --date=short --format='%ad')"
|
||||||
- git submodule update --init 3rdparty/ffmpeg 3rdparty/pugixml asmjit 3rdparty/GSL 3rdparty/libpng Vulkan/glslang Vulkan/Vulkan-LoaderAndValidationLayers Utilities/yaml-cpp 3rdparty/cereal 3rdparty/zlib 3rdparty/hidapi
|
- git submodule update --init 3rdparty/ffmpeg 3rdparty/pugixml asmjit 3rdparty/GSL 3rdparty/libpng Vulkan/glslang Vulkan/Vulkan-LoaderAndValidationLayers Utilities/yaml-cpp 3rdparty/cereal 3rdparty/zlib 3rdparty/hidapi 3rdparty/Optional
|
||||||
- 7z x zlib.7z -aos -oC:\rpcs3\ > null
|
- 7z x zlib.7z -aos -oC:\rpcs3\ > null
|
||||||
- 7z x vulkan.7z -aos -oC:\rpcs3\Vulkan > null
|
- 7z x vulkan.7z -aos -oC:\rpcs3\Vulkan > null
|
||||||
- set BRANCH=%APPVEYOR_REPO_NAME%/%APPVEYOR_REPO_BRANCH%/#%APPVEYOR_PULL_REQUEST_NUMBER%
|
- set BRANCH=%APPVEYOR_REPO_NAME%/%APPVEYOR_REPO_BRANCH%/#%APPVEYOR_PULL_REQUEST_NUMBER%
|
||||||
|
@ -259,6 +259,7 @@ ${LLVM_INCLUDE_DIRS}
|
|||||||
"${RPCS3_SRC_DIR}/../3rdparty/GL"
|
"${RPCS3_SRC_DIR}/../3rdparty/GL"
|
||||||
"${RPCS3_SRC_DIR}/../3rdparty/stblib"
|
"${RPCS3_SRC_DIR}/../3rdparty/stblib"
|
||||||
"${RPCS3_SRC_DIR}/../3rdparty/cereal/include"
|
"${RPCS3_SRC_DIR}/../3rdparty/cereal/include"
|
||||||
|
"${RPCS3_SRC_DIR}/../3rdparty/Optional"
|
||||||
)
|
)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
#include "GLTextureCache.h"
|
#include "GLTextureCache.h"
|
||||||
#include "GLRenderTargets.h"
|
#include "GLRenderTargets.h"
|
||||||
#include "restore_new.h"
|
#include "restore_new.h"
|
||||||
#include "Utilities/optional.hpp"
|
|
||||||
#include "define_new_memleakdetect.h"
|
#include "define_new_memleakdetect.h"
|
||||||
#include "GLProgramBuffer.h"
|
#include "GLProgramBuffer.h"
|
||||||
#include "GLTextOut.h"
|
#include "GLTextOut.h"
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
#include "VKFormats.h"
|
#include "VKFormats.h"
|
||||||
#include "VKTextOut.h"
|
#include "VKTextOut.h"
|
||||||
#include "restore_new.h"
|
#include "restore_new.h"
|
||||||
#include <Utilities/optional.hpp>
|
|
||||||
#include "define_new_memleakdetect.h"
|
#include "define_new_memleakdetect.h"
|
||||||
#include "VKProgramBuffer.h"
|
#include "VKProgramBuffer.h"
|
||||||
#include "../GCM.h"
|
#include "../GCM.h"
|
||||||
|
@ -4,6 +4,14 @@
|
|||||||
#include "gcm_enums.h"
|
#include "gcm_enums.h"
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
|
||||||
|
// TODO: replace the code below by #include <optional> when C++17 or newer will be used
|
||||||
|
#include <optional.hpp>
|
||||||
|
namespace std
|
||||||
|
{
|
||||||
|
template<class T>
|
||||||
|
using optional = experimental::optional<T>;
|
||||||
|
}
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include <libavutil/pixfmt.h>
|
#include <libavutil/pixfmt.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user