base/threading: remove ScopedTracker placed for experiments
[chromium-blink-merge.git] / remoting / webapp / BUILD.gn
blobf46d72218b544613ea859d29d79f76afaf2dbcec
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")
9 import("//remoting/webapp/files.gni")
11 # GYP version: remoting/remoting_client:remoting_credits
12 action("credits") {
13   about_credits_file = "$target_gen_dir/credits.html"
14   script = "//tools/licenses.py"
16   inputs = [
17     "base/html/credits.tmpl",
18     "base/html/credits_entry.tmpl",
19   ]
21   outputs = [
22     about_credits_file,
23   ]
25   args = [
26     "credits",
27     rebase_path(about_credits_file, root_build_dir),
28     "--file-template",
29     rebase_path("base/html/credits.tmpl", root_build_dir),
30     "--entry-template",
31     rebase_path("base/html/credits_entry.tmpl", root_build_dir),
32   ]
35 desktop_remoting_webapp("webapp") {
36   webapp_type = "desktop"
37   output_dir = "remoting/remoting-webapp.v2"
38   zip_path = "remoting/remoting-webapp.v2.zip"
39   extra_files = [
40     "crd/remoting_client_pnacl.nmf.jinja2",
41     # TODO(garykac): Get correct path to this.
42     #"<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe",
43   ]
46 app_remoting_webapp("ar_sample_app") {
47   app_key = "Sample_App"
48   app_id = "ljacajndfccfgnfohlgkdphmbnpkjflk"
49   app_client_id = "sample_client_id"
50   app_vendor = ""
51   app_name = "sample_app"
52   app_fullname = "App Remoting Client"
53   app_description = "App Remoting client"
54   app_capabilities = [ "GOOGLE_DRIVE" ]
55   manifest_key = "remotingdevbuild"
58 app_remoting_shared_module("ar_shared_module") {
59   #app_client_id = "sample_client_id"
60   app_name = "shared_module"
63 # GYP version: remoting/remoting_tests.gypi:remoting_browser_test_resources
64 copy("browser_test_resources") {
65   sources = remoting_webapp_browsertest_main_html_extra_files
66   outputs = [
67     "$root_out_dir/remoting/browser_test_resources/{{source_file_part}}",
68   ]
71 remoting_unit_test_out_dir = "$root_out_dir/remoting/unittests"
73 group("unit_tests") {
74   data_deps = [
75     ":blanketjs",
76     ":js_files",
77     ":qunit",
78     ":sinonjs",
79   ]
82 copy("js_files") {
83   # This list corresponds to webapp_js_files in remoting_webapp_unittests
84   # target in GYP.
85   sources = remoting_webapp_unittest_html_all_js_files +
86             remoting_webapp_wcs_sandbox_html_js_files +
87             remoting_webapp_background_html_js_files +
88             remoting_webapp_unittests_all_files
89   outputs = [
90     "$remoting_unit_test_out_dir/{{source_file_part}}",
91   ]
94 copy("blanketjs") {
95   sources = [
96     "//third_party/blanketjs/src/blanket.js",
97     "//third_party/blanketjs/src/qunit_adapter.js",
98   ]
99   outputs = [
100     "$remoting_unit_test_out_dir/blanketjs/{{source_file_part}}",
101   ]
104 copy("sinonjs") {
105   sources = [
106     "//third_party/sinonjs/src/sinon-qunit.js",
107     "//third_party/sinonjs/src/sinon.js",
108   ]
109   outputs = [
110     "$remoting_unit_test_out_dir/sinonjs/{{source_file_part}}",
111   ]
114 copy("qunit") {
115   sources = [
116     "//third_party/qunit/src/browser_test_harness.js",
117     "//third_party/qunit/src/qunit.css",
118     "//third_party/qunit/src/qunit.js",
119   ]
120   outputs = [
121     "$remoting_unit_test_out_dir/qunit/{{source_file_part}}",
122   ]