#ifndef MEDIAPIPE_FRAMEWORK_PORT_H_
#define MEDIAPIPE_FRAMEWORK_PORT_H_
#if !defined(MEDIAPIPE_MOBILE) && \
(defined(__ANDROID__) || defined(__EMSCRIPTEN__))
#define MEDIAPIPE_MOBILE
#endif
#if !defined(MEDIAPIPE_ANDROID) && defined(__ANDROID__)
#define MEDIAPIPE_ANDROID
#endif
#if defined(__APPLE__)
#include "TargetConditionals.h"
#if !defined(MEDIAPIPE_IOS) && !TARGET_OS_OSX
#define MEDIAPIPE_IOS
#if !defined(MEDIAPIPE_MOBILE) && !TARGET_OS_OSX
#define MEDIAPIPE_MOBILE
#endif
#endif
#if !defined(MEDIAPIPE_OSX) && TARGET_OS_OSX
#define MEDIAPIPE_OSX
#endif
#endif
#if !defined(MEDIAPIPE_DISABLE_GL_COMPUTE) && \
(defined(__APPLE__) || defined(__EMSCRIPTEN__) || MEDIAPIPE_DISABLE_GPU || \
MEDIAPIPE_USING_LEGACY_SWIFTSHADER)
#define MEDIAPIPE_DISABLE_GL_COMPUTE
#endif
#define MEDIAPIPE_OPENGL_ES_20 …
#define MEDIAPIPE_OPENGL_ES_30 …
#define MEDIAPIPE_OPENGL_ES_31 …
#if MEDIAPIPE_DISABLE_GPU
#define MEDIAPIPE_OPENGL_ES_VERSION …
#define MEDIAPIPE_METAL_ENABLED …
#else
#if defined(MEDIAPIPE_ANDROID)
#if defined(MEDIAPIPE_DISABLE_GL_COMPUTE)
#define MEDIAPIPE_OPENGL_ES_VERSION …
#else
#define MEDIAPIPE_OPENGL_ES_VERSION …
#endif
#define MEDIAPIPE_METAL_ENABLED …
#elif defined(MEDIAPIPE_IOS)
#define MEDIAPIPE_OPENGL_ES_VERSION …
#define MEDIAPIPE_METAL_ENABLED …
#elif defined(MEDIAPIPE_OSX)
#define MEDIAPIPE_OPENGL_ES_VERSION …
#if MEDIAPIPE_USE_WEBGPU
#define MEDIAPIPE_METAL_ENABLED …
#else
#define MEDIAPIPE_METAL_ENABLED …
#endif
#elif defined(__EMSCRIPTEN__)
#define MEDIAPIPE_OPENGL_ES_VERSION …
#define MEDIAPIPE_METAL_ENABLED …
#else
#if MEDIAPIPE_USE_WEBGPU
#define MEDIAPIPE_OPENGL_ES_VERSION …
#else
#define MEDIAPIPE_OPENGL_ES_VERSION …
#endif
#define MEDIAPIPE_METAL_ENABLED …
#endif
#endif
#ifndef MEDIAPIPE_HAS_RTTI
#if defined(__clang__) && defined(__has_feature)
#define MEDIAPIPE_HAS_RTTI …
#elif defined(__GNUC__) && !defined(__GXX_RTTI)
#define MEDIAPIPE_HAS_RTTI …
#elif defined(_MSC_VER) && !defined(_CPPRTTI)
#define MEDIAPIPE_HAS_RTTI …
#else
#define MEDIAPIPE_HAS_RTTI …
#endif
#endif
#if !defined(MEDIAPIPE_NO_JNI) || defined(MEDIAPIPE_ANDROID_LINK_NATIVE_WINDOW)
#if (__ANDROID_API__ >= 26) || defined(__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__)
#define MEDIAPIPE_GPU_BUFFER_USE_AHWB …
#endif
#endif
#if !defined(MEDIAPIPE_NO_JNI) || defined(MEDIAPIPE_ANDROID_LINK_NATIVE_WINDOW)
#if __ANDROID_API__ >= 26 || defined(__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__)
#define MEDIAPIPE_TENSOR_USE_AHWB …
#endif
#endif
#endif