Rerun C++ SDK
Loading...
Searching...
No Matches
rerun_sdk_export.hpp
1#pragma once
2
3// If the library is not compiled on Windows, RERUN_SDK_EXPORT is defined as empty macro.
4#ifndef _MSC_VER
5#define RERUN_SDK_EXPORT
6#else
7// If rerun_sdk is compiled as shared on Windows, RERUN_SDK_EXPORT
8// is __declspec(dllexport) for the compilation unit that are part
9// of the library, and __declspec(dllimport) for compilation units
10// that link to the library.
11#ifdef RERUN_SDK_COMPILED_AS_SHARED_LIBRARY
12// rerun_sdk_EXPORTS is defined by CMake itself when compiling a shared
13// library, see https://cmake.org/cmake/help/latest/prop_tgt/DEFINE_SYMBOL.html
14#ifdef rerun_sdk_EXPORTS
15// We are building this library.
16#define RERUN_SDK_EXPORT __declspec(dllexport)
17#else
18// We are using this library.
19#define RERUN_SDK_EXPORT __declspec(dllimport)
20#endif
21#else
22// If rerun_sdk is compiled as static on Windows, RERUN_SDK_EXPORT is defined as an empty macro.
23#define RERUN_SDK_EXPORT
24#endif
25#endif