| Index: mojo/monacl/monacl_shell.cc
|
| diff --git a/mojo/monacl/monacl_shell.cc b/mojo/monacl/monacl_shell.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..406640d4467f6517ac3aef5ecec9091333428d08
|
| --- /dev/null
|
| +++ b/mojo/monacl/monacl_shell.cc
|
| @@ -0,0 +1,23 @@
|
| +// Copyright 2014 The Chromium 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 <iostream>
|
| +
|
| +#include "mojo/embedder/embedder.h"
|
| +#include "mojo/monacl/monacl_sel_main.h"
|
| +
|
| +
|
| +int main (int argc, char *argv[]) {
|
| + if (argc < 3) {
|
| + std::cout << "Usage : " << argv[0] << " irt app [args for app]" << std::endl;
|
| + return 1;
|
| + }
|
| +
|
| + const char *nexe_file = argv[2];
|
| + const char *irt_file = argv[1];
|
| +
|
| + mojo::embedder::Init();
|
| + int ret_code = LaunchNaCl(nexe_file, irt_file, argc - 2, argv + 2);
|
| + return ret_code;
|
| +}
|
|
|