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 # Keep in sync with 'remoting_webapp' target in remoting/remoting_client.gypi.
7 import("//remoting/remoting_locales.gni")
8 import("//remoting/remoting_options.gni")
9 import("//remoting/remoting_version.gni")
10 import("//remoting/webapp/files.gni")
12 # The base remoting directory that is used as the root directory for file
13 # references. Many of the scripts rely on the files being specified relative
15 remoting_dir = "//remoting"
17 template("remoting_webapp") {
18 locales_listfile = target_name + "_locales"
19 listfile = "$target_gen_dir/${target_name}_locales.txt"
20 listfile_rel = rebase_path(listfile, root_build_dir)
22 action(locales_listfile) {
23 script = "../tools/build/remoting_localize.py"
32 rebase_path(webapp_locale_dir, root_build_dir) +
33 "/@{json_suffix}/messages.json",
37 args += remoting_locales
41 script = "build-webapp.py"
43 webapp_type = invoker.webapp_type
44 output_dir = invoker.output_dir
45 zip_path = invoker.zip_path
46 extra_files = invoker.extra_files
50 "$target_gen_dir/$zip_path",
56 "//remoting/resources",
61 if (is_official_build) {
62 buildtype = "Official"
68 generated_html_files = [
69 "$target_gen_dir/background.html",
70 "$target_gen_dir/main.html",
71 "$target_gen_dir/message_window.html",
72 "$target_gen_dir/wcs_sandbox.html",
80 rebase_path("crd/manifest.json.jinja2", root_build_dir),
83 args += rebase_path(generated_html_files, root_build_dir)
84 args += rebase_path(remoting_webapp_crd_files, root_build_dir)
85 args += rebase_path(extra_files, root_build_dir)