2017-12-20 14:39:09 +01:00
|
|
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
2014-06-04 18:19:05 +02:00
|
|
|
*
|
|
|
|
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
2020-02-17 16:52:45 +01:00
|
|
|
* Copyright 2020, Adriaan de Groot <groot@kde.org>
|
2014-06-04 18:19:05 +02:00
|
|
|
*
|
|
|
|
* Calamares is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
2014-06-04 18:23:48 +02:00
|
|
|
* Calamares is distributed in the hope that it will be useful,
|
2014-06-04 18:19:05 +02:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DLLMACRO_H
|
|
|
|
#define DLLMACRO_H
|
|
|
|
|
|
|
|
#include <QtCore/qglobal.h>
|
|
|
|
|
2020-02-17 11:43:20 +01:00
|
|
|
/*
|
2020-02-17 16:52:45 +01:00
|
|
|
* Mark symbols exported from Calamares non-GUI library with DLLEXPORT.
|
|
|
|
* These are the public API of libcalamares.
|
2020-02-17 11:43:20 +01:00
|
|
|
*/
|
2014-06-04 18:19:05 +02:00
|
|
|
#ifndef DLLEXPORT
|
2019-08-04 22:24:55 +02:00
|
|
|
#if defined( DLLEXPORT_PRO )
|
|
|
|
#define DLLEXPORT Q_DECL_EXPORT
|
|
|
|
#else
|
|
|
|
#define DLLEXPORT Q_DECL_IMPORT
|
|
|
|
#endif
|
2014-06-04 18:19:05 +02:00
|
|
|
#endif
|
|
|
|
|
2020-02-17 16:52:45 +01:00
|
|
|
/*
|
|
|
|
* Mark symbols exported from Calamares GUI library with DLLEXPORT.
|
|
|
|
* These are the public API of libcalamaresui.
|
|
|
|
*/
|
|
|
|
#ifndef UIDLLEXPORT
|
|
|
|
#if defined( UIDLLEXPORT_PRO )
|
|
|
|
#define UIDLLEXPORT Q_DECL_EXPORT
|
|
|
|
#else
|
|
|
|
#define UIDLLEXPORT Q_DECL_IMPORT
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2020-02-17 11:43:20 +01:00
|
|
|
/*
|
|
|
|
* Mark symbols exported from Calamares C++ plugins with PLUGINDLLEXPORT.
|
|
|
|
* These are the public API of the libraries (generally, the plugin
|
|
|
|
* entry point)
|
|
|
|
*/
|
2020-02-17 11:37:35 +01:00
|
|
|
#ifndef PLUGINDLLEXPORT
|
|
|
|
#if defined( PLUGINDLLEXPORT_PRO )
|
|
|
|
#define PLUGINDLLEXPORT Q_DECL_EXPORT
|
|
|
|
#else
|
|
|
|
#define PLUGINDLLEXPORT Q_DECL_IMPORT
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2020-02-17 11:43:20 +01:00
|
|
|
/*
|
|
|
|
* For functions that should be static in production but also need to
|
|
|
|
* be tested, use STATICTEST as linkage specifier. When built as part
|
|
|
|
* of a test, the function will be given normal linkage.
|
|
|
|
*/
|
|
|
|
#ifndef STATICTEST
|
|
|
|
#if defined( BUILD_AS_TEST )
|
|
|
|
#define STATICTEST
|
|
|
|
#else
|
|
|
|
#define STATICTEST static
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2014-06-04 18:19:05 +02:00
|
|
|
#endif
|