Files
amnezia-client/client/core/utils/constants.h
T

36 lines
758 B
C++
Raw Normal View History

2021-10-23 04:26:47 -07:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef CONSTANTS_H
#define CONSTANTS_H
2023-07-15 14:19:48 -07:00
#include "version.h"
2021-10-23 04:26:47 -07:00
#include <stdint.h>
2023-07-15 14:19:48 -07:00
#include <QObject>
2021-10-23 04:26:47 -07:00
namespace Constants {
2023-07-15 14:19:48 -07:00
inline QString versionString() { return QStringLiteral(APP_VERSION); }
2021-10-23 04:26:47 -07:00
constexpr const char* PLATFORM_NAME =
2023-07-15 14:19:48 -07:00
#if defined(MZ_IOS)
2021-10-23 04:26:47 -07:00
"ios"
2023-07-15 14:19:48 -07:00
#elif defined(MZ_MACOS)
2021-10-23 04:26:47 -07:00
"macos"
2023-07-15 14:19:48 -07:00
#elif defined(MZ_LINUX)
2021-10-23 04:26:47 -07:00
"linux"
2023-07-15 14:19:48 -07:00
#elif defined(MZ_ANDROID)
2021-10-23 04:26:47 -07:00
"android"
2023-07-15 14:19:48 -07:00
#elif defined(MZ_WINDOWS)
2021-10-23 04:26:47 -07:00
"windows"
2023-07-15 14:19:48 -07:00
#elif defined(UNIT_TEST) || defined(MZ_DUMMY)
2021-10-23 04:26:47 -07:00
"dummy"
#else
# error "Unsupported platform"
#endif
;
2023-07-15 14:19:48 -07:00
}
2021-10-23 04:26:47 -07:00
#endif // CONSTANTS_H