forked from qt-creator/qt-creator
WebAssembly: Drop run config inheritance from CustomExecutable
Also, auto-detect free port. Change-Id: I377956ef20a928f1877d702162792e7cae75a202 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -25,31 +25,23 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <projectexplorer/customexecutablerunconfiguration.h>
|
||||
|
||||
namespace ProjectExplorer {
|
||||
class Target;
|
||||
}
|
||||
#include <projectexplorer/runconfiguration.h>
|
||||
#include <projectexplorer/runcontrol.h>
|
||||
|
||||
namespace WebAssembly {
|
||||
namespace Internal {
|
||||
|
||||
// Runs a webassembly application via emscripten's "emrun" tool
|
||||
// https://emscripten.org/docs/compiling/Running-html-files-with-emrun.html
|
||||
class EmrunRunConfiguration : public ProjectExplorer::CustomExecutableRunConfiguration
|
||||
{
|
||||
public:
|
||||
EmrunRunConfiguration(ProjectExplorer::Target *target, Core::Id id);
|
||||
|
||||
private:
|
||||
void updateConfiguration();
|
||||
};
|
||||
|
||||
class EmrunRunConfigurationFactory : public ProjectExplorer::FixedRunConfigurationFactory
|
||||
{
|
||||
public:
|
||||
EmrunRunConfigurationFactory();
|
||||
};
|
||||
|
||||
class EmrunRunWorkerFactory : public ProjectExplorer::RunWorkerFactory
|
||||
{
|
||||
public:
|
||||
EmrunRunWorkerFactory();
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Webassembly
|
||||
|
||||
Reference in New Issue
Block a user