Bifrost SDK
Bifrost SDK documentation
ObjectExport.h
Go to the documentation of this file.
1//-
2// =============================================================================
3// Copyright 2024 Autodesk, Inc. All rights reserved.
4//
5// Use of this software is subject to the terms of the Autodesk license
6// agreement provided at the time of installation or download, or which
7// otherwise accompanies this software in either electronic or hard copy form.
8// =============================================================================
9
10//+
11
12//
17
18#ifndef OBJECT_EXPORT_H
19#define OBJECT_EXPORT_H
20
21#if defined(_WIN32)
22#define OBJECT_EXPORT __declspec(dllexport)
23#define OBJECT_IMPORT __declspec(dllimport)
24#elif defined(__GNUC__)
25#define OBJECT_EXPORT __attribute__ ((visibility("default")))
26#define OBJECT_IMPORT __attribute__ ((visibility("default")))
27#else
28#define OBJECT_EXPORT
29#define OBJECT_IMPORT
30#endif
31
32#if defined(OBJECT_BUILD_DLL)
33#define OBJECT_DECL OBJECT_EXPORT
34#else
35#define OBJECT_DECL OBJECT_IMPORT
36#endif
37
38#ifndef BIFMETADOC
39#define BIFMETADOC( fDoc ) "{documentation, \\../docs/\\$\\{language\\}/" fDoc "}"
40#endif
41
42#ifndef BIFMETAICN
43#define BIFMETAICN( fIcn ) "{icon, \\../icons/" fIcn ".svg}"
44#endif
45
46#ifndef BIFMETA_DISPLAY_VALUE
47#define BIFMETA_DISPLAY_VALUE( value ) "{NodeValueDisplay, {format," value "}}"
48#endif
49
50#endif