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
3 # found in the LICENSE file.
5 # Keep in sync with targets in remoting/remoting_client.gypi.
7 import("//build/config/features.gni")
8 import("//remoting/webapp/build_template.gni")
16 deps += [ ":webapp_v2" ]
20 remoting_webapp("webapp_v1") {
22 output_dir = "remoting.webapp"
23 zip_path = "remoting-webapp.zip"
27 remoting_webapp("webapp_v2") {
28 webapp_type = "v2_pnacl"
29 output_dir = "remoting.webapp.v2"
30 zip_path = "remoting-webapp.v2.zip"
32 "crd/remoting_client_pnacl.nmf.jinja2",
33 # TODO(garykac): Get correct path to this.
34 #"<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe",
42 ":message_window_html",
48 script = "build-html.py"
50 inputs = [ remoting_webapp_template_main ] + remoting_webapp_template_files +
51 remoting_webapp_crd_main_html_all_js_files
54 "$target_gen_dir/main.html",
58 rebase_path("$target_gen_dir/main.html", root_build_dir),
59 rebase_path(remoting_webapp_template_main, root_build_dir),
63 rebase_path(remoting_dir, root_build_dir),
65 args += [ "--templates" ] +
66 rebase_path(remoting_webapp_template_files, remoting_dir)
68 rebase_path(remoting_webapp_crd_main_html_all_js_files, remoting_dir)
71 action("wcs_sandbox_html") {
72 script = "build-html.py"
74 inputs = [ remoting_webapp_template_wcs_sandbox ] +
75 remoting_webapp_wcs_sandbox_html_all_js_files
78 "$target_gen_dir/wcs_sandbox.html",
82 rebase_path("$target_gen_dir/wcs_sandbox.html", root_build_dir),
83 rebase_path(remoting_webapp_template_wcs_sandbox, root_build_dir),
87 rebase_path(remoting_webapp_wcs_sandbox_html_all_js_files, remoting_dir)
90 action("background_html") {
91 script = "build-html.py"
93 inputs = [ remoting_webapp_template_background ] +
94 remoting_webapp_background_html_all_js_files
97 "$target_gen_dir/background.html",
101 rebase_path("$target_gen_dir/background.html", root_build_dir),
102 rebase_path(remoting_webapp_template_background, root_build_dir),
104 args += [ "--js" ] + rebase_path(remoting_webapp_background_html_all_js_files,
108 action("message_window_html") {
109 script = "build-html.py"
111 inputs = [ remoting_webapp_template_message_window ] +
112 remoting_webapp_message_window_html_all_js_files
115 "$target_gen_dir/message_window.html",
119 rebase_path("$target_gen_dir/message_window.html", root_build_dir),
120 rebase_path(remoting_webapp_template_message_window, root_build_dir),
123 [ "--js" ] + rebase_path(remoting_webapp_message_window_html_all_js_files,