blob: ef643a0be0b90532c01d52b1e1f4b15944d0547f [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "garnet/examples/ui/hello_scene_manager/app.h"
#include "lib/fxl/command_line.h"
#include "lib/fxl/log_settings_command_line.h"
int main(int argc, const char** argv) {
auto command_line = fxl::CommandLineFromArgcArgv(argc, argv);
if (!fxl::SetLogSettingsFromCommandLine(command_line))
return 1;
fsl::MessageLoop loop;
hello_scene_manager::App app;
loop.task_runner()->PostDelayedTask(
[&loop] {
FXL_LOG(INFO) << "Quitting.";
loop.QuitNow();
},
fxl::TimeDelta::FromSeconds(50));
loop.Run();
return 0;
}