| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//remoting/build/config/remoting_build.gni") | 5 import("//remoting/build/config/remoting_build.gni") |
| 6 | 6 |
| 7 action("credits") { | 7 action("credits") { |
| 8 # We put this in $root_build_dir/gen/remoting instead of | 8 # We put this in $root_build_dir/gen/remoting instead of |
| 9 # $root_build_dir/gen/remoting/host (target_gen_dir) for | 9 # $root_build_dir/gen/remoting/host (target_gen_dir) for |
| 10 # compatibility w/ GYP, since the installer needs the file to | 10 # compatibility w/ GYP, since the installer needs the file to |
| 11 # be at the same location. | 11 # be at the same location. |
| 12 about_credits_file = "$root_build_dir/gen/remoting/CREDITS.txt" | 12 about_credits_file = "$root_build_dir/gen/remoting/CREDITS.txt" |
| 13 script = "//tools/licenses.py" | 13 script = "//tools/licenses.py" |
| 14 depfile = "$target_gen_dir/$target_name.d" |
| 14 | 15 |
| 15 inputs = [ | 16 inputs = [ |
| 16 "credits.tmpl", | 17 "credits.tmpl", |
| 17 "credits_entry.tmpl", | 18 "credits_entry.tmpl", |
| 18 ] | 19 ] |
| 19 | 20 |
| 20 outputs = [ | 21 outputs = [ |
| 21 about_credits_file, | 22 about_credits_file, |
| 22 ] | 23 ] |
| 23 | 24 |
| 24 args = [ | 25 args = [ |
| 25 "credits", | 26 "credits", |
| 26 rebase_path(about_credits_file, root_build_dir), | 27 rebase_path(about_credits_file, root_build_dir), |
| 27 "--file-template", | 28 "--file-template", |
| 28 rebase_path("credits.tmpl", root_build_dir), | 29 rebase_path("credits.tmpl", root_build_dir), |
| 29 "--entry-template", | 30 "--entry-template", |
| 30 rebase_path("credits_entry.tmpl", root_build_dir), | 31 rebase_path("credits_entry.tmpl", root_build_dir), |
| 32 "--depfile", |
| 33 rebase_path(depfile, root_build_dir), |
| 31 ] | 34 ] |
| 32 } | 35 } |
| OLD | NEW |