aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/extensionsystem/extensionsystem_global.h
blob: 8e1c1ee463cfb87a1ecc4653a798cb7a7b71e415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <QLoggingCategory>
#include <qglobal.h>

#if defined(EXTENSIONSYSTEM_LIBRARY)
#  define EXTENSIONSYSTEM_EXPORT Q_DECL_EXPORT
#elif defined(EXTENSIONSYSTEM_STATIC_LIBRARY)
#  define EXTENSIONSYSTEM_EXPORT
#else
#  define EXTENSIONSYSTEM_EXPORT Q_DECL_IMPORT
#endif

#if defined(WITH_TESTS)
#  if defined(EXTENSIONSYSTEM_LIBRARY)
#    define EXTENSIONSYSTEM_TEST_EXPORT Q_DECL_EXPORT
#  elif defined(EXTENSIONSYSTEM_STATIC_LIBRARY)
#    define EXTENSIONSYSTEM_TEST_EXPORT
#  else
#    define EXTENSIONSYSTEM_TEST_EXPORT Q_DECL_IMPORT
#  endif
#else
#  define EXTENSIONSYSTEM_TEST_EXPORT
#endif

Q_DECLARE_LOGGING_CATEGORY(pluginLog)