| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/remoting_locales.gni") | 5 import("//remoting/remoting_locales.gni") |
| 6 import("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
| 7 | 7 |
| 8 if (is_android) { | 8 if (is_android) { |
| 9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
| 10 } | 10 } |
| 11 | 11 |
| 12 group("resources") { | 12 group("resources") { |
| 13 public_deps = [ | 13 public_deps = [ |
| 14 ":copy_locales", | 14 ":copy_locales", |
| 15 ":strings", | 15 ":strings", |
| 16 | 16 ":verify_resources", |
| 17 #":verify_resources", TODO(GYP) enable this. | |
| 18 ] | 17 ] |
| 19 } | 18 } |
| 20 | 19 |
| 21 # TODO(GYP) enable verify_resources. The bots are complaining about | 20 # TODO(GYP) enable verify_resources. The bots are complaining about |
| 22 # gen/main.html not being found but this doesn't seems to reproduce locally. | 21 # gen/main.html not being found but this doesn't seems to reproduce locally. |
| 23 if (false) { | |
| 24 action("verify_resources") { | |
| 25 script = "//remoting/tools/verify_resources.py" | |
| 26 | 22 |
| 27 sources_to_verify = [ | 23 action("verify_resources") { |
| 28 "$root_gen_dir/main.html", | 24 script = "//remoting/tools/verify_resources.py" |
| 29 "../base/resources_unittest.cc", | |
| 30 "../host/continue_window_mac.mm", | |
| 31 "../host/disconnect_window_mac.mm", | |
| 32 "../host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.
jinja2", | |
| 33 "../host/mac/me2me_preference_pane-InfoPlist.strings.jinja2", | |
| 34 "../host/win/core.rc.jinja2", | |
| 35 "../host/win/host_messages.mc.jinja2", | |
| 36 "../host/win/version.rc.jinja2", | |
| 37 "../resources/play_store_resources.cc", | |
| 38 "../webapp/background/background.js", | |
| 39 "../webapp/butter_bar.js", | |
| 40 "../webapp/client_screen.js", | |
| 41 "../webapp/error.js", | |
| 42 "../webapp/host_list.js", | |
| 43 "../webapp/host_setup_dialog.js", | |
| 44 "../webapp/host_table_entry.js", | |
| 45 "../webapp/manifest.json.jinja2", | |
| 46 "../webapp/paired_client_manager.js", | |
| 47 "../webapp/remoting.js", | |
| 48 "../webapp/window_frame.js", | |
| 49 ] | |
| 50 | 25 |
| 51 inputs = [ "remoting_strings.grd" ] + sources_to_verify | 26 sources_to_verify = [ |
| 27 # "$root_gen_dir/main.html", |
| 28 "../host/continue_window_mac.mm", |
| 29 "../host/disconnect_window_mac.mm", |
| 30 "../host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.ji
nja2", |
| 31 "../host/mac/me2me_preference_pane-InfoPlist.strings.jinja2", |
| 32 "../host/win/core.rc.jinja2", |
| 33 "../host/win/host_messages.mc.jinja2", |
| 34 "../host/win/version.rc.jinja2", |
| 35 "../resources/play_store_resources.cc", |
| 36 "../webapp/crd/js/background.js", |
| 37 "../webapp/crd/js/butter_bar.js", |
| 38 "../webapp/base/js/error.js", |
| 39 "../webapp/crd/js/host_list.js", |
| 40 "../webapp/crd/js/host_setup_dialog.js", |
| 41 "../webapp/crd/js/host_table_entry.js", |
| 42 "../webapp/crd/manifest.json.jinja2", |
| 43 "../webapp/crd/js/paired_client_manager.js", |
| 44 "../webapp/crd/js/desktop_remoting.js", |
| 45 "../webapp/crd/js/window_frame.js", |
| 46 ] |
| 52 | 47 |
| 53 stampfile = "$root_build_dir/remoting_resources_verified_stamp" | 48 inputs = [ "remoting_strings.grd" ] + sources_to_verify |
| 54 outputs = [ | |
| 55 stampfile, | |
| 56 ] | |
| 57 | 49 |
| 58 args = [ | 50 stampfile = "$root_build_dir/remoting_resources_verified_stamp" |
| 59 "-t", | 51 outputs = [ |
| 60 rebase_path(stampfile, root_build_dir), | 52 stampfile, |
| 61 "-r", | 53 ] |
| 62 rebase_path("remoting_strings.grd", root_build_dir), | |
| 63 ] + rebase_path(sources_to_verify, root_build_dir) | |
| 64 | 54 |
| 65 deps = [ | 55 args = [ |
| 66 "//remoting/webapp:main_html", | 56 "-t", |
| 67 ] # Generates main.html. | 57 rebase_path(stampfile, root_build_dir), |
| 68 } | 58 "-r", |
| 69 } # if false | 59 rebase_path("remoting_strings.grd", root_build_dir), |
| 60 ] + rebase_path(sources_to_verify, root_build_dir) |
| 61 |
| 62 deps = [ |
| 63 # "//remoting/webapp:webapp", |
| 64 ] # Generates main.html. |
| 65 } |
| 70 | 66 |
| 71 if (is_android) { | 67 if (is_android) { |
| 72 android_string_outputs = | 68 android_string_outputs = |
| 73 [ "remoting/android/res/values/remoting_strings.xml" ] | 69 [ "remoting/android/res/values/remoting_strings.xml" ] |
| 74 android_string_outputs += process_file_template( | 70 android_string_outputs += process_file_template( |
| 75 remoting_android_locales, | 71 remoting_android_locales, |
| 76 [ "remoting/android/res/values-{{source_name_part}}/remoting_strings.x
ml" ]) | 72 [ "remoting/android/res/values-{{source_name_part}}/remoting_strings.x
ml" ]) |
| 77 } | 73 } |
| 78 | 74 |
| 79 grit("strings") { | 75 grit("strings") { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 "-g", | 137 "-g", |
| 142 rebase_path(root_gen_dir, root_build_dir), | 138 rebase_path(root_gen_dir, root_build_dir), |
| 143 "-x", | 139 "-x", |
| 144 rebase_path(root_out_dir, root_build_dir), | 140 rebase_path(root_out_dir, root_build_dir), |
| 145 ] + remoting_locales | 141 ] + remoting_locales |
| 146 | 142 |
| 147 deps = [ | 143 deps = [ |
| 148 ":strings", | 144 ":strings", |
| 149 ] | 145 ] |
| 150 } | 146 } |
| OLD | NEW |