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:
hjk
2019-08-01 17:57:52 +02:00
parent b6a5de1bb0
commit 399f8d2dff
7 changed files with 100 additions and 83 deletions

View File

@@ -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