فهرست منبع

platform: drop support to android ndk r17

Michele Caini 1 سال پیش
والد
کامیت
81b878d038
4فایلهای تغییر یافته به همراه0 افزوده شده و 65 حذف شده
  1. 0 2
      CMakeLists.txt
  2. 0 3
      natvis/entt/platform.natvis
  3. 0 1
      src/entt/entt.hpp
  4. 0 59
      src/entt/platform/android-ndk-r17.hpp

+ 0 - 2
CMakeLists.txt

@@ -170,7 +170,6 @@ if(ENTT_INCLUDE_HEADERS)
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/meta/template.hpp>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/meta/type_traits.hpp>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/meta/utility.hpp>
-            $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/platform/android-ndk-r17.hpp>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/poly/fwd.hpp>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/poly/poly.hpp>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/src/entt/process/fwd.hpp>
@@ -201,7 +200,6 @@ if(ENTT_HAS_NATVIS)
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/natvis/entt/graph.natvis>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/natvis/entt/locator.natvis>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/natvis/entt/meta.natvis>
-            $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/natvis/entt/platform.natvis>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/natvis/entt/poly.natvis>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/natvis/entt/process.natvis>
             $<BUILD_INTERFACE:${EnTT_SOURCE_DIR}/natvis/entt/resource.natvis>

+ 0 - 3
natvis/entt/platform.natvis

@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
-</AutoVisualizer>

+ 0 - 1
src/entt/entt.hpp

@@ -51,7 +51,6 @@
 #include "meta/template.hpp"
 #include "meta/type_traits.hpp"
 #include "meta/utility.hpp"
-#include "platform/android-ndk-r17.hpp"
 #include "poly/poly.hpp"
 #include "process/process.hpp"
 #include "process/scheduler.hpp"

+ 0 - 59
src/entt/platform/android-ndk-r17.hpp

@@ -1,59 +0,0 @@
-#ifndef ENTT_PLATFORM_ANDROID_NDK_R17_HPP
-#define ENTT_PLATFORM_ANDROID_NDK_R17_HPP
-
-/*! @cond TURN_OFF_DOXYGEN */
-#ifdef __ANDROID__
-#    include <android/ndk-version.h>
-#    if __NDK_MAJOR__ == 17
-
-#        include <functional>
-#        include <type_traits>
-#        include <utility>
-
-namespace std {
-
-namespace internal {
-
-template<typename Func, typename... Args>
-constexpr auto is_invocable(int) -> decltype(std::invoke(std::declval<Func>(), std::declval<Args>()...), std::true_type{});
-
-template<typename, typename...>
-constexpr std::false_type is_invocable(...);
-
-template<typename Ret, typename Func, typename... Args>
-constexpr auto is_invocable_r(int)
--> std::enable_if_t<decltype(std::is_convertible_v<decltype(std::invoke(std::declval<Func>(), std::declval<Args>()...)), Ret>, std::true_type>;
-
-
-template<typename, typename, typename...>
-constexpr std::false_type is_invocable_r(...);
-
-} // namespace internal
-
-template<typename Func, typename... Args>
-struct is_invocable: decltype(internal::is_invocable<Func, Args...>(0)) {};
-
-template<typename Func, typename... Argsv>
-inline constexpr bool is_invocable_v = std::is_invocable<Func, Args...>::value;
-
-template<typename Ret, typename Func, typename... Args>
-struct is_invocable_r: decltype(internal::is_invocable_r<Ret, Func, Args...>(0)) {};
-
-template<typename Ret, typename Func, typename... Args>
-inline constexpr bool is_invocable_r_v = std::is_invocable_r<Ret, Func, Args...>::value;
-
-template<typename Func, typename... Args>
-struct invoke_result {
-    using type = decltype(std::invoke(std::declval<Func>(), std::declval<Args>()...));
-};
-
-template<typename Func, typename... Args>
-using invoke_result_t = typename std::invoke_result<Func, Args...>::type;
-
-} // namespace std
-
-#    endif
-#endif
-/*! @endcond */
-
-#endif