blob: 29da4b23e2403343d840ec6311dd9e9b2f93105e (
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
|
// Copyright (C) 2021 The Qt Company Ltd.
// Copyright (C) 2019 Luxoft Sweden AB
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef GLOBAL_H
#define GLOBAL_H
#include <QtCore/qglobal.h>
#include <QtAppManCommon/qtappman_common-config.h>
#define QT_BEGIN_NAMESPACE_AM namespace QtAM {
#define QT_END_NAMESPACE_AM }
#define QT_USE_NAMESPACE_AM using namespace QtAM;
#define QT_PREPEND_NAMESPACE_AM(name) QtAM::name
QT_BEGIN_NAMESPACE_AM
// make sure the namespace exists
QT_END_NAMESPACE_AM
#if !defined(AM_COMPILING_APPMAN) && !defined(AM_COMPILING_LAUNCHER) && !defined(QT_TESTCASE_BUILDDIR)
# if defined(AM_FORCE_COMPILING_AGAINST_MODULES)
# warning "You have forced compiling against AppMan modules outside of a (custom) appman binary or launcher build."
# else
# error "You are including headers from AppMan modules outside of a (custom) appman binary or launcher build. If you are aware of the implications of AppMan's modules being static libraries, you can #define AM_FORCE_COMPILING_AGAINST_MODULES"
# endif
#endif
#endif // GLOBAL_H
|