// Copyright 2020-2022, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 /*! * @file * @brief Very simple target main file to export the right symbol. * @author Jakob Bornecrantz * @author Christoph Haag * @ingroup st_ovrd */ #include "ovrd_interface.h" #include "xrt/xrt_config_os.h" #if defined(XRT_OS_WINDOWS) #define HMD_DLL_EXPORT __declspec(dllexport) #define HMD_DLL_IMPORT __declspec(dllimport) #elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(__APPLE__) #define HMD_DLL_EXPORT __attribute__((visibility("default"))) #define HMD_DLL_IMPORT #else #error "Unsupported Platform." #endif HMD_DLL_EXPORT void * HmdDriverFactory(const char *pInterfaceName, int *pReturnCode) { return ovrd_hmd_driver_impl(pInterfaceName, pReturnCode); }