mirror of
https://github.com/libretro/parallel-gx2.git
synced 2026-11-07 04:25:58 -10:00
The core builds with a static Makefile (Makefile + Makefile.common) in the manner of the other ParaLLEl cores, for every target .gitlab-ci.yml has: Linux x86_64/aarch64, Windows (MinGW, native or cross), macOS, iOS, tvOS, Android arm64/x86_64 and webOS. CMake, vcpkg and their overlay ports are gone; the libraries the core needs are submodules built with it (fmt 12.1.0, glm 1.0.1, glslang 15.1.0, libusb 1.0.29, pugixml 1.15, zlib 1.3.1, zstd 1.5.7), with the generated files and the graphic packs produced by the Makefile itself (tools/pack_graphic_packs.c), and a precompiled header for gcc and clang. The core is renamed parallel_gx2 (parallel_gx2_libretro.info, library name "ParaLLEl GX2"). HTTP and TLS go through RetroArch's libretro-common (net_http with the per-request TLS settings, the built-in TLS client, x509, the hashes and the KDF) in place of libcurl, OpenSSL and mbedTLS: dependencies/curl-compat is the small libcurl API nlibcurl and napi use, on one transfer thread with lock-free submission and per-handle event queues, with its own tests against local HTTP and TLS servers, plain and under ASan/UBSan and TSan, in both CIs. The libretro-common files are plain copies from RetroArch. boost is replaced by the few headers the core uses (boost-compat), and the CI files build with the Makefile.
28 lines
832 B
C++
28 lines
832 B
C++
// boost::container::static_vector, on the storage in detail/inline_vector.hpp:
|
|
// never more than Capacity elements, and no heap.
|
|
#pragma once
|
|
|
|
#include "detail/inline_vector.hpp"
|
|
|
|
namespace boost { namespace container {
|
|
|
|
template<class T, std::size_t Capacity, class Options = void>
|
|
class static_vector : public detail::inline_vector<T, Capacity, false>
|
|
{
|
|
using base = detail::inline_vector<T, Capacity, false>;
|
|
public:
|
|
using base::base;
|
|
static_vector() = default;
|
|
static_vector(const static_vector&) = default;
|
|
static_vector(static_vector&&) = default;
|
|
static_vector& operator=(const static_vector&) = default;
|
|
static_vector& operator=(static_vector&&) = default;
|
|
static_vector& operator=(std::initializer_list<T> list)
|
|
{
|
|
base::assign(list.begin(), list.end());
|
|
return *this;
|
|
}
|
|
};
|
|
|
|
}} // namespace boost::container
|