VR-Engage  2.2
Loading...
Searching...
No Matches
export.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file export.h
7//! \ingroup vreQtQuickRenderer
8//! \brief Defines export macros for the VREngage Qt Quick Renderer library
9//!
10//! This file contains platform-specific export macros that control the visibility
11//! of functions and classes in the VREngage Qt Quick Renderer library. These macros
12//! ensure proper symbol export when building the library and proper import when
13//! using the library in other components of the VREngage system.
14
15#pragma once
16
17
18//! \name DLL Export/Import Macros
19//! @{
20
21#ifdef _WIN32
22 #ifdef QTQUICKRENDERER_EXPORTS
23 //! \brief Export macro for Windows platform
24 //!
25 //! When building the VREngage Qt Quick Renderer library, this macro expands to
26 //! __declspec(dllexport) to make symbols visible to clients of the library.
27 #define QTQUICKRENDERER_DLL __declspec(dllexport)
28 #else
29 //! \brief Import macro for Windows platform
30 //!
31 //! When using the VREngage Qt Quick Renderer library, this macro expands to
32 //! __declspec(dllimport) to properly import symbols from the library.
33 #define QTQUICKRENDERER_DLL __declspec(dllimport)
34 #endif
35#else
36 //! \brief Export/import macro for non-Windows platforms
37 //!
38 //! On non-Windows platforms, this macro expands to nothing as these platforms
39 //! typically handle symbol visibility differently.
40 #define QTQUICKRENDERER_DLL
41#endif
42
43//! @{