summaryrefslogtreecommitdiffstats
path: root/src/sensors/qsensorsglobal.h
diff options
context:
space:
mode:
authoralex <alex.blasche@nokia.com>2011-10-17 15:16:31 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-17 08:46:14 +0200
commita3ee9bc23ead3ca88cb6787ca7add085d1d8ffcc (patch)
treebf58be33ffe5f7b18c4c20b0fec088913f7460a3 /src/sensors/qsensorsglobal.h
parent4cb9338c54fc68477c6597df2d36616951a3930d (diff)
First step of removal of Q_SENSORS_EXPXORT macro from qglobal.h
Each module handles its own exports. We need to change the QtSensors version, remove the qglobal.h define and then add it back under the old name in QtSensors. Change-Id: I4183b7fcfc46469745c11c373d3122f02d64ccc7 Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'src/sensors/qsensorsglobal.h')
-rw-r--r--src/sensors/qsensorsglobal.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/src/sensors/qsensorsglobal.h b/src/sensors/qsensorsglobal.h
new file mode 100644
index 00000000..0aab6a6d
--- /dev/null
+++ b/src/sensors/qsensorsglobal.h
@@ -0,0 +1,73 @@
+/****************************************************************************
+**
+** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the QtSensors module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** GNU Lesser General Public License Usage
+** This file may be used under the terms of the GNU Lesser General Public
+** License version 2.1 as published by the Free Software Foundation and
+** appearing in the file LICENSE.LGPL included in the packaging of this
+** file. Please review the following information to ensure the GNU Lesser
+** General Public License version 2.1 requirements will be met:
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU General
+** Public License version 3.0 as published by the Free Software Foundation
+** and appearing in the file LICENSE.GPL included in the packaging of this
+** file. Please review the following information to ensure the GNU General
+** Public License version 3.0 requirements will be met:
+** http://www.gnu.org/copyleft/gpl.html.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+#ifndef QSENSORSGLOBAL_H
+#define QSENSORSGLOBAL_H
+
+#include <QtCore/qglobal.h>
+
+#if defined(Q_OS_WIN)
+# if defined(QT_NODLL)
+# undef QT_MAKEDLL
+# undef QT_DLL
+# elif defined(QT_MAKEDLL)
+# if defined(QT_DLL)
+# undef QT_DLL
+# endif
+# if defined(QT_BUILD_SENSORS_LIB)
+# define Q_SENSORS_EXPORT_TEMP Q_DECL_EXPORT
+# else
+# define Q_SENSORS_EXPORT_TEMP Q_DECL_IMPORT
+# endif
+# elif defined(QT_DLL)
+# define Q_SENSORS_EXPORT_TEMP Q_DECL_EXPORT
+# endif
+#endif
+
+#if !defined(Q_SENSORS_EXPORT_TEMP)
+# if defined(QT_SHARED)
+# define Q_SENSORS_EXPORT_TEMP Q_DECL_EXPORT
+# else
+# define Q_SENSORS_EXPORT_TEMP
+# endif
+#endif
+
+#endif // QSENSORSGLOBAL_H
+