Fix nullptr crash in OnEmbed
[chromium-blink-merge.git] / mojo / generate_mojo_shell_assets_list.gni
bloba8c7cb862ee1c8d4abe1d7fc4be85499db13181d
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # Used to generate an assets_list file. To use supply the argument 'dir', which
6 # is where the assets can be found.
7 # TODO(sky): Perhaps combine this with the copy step?
8 template("generate_mojo_shell_assets_list") {
9   action(target_name) {
10     script = "//mojo/tools/generate_mojo_shell_assets_list.py"
11     args = [
12       "--dir",
13       rebase_path(invoker.dir, root_build_dir),
14     ]
15     outputs = [
16       invoker.dir + "/assets_list",
17     ]
18     if (defined(invoker.deps)) {
19       deps = invoker.deps
20     }
21     if (defined(invoker.testonly)) {
22       testonly = invoker.testonly
23     }
24   }