DtkDevice
DTK library for device.
dtkdevice_global.h
1// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4#ifndef DTKDEVICE_GLOBAL_H
5#define DTKDEVICE_GLOBAL_H
6#include <qnamespace.h>
7#include <QtCore/qglobal.h>
8
9#define DTK_NAMESPACE Dtk
10#define DTK_BEGIN_NAMESPACE namespace DTK_NAMESPACE {
11#define DTK_END_NAMESPACE }
12#define DTK_USE_NAMESPACE using namespace DTK_NAMESPACE;
13
14#define DDEVICE_NAMESPACE Device
15#define DTK_DEVICE_NAMESPACE DTK_NAMESPACE::DDEVICE_NAMESPACE
16
17#define DDEVICE_BEGIN_NAMESPACE namespace DTK_NAMESPACE { namespace DDEVICE_NAMESPACE {
18#define DDEVICE_END_NAMESPACE }}
19#define DDEVICE_USE_NAMESPACE using namespace DTK_DEVICE_NAMESPACE;
20
21#if defined(DTK_STATIC_LIB)
22# define LIBDTKDEVICESHARED_EXPORT
23#else
24#if defined(LIBDTKDEVICE_LIBRARY)
25# define LIBDTKDEVICESHARED_EXPORT Q_DECL_EXPORT
26#else
27# define LIBDTKDEVICESHARED_EXPORT Q_DECL_IMPORT
28#endif
29#endif
30
31#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
32 #define D_SPLIT_BEHAVIOR Qt::SkipEmptyParts
33#else
34 #define D_SPLIT_BEHAVIOR QString::SkipEmptyParts
35#endif
36
37#endif