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 # Keep in sync with targets in remoting/remoting_client.gypi. | 5 # Keep in sync with targets in remoting/remoting_client.gypi. |
6 | 6 |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//remoting/webapp/build_template.gni") | 8 import("//remoting/webapp/build_template.gni") |
9 import("//remoting/webapp/files.gni") | 9 import("//remoting/webapp/files.gni") |
10 | 10 |
11 # GYP version: remoting/remoting_client:remoting_credits | |
12 action("credits") { | 11 action("credits") { |
13 about_credits_file = "$target_gen_dir/credits.html" | 12 about_credits_file = "$target_gen_dir/credits.html" |
14 script = "//tools/licenses.py" | 13 script = "//tools/licenses.py" |
15 | 14 |
16 inputs = [ | 15 inputs = [ |
17 "base/html/credits.tmpl", | 16 "base/html/credits.tmpl", |
18 "base/html/credits_entry.tmpl", | 17 "base/html/credits_entry.tmpl", |
19 ] | 18 ] |
20 | 19 |
21 outputs = [ | 20 outputs = [ |
22 about_credits_file, | 21 about_credits_file, |
23 ] | 22 ] |
24 | 23 |
25 args = [ | 24 args = [ |
26 "credits", | 25 "credits", |
27 rebase_path(about_credits_file, root_build_dir), | 26 rebase_path(about_credits_file, root_build_dir), |
28 "--file-template", | 27 "--file-template", |
29 rebase_path("base/html/credits.tmpl", root_build_dir), | 28 rebase_path("base/html/credits.tmpl", root_build_dir), |
30 "--entry-template", | 29 "--entry-template", |
31 rebase_path("base/html/credits_entry.tmpl", root_build_dir), | 30 rebase_path("base/html/credits_entry.tmpl", root_build_dir), |
32 ] | 31 ] |
33 } | 32 } |
34 | 33 |
35 desktop_remoting_webapp("webapp") { | 34 desktop_remoting_webapp("webapp") { |
36 output_dir = "$root_build_dir/remoting/remoting-webapp.v2" | 35 output_dir = "$root_build_dir/remoting/remoting-webapp.v2" |
37 zip_path = "$root_build_dir/remoting-webapp.v2.zip" | 36 zip_path = "$root_build_dir/remoting-webapp.v2.zip" |
38 extra_files = [ "crd/remoting_client_pnacl.nmf.jinja2" ] | 37 extra_files = [ "crd/remoting_client_pnacl.nmf.jinja2" ] |
39 } | 38 } |
40 | 39 |
41 # GYP version: remoting/remoting_tests.gypi:remoting_browser_test_resources | |
42 copy("browser_test_resources") { | 40 copy("browser_test_resources") { |
43 sources = remoting_webapp_browsertest_main_html_extra_files | 41 sources = remoting_webapp_browsertest_main_html_extra_files |
44 outputs = [ | 42 outputs = [ |
45 "$root_out_dir/remoting/browser_test_resources/{{source_file_part}}", | 43 "$root_out_dir/remoting/browser_test_resources/{{source_file_part}}", |
46 ] | 44 ] |
47 } | 45 } |
48 | 46 |
49 remoting_unit_test_out_dir = "$root_out_dir/remoting/unittests" | 47 remoting_unit_test_out_dir = "$root_out_dir/remoting/unittests" |
50 | 48 |
51 group("unit_tests") { | 49 group("unit_tests") { |
52 data_deps = [ | 50 data_deps = [ |
53 ":blanketjs", | 51 ":blanketjs", |
54 ":unittest_html", | 52 ":unittest_html", |
55 ":js_files", | 53 ":js_files", |
56 ":qunit", | 54 ":qunit", |
57 ":sinonjs", | 55 ":sinonjs", |
58 ] | 56 ] |
59 } | 57 } |
60 | 58 |
61 copy("js_files") { | 59 copy("js_files") { |
62 # This list corresponds to webapp_js_files in remoting_webapp_unittests | |
63 # target in GYP. | |
64 sources = webapp_js_files + remoting_webapp_unittests_all_files | 60 sources = webapp_js_files + remoting_webapp_unittests_all_files |
65 outputs = [ | 61 outputs = [ |
66 "$remoting_unit_test_out_dir/{{source_file_part}}", | 62 "$remoting_unit_test_out_dir/{{source_file_part}}", |
67 ] | 63 ] |
68 } | 64 } |
69 | 65 |
70 copy("blanketjs") { | 66 copy("blanketjs") { |
71 sources = [ | 67 sources = [ |
72 "//third_party/blanketjs/src/blanket.js", | 68 "//third_party/blanketjs/src/blanket.js", |
73 "//third_party/blanketjs/src/qunit_adapter.js", | 69 "//third_party/blanketjs/src/qunit_adapter.js", |
(...skipping 25 matching lines...) Expand all Loading... |
99 } | 95 } |
100 | 96 |
101 build_webapp_html("unittest_html") { | 97 build_webapp_html("unittest_html") { |
102 html_template_file = remoting_webapp_unittests_template_main | 98 html_template_file = remoting_webapp_unittests_template_main |
103 html_template_include_files = [] | 99 html_template_include_files = [] |
104 js_files = remoting_webapp_unittests_all_js_files | 100 js_files = remoting_webapp_unittests_all_js_files |
105 html_output = "$remoting_unit_test_out_dir/unittests.html" | 101 html_output = "$remoting_unit_test_out_dir/unittests.html" |
106 exclude_js = remoting_webapp_unittests_exclude_js_files | 102 exclude_js = remoting_webapp_unittests_exclude_js_files |
107 instrument_js = webapp_js_files | 103 instrument_js = webapp_js_files |
108 } | 104 } |
OLD | NEW |