Fix up linux build.
This commit is contained in:
parent
c81db288b0
commit
b76dc184b3
21 changed files with 86 additions and 66 deletions
|
@ -19,9 +19,9 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine
|
|||
std::cout.rdbuf(out.rdbuf());
|
||||
|
||||
CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
|
||||
|
||||
auto args = CommandLineArgs::Create();
|
||||
CommandLineArgs::initialize(args.get());
|
||||
|
||||
auto args = CommandLineArgs::Create();
|
||||
CommandLineArgs::initialize(args.get());
|
||||
|
||||
const auto user_args = args->getUserArgs();
|
||||
|
||||
|
@ -34,12 +34,16 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine
|
|||
main_app->initialize(std::move(args), std::move(applicationContext));
|
||||
|
||||
auto gui_app = std::make_unique<TestUiApplication>(nullptr, std::move(main_app));
|
||||
|
||||
|
||||
#else
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
auto args = CommandLineArgs::Create();
|
||||
auto args = CommandLineArgs::Create();
|
||||
args->process(argc, argv);
|
||||
auto user_args = args->getArgs();
|
||||
|
||||
auto gui_app = std::make_unique<TestUiApplication>(std::move(args));
|
||||
|
||||
#endif
|
||||
|
||||
TestCaseRunner::getInstance().setTestApplication(gui_app.get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue