Add support for custom license templates.
[chromium-blink-merge.git] / remoting / webapp / BUILD.gn
blob43b26a3f0884923c2c08bafd72b74e397a8d378b
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")
10 group("webapp") {
11   deps = [
12     ":webapp_v1",
13     ":ar_sample_app",
14     ":credits",
15   ]
17   if (enable_nacl) {
18     deps += [ ":webapp_v2" ]
19   }
22 desktop_remoting_webapp("webapp_v1") {
23   webapp_type = "v1"
24   output_dir = "remoting/remoting-webapp"
25   zip_path = "remoting/remoting-webapp.zip"
26   extra_files = []
29 desktop_remoting_webapp("webapp_v2") {
30   webapp_type = "v2_pnacl"
31   output_dir = "remoting/remoting-webapp.v2"
32   zip_path = "remoting/remoting-webapp.v2.zip"
33   extra_files = [
34     "crd/remoting_client_pnacl.nmf.jinja2",
35     # TODO(garykac): Get correct path to this.
36     #"<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe",
37   ]
40 app_remoting_webapp("ar_sample_app") {
41   app_key = "Sample_App"
42   app_id = "ljacajndfccfgnfohlgkdphmbnpkjflk"
43   app_client_id = "sample_client_id"
44   app_name = "App Remoting Client"
45   app_description = "App Remoting client"
46   app_capabilities = [ "GOOGLE_DRIVE" ]
47   manifest_key = "remotingdevbuild"
50 # GYP version: remoting/remoting_client:remoting_credits
51 action("credits") {
52   about_credits_file = "$target_gen_dir/credits.html"
53   script = "//tools/licenses.py"
55   inputs = [
56     "base/html/credits.tmpl",
57     "base/html/credits_entry.tmpl",
58   ]
60   outputs = [
61     about_credits_file,
62   ]
64   args = [
65     "credits",
66     rebase_path(about_credits_file, root_build_dir),
67     "--file-template",
68     rebase_path("base/html/credits.tmpl", root_build_dir),
69     "--entry-template",
70     rebase_path("base/html/credits_entry.tmpl", root_build_dir),
71   ]