aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcl/qtquickclglobal.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-04-17 10:53:25 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-04-17 09:43:36 +0000
commit5051c63b3b818f5fb0ed9f92e74b916ea9d4e723 (patch)
treec44cd5f423d8e6a8217e7f7557ed9cd79c136bf6 /src/quickcl/qtquickclglobal.h
parent6d073d4e070790d4e9ef707a9deef975e9f70695 (diff)
Long live QtQuickCL!
Change-Id: I16954f50c631441189dd450980da2c3266a68c71 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'src/quickcl/qtquickclglobal.h')
-rw-r--r--src/quickcl/qtquickclglobal.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/quickcl/qtquickclglobal.h b/src/quickcl/qtquickclglobal.h
new file mode 100644
index 0000000..1e459eb
--- /dev/null
+++ b/src/quickcl/qtquickclglobal.h
@@ -0,0 +1,65 @@
+/****************************************************************************
+**
+** Copyright (C) 2015 The Qt Company Ltd.
+** Contact: http://www.qt.io/licensing/
+**
+** This file is part of the Qt Quick CL module
+**
+** $QT_BEGIN_LICENSE:LGPL3$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see http://www.qt.io/terms-conditions. For further
+** information use the contact form at http://www.qt.io/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 3 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPLv3 included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 3 requirements
+** will be met: https://www.gnu.org/licenses/lgpl.html.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 2.0 or later 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 2.0 requirements will be
+** met: http://www.gnu.org/licenses/gpl-2.0.html.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QTQUICKCLGLOBAL_H
+#define QTQUICKCLGLOBAL_H
+
+#include <QtCore/qglobal.h>
+
+#ifdef Q_OS_OSX
+#include <OpenCL/opencl.h>
+#include <OpenGL/OpenGL.h>
+#else
+#include <CL/opencl.h>
+#endif
+
+QT_BEGIN_NAMESPACE
+
+#ifndef Q_QUICKCL_EXPORT
+# ifndef QT_STATIC
+# if defined(QT_BUILD_QUICKCL_LIB)
+# define Q_QUICKCL_EXPORT Q_DECL_EXPORT
+# else
+# define Q_QUICKCL_EXPORT Q_DECL_IMPORT
+# endif
+# else
+# define Q_QUICKCL_EXPORT
+# endif
+#endif
+
+QT_END_NAMESPACE
+
+#endif