aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/webassembly/webassemblyemsdk.h
blob: f6cfde56fd9942aeb422c41fa3a24853d8005dd1 (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
29
30
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <utils/fileutils.h>

#include <QCache>
#include <QVersionNumber>

namespace Utils {
class Environment;
}

namespace WebAssembly {
namespace Internal {

class WebAssemblyEmSdk
{
public:
    static bool isValid(const Utils::FilePath &sdkRoot);
    static void addToEnvironment(const Utils::FilePath &sdkRoot, Utils::Environment &env);
    static QVersionNumber version(const Utils::FilePath &sdkRoot);
    static void registerEmSdk(const Utils::FilePath &sdkRoot);
    static Utils::FilePath registeredEmSdk();
    static void clearCaches();
};

} // namespace Internal
} // namespace WebAssembly