Loading...
Searching...
No Matches
Platforms.hpp
1#pragma once
2#include <QString>
3#include <QStringList>
4
5#include <score_lib_base_export.h>
6
7namespace score
8{
10SCORE_LIB_BASE_EXPORT
11QString currentPlatform() noexcept;
12
13SCORE_LIB_BASE_EXPORT
14const QStringList& knownPlatforms() noexcept;
15
16SCORE_LIB_BASE_EXPORT
17QString platformName(const QString& token) noexcept;
18
20SCORE_LIB_BASE_EXPORT
21bool runsOnThisPlatform(const QString& platforms) noexcept;
22}
Base toolkit upon which the software is built.
Definition Application.cpp:108
bool runsOnThisPlatform(const QString &platforms) noexcept
platforms is a space-separated whitelist; empty means everywhere.
Definition Platforms.cpp:58
QString currentPlatform() noexcept
"windows", "macos", "linux", "bsd", "android", "ios" or "web".
Definition Platforms.cpp:9