From 581797d8f76d5855b7f0bed1fe912a038d1d7d25 Mon Sep 17 00:00:00 2001 From: garykac Date: Mon, 11 May 2015 11:46:07 -0700 Subject: [PATCH] [Chromoting] Add GN build support for ar_sample_app target. This adds GN build rules for the AppRemoting sample app. Some DesktopRemoting build rules were prettified as part of this process (to make the App- and Desktop- remoting build rules more similar). This re-lands crrev.com/1126393002 without any additional changes required. The issues with the GN clobber builds are fixed in crrev.com/1137753002. BUG=471916 Review URL: https://codereview.chromium.org/1135933002 Cr-Commit-Position: refs/heads/master@{#329206} --- remoting/app_remoting_webapp.gyp | 1 + remoting/app_remoting_webapp_build.gypi | 2 +- remoting/remoting_client.gypi | 8 +- remoting/remoting_version.gni | 14 +- remoting/webapp/BUILD.gn | 172 +++++------------ remoting/webapp/build-webapp.py | 2 +- remoting/webapp/build_template.gni | 330 +++++++++++++++++++++++++++++--- remoting/webapp/files.gni | 122 +++++++++++- 8 files changed, 482 insertions(+), 169 deletions(-) rewrite remoting/webapp/BUILD.gn (79%) diff --git a/remoting/app_remoting_webapp.gyp b/remoting/app_remoting_webapp.gyp index 9c8add8a3e73..7373778d7701 100644 --- a/remoting/app_remoting_webapp.gyp +++ b/remoting/app_remoting_webapp.gyp @@ -92,6 +92,7 @@ 'targets': [ { + # GN version: //remoting/webapp:ar_sample_app # Sample AppRemoting app. 'target_name': 'ar_sample_app', 'app_key': 'Sample_App', diff --git a/remoting/app_remoting_webapp_build.gypi b/remoting/app_remoting_webapp_build.gypi index 9f7572cb4162..bc6ffa6b662d 100644 --- a/remoting/app_remoting_webapp_build.gypi +++ b/remoting/app_remoting_webapp_build.gypi @@ -11,6 +11,7 @@ 'app_remoting_webapp_files.gypi', ], + # GN version: See remoting/webapp/build_template.gni 'target_defaults': { 'type': 'none', @@ -119,7 +120,6 @@ '<(ar_app_manifest_app)', # Manifest template 'app_remoting', # Web app type '<@(ar_webapp_files)', - '<@(ar_generated_html_files)', '--locales_listfile', '<(ar_webapp_locales_listfile)', '--jinja_paths', diff --git a/remoting/remoting_client.gypi b/remoting/remoting_client.gypi index e82139cee792..bef823d39303 100644 --- a/remoting/remoting_client.gypi +++ b/remoting/remoting_client.gypi @@ -49,12 +49,11 @@ }, # end of target 'remoting_client' { - # GN version: //remoting/webapp:html + # GN version: See remoting/webapp/build_template.gni 'target_name': 'remoting_webapp_html', 'type': 'none', 'actions': [ { - # GN version: //remoting/webapp:main_html 'action_name': 'Build Remoting Webapp main.html', 'inputs': [ 'webapp/build-html.py', @@ -75,7 +74,6 @@ ], }, { - # GN version: //remoting/webapp:wcs_sandbox_html 'action_name': 'Build Remoting Webapp wcs_sandbox.html', 'inputs': [ 'webapp/build-html.py', @@ -92,7 +90,6 @@ ], }, { - # GN version: //remoting/webapp:background_html 'action_name': 'Build Remoting Webapp background.html', 'inputs': [ 'webapp/build-html.py', @@ -128,6 +125,7 @@ }, # end of target 'remoting_webapp_html' { + # GN version: //remoting/webapp:webapp 'target_name': 'remoting_webapp', 'type': 'none', 'dependencies': [ @@ -143,6 +141,7 @@ }, # end of target 'remoting_webapp' { + # GN version: //remoting/webapp:webapp_v1 'target_name': 'remoting_webapp_v1', 'type': 'none', 'variables': { @@ -158,6 +157,7 @@ ['disable_nacl==0 and disable_nacl_untrusted==0', { 'targets': [ { + # GN version: //remoting/webapp:webapp_v1 'target_name': 'remoting_webapp_v2', 'type': 'none', 'variables': { diff --git a/remoting/remoting_version.gni b/remoting/remoting_version.gni index cb8fb659427f..db117bd1b9bd 100644 --- a/remoting/remoting_version.gni +++ b/remoting/remoting_version.gni @@ -15,7 +15,7 @@ if (is_chrome_branded) { # Set these files as being input dependencies to the scripts, so the build will # be re-run if the files change. -_script_deps = [ +remoting_version_files = [ _remoting_version_abspath, _chrome_version_abspath, _remoting_branding_abspath, @@ -35,7 +35,7 @@ version_major = exec_script(_version_py_abspath, "-t \"@MAJOR@\"", ], "value", - _script_deps) + remoting_version_files) version_minor = exec_script(_version_py_abspath, [ @@ -44,7 +44,7 @@ version_minor = exec_script(_version_py_abspath, "-t \"@REMOTING_PATCH@\"", ], "value", - _script_deps) + remoting_version_files) version_short = "${version_major}.${version_minor}." + exec_script(_version_py_abspath, @@ -56,7 +56,7 @@ version_short = "-t \"@BUILD@\"", ], "value", - _script_deps) + remoting_version_files) version_full = "${version_short}." + exec_script(_version_py_abspath, [ @@ -67,7 +67,7 @@ version_full = "${version_short}." + exec_script(_version_py_abspath, "-t \"@PATCH@\"", ], "value", - _script_deps) + remoting_version_files) prefpane_bundle_name = exec_script(_version_py_abspath, [ @@ -76,7 +76,7 @@ prefpane_bundle_name = exec_script(_version_py_abspath, "-t \"@MAC_PREFPANE_BUNDLE_NAME@\"", ], "string", - _script_deps) + remoting_version_files) host_bundle_name = exec_script(_version_py_abspath, [ @@ -85,4 +85,4 @@ host_bundle_name = exec_script(_version_py_abspath, "-t \"@MAC_HOST_BUNDLE_NAME@\"", ], "string", - _script_deps) + remoting_version_files) diff --git a/remoting/webapp/BUILD.gn b/remoting/webapp/BUILD.gn dissimilarity index 79% index 02b666779d18..e3e79664f704 100644 --- a/remoting/webapp/BUILD.gn +++ b/remoting/webapp/BUILD.gn @@ -1,125 +1,47 @@ -# Copyright 2014 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# Keep in sync with targets in remoting/remoting_client.gypi. - -import("//build/config/features.gni") -import("//remoting/webapp/build_template.gni") - -group("webapp") { - deps = [ - ":webapp_v1", - ] - - if (enable_nacl) { - deps += [ ":webapp_v2" ] - } -} - -remoting_webapp("webapp_v1") { - webapp_type = "v1" - output_dir = "remoting.webapp" - zip_path = "remoting-webapp.zip" - extra_files = [] -} - -remoting_webapp("webapp_v2") { - webapp_type = "v2_pnacl" - output_dir = "remoting.webapp.v2" - zip_path = "remoting-webapp.v2.zip" - extra_files = [ - "crd/remoting_client_pnacl.nmf.jinja2", - # TODO(garykac): Get correct path to this. - #"<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe", - ] -} - -group("html") { - deps = [ - ":background_html", - ":main_html", - ":message_window_html", - ":wcs_sandbox_html", - ] -} - -action("main_html") { - script = "build-html.py" - - inputs = [ remoting_webapp_template_main ] + remoting_webapp_template_files + - remoting_webapp_crd_main_html_all_js_files - - outputs = [ - "$target_gen_dir/main.html", - ] - - args = [ - rebase_path("$target_gen_dir/main.html", root_build_dir), - rebase_path(remoting_webapp_template_main, root_build_dir), - ] - args += [ - "--template-dir", - rebase_path(remoting_dir, root_build_dir), - ] - args += [ "--templates" ] + - rebase_path(remoting_webapp_template_files, remoting_dir) - args += [ "--js" ] + - rebase_path(remoting_webapp_crd_main_html_all_js_files, remoting_dir) -} - -action("wcs_sandbox_html") { - script = "build-html.py" - - inputs = [ remoting_webapp_template_wcs_sandbox ] + - remoting_webapp_wcs_sandbox_html_all_js_files - - outputs = [ - "$target_gen_dir/wcs_sandbox.html", - ] - - args = [ - rebase_path("$target_gen_dir/wcs_sandbox.html", root_build_dir), - rebase_path(remoting_webapp_template_wcs_sandbox, root_build_dir), - ] - args += - [ "--js" ] + - rebase_path(remoting_webapp_wcs_sandbox_html_all_js_files, remoting_dir) -} - -action("background_html") { - script = "build-html.py" - - inputs = [ remoting_webapp_template_background ] + - remoting_webapp_background_html_all_js_files - - outputs = [ - "$target_gen_dir/background.html", - ] - - args = [ - rebase_path("$target_gen_dir/background.html", root_build_dir), - rebase_path(remoting_webapp_template_background, root_build_dir), - ] - args += [ "--js" ] + rebase_path(remoting_webapp_background_html_all_js_files, - remoting_dir) -} - -action("message_window_html") { - script = "build-html.py" - - inputs = [ remoting_webapp_template_message_window ] + - remoting_webapp_message_window_html_all_js_files - - outputs = [ - "$target_gen_dir/message_window.html", - ] - - args = [ - rebase_path("$target_gen_dir/message_window.html", root_build_dir), - rebase_path(remoting_webapp_template_message_window, root_build_dir), - ] - args += - [ "--js" ] + rebase_path(remoting_webapp_message_window_html_all_js_files, - remoting_dir) -} +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# Keep in sync with targets in remoting/remoting_client.gypi. + +import("//build/config/features.gni") +import("//remoting/webapp/build_template.gni") + +group("webapp") { + deps = [ + ":webapp_v1", + ":ar_sample_app", + ] + + if (enable_nacl) { + deps += [ ":webapp_v2" ] + } +} + +desktop_remoting_webapp("webapp_v1") { + webapp_type = "v1" + output_dir = "remoting/remoting-webapp" + zip_path = "remoting/remoting-webapp.zip" + extra_files = [] +} + +desktop_remoting_webapp("webapp_v2") { + webapp_type = "v2_pnacl" + output_dir = "remoting/remoting-webapp.v2" + zip_path = "remoting/remoting-webapp.v2.zip" + extra_files = [ + "crd/remoting_client_pnacl.nmf.jinja2", + # TODO(garykac): Get correct path to this. + #"<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe", + ] +} + +app_remoting_webapp("ar_sample_app") { + app_key = "Sample_App" + app_id = "ljacajndfccfgnfohlgkdphmbnpkjflk" + app_client_id = "sample_client_id" + app_name = "App Remoting Client" + app_description = "App Remoting client" + app_capabilities = [ "GOOGLE_DRIVE" ] + manifest_key = "remotingdevbuild" +} diff --git a/remoting/webapp/build-webapp.py b/remoting/webapp/build-webapp.py index e2a0abe5c9b9..8f61ca1077c4 100755 --- a/remoting/webapp/build-webapp.py +++ b/remoting/webapp/build-webapp.py @@ -169,7 +169,7 @@ def buildWebApp(buildtype, version, destination, zip_path, raise else: pass - os.mkdir(destination, 0775) + os.makedirs(destination, 0775) if buildtype != 'Official' and buildtype != 'Release' and buildtype != 'Dev': raise Exception('Unknown buildtype: ' + buildtype) diff --git a/remoting/webapp/build_template.gni b/remoting/webapp/build_template.gni index 5d4233c9ccd2..8930b04e475c 100644 --- a/remoting/webapp/build_template.gni +++ b/remoting/webapp/build_template.gni @@ -15,17 +15,24 @@ import("//remoting/webapp/files.gni") # to this directory. remoting_dir = "//remoting" -template("remoting_webapp") { - locales_listfile = target_name + "_locales" - listfile = "$target_gen_dir/${target_name}_locales.txt" - listfile_rel = rebase_path(listfile, root_build_dir) +buildtype = "Dev" +if (!is_debug) { + if (is_official_build) { + buildtype = "Official" + } else { + buildtype = "Release" + } +} + +template("build_locales_listfile") { + action(target_name) { + locales_listfile_output = invoker.locales_listfile_output - action(locales_listfile) { script = "../tools/build/remoting_localize.py" inputs = [] outputs = [ - listfile, + locales_listfile_output, ] args = [ @@ -33,10 +40,88 @@ template("remoting_webapp") { rebase_path(webapp_locale_dir, root_build_dir) + "/@{json_suffix}/messages.json", "--locales_listfile", - listfile_rel, + rebase_path(locales_listfile_output, root_build_dir), ] args += remoting_locales } +} + +template("build_webapp_html") { + action(target_name) { + html_template_file = invoker.html_template_file + html_template_files = invoker.html_template_files + js_files = invoker.js_files + html_output = invoker.html_output + + script = "build-html.py" + + inputs = [ html_template_file ] + html_template_files + js_files + + outputs = [ + html_output, + ] + + args = [ + rebase_path(html_output, root_build_dir), + rebase_path(html_template_file, root_build_dir), + ] + args += [ + "--template-dir", + rebase_path(remoting_dir, root_build_dir), + ] + args += [ "--templates" ] + html_template_files + args += [ "--js" ] + rebase_path(js_files, remoting_dir) + } +} + +template("desktop_remoting_webapp") { + locales_listfile = target_name + "_locales" + locales_listfile_output = "$target_gen_dir/${target_name}_locales.txt" + + build_locales_listfile(locales_listfile) { + # Template uses locales_listfile_output from outer scope. + } + + background_html = target_name + "_background_html" + background_html_output = "$target_gen_dir/html/$target_name/background.html" + + build_webapp_html(background_html) { + html_template_file = remoting_webapp_template_background + html_template_files = [] + js_files = remoting_webapp_background_html_all_js_files + html_output = background_html_output + } + + message_window_html = target_name + "_message_window_html" + message_window_html_output = + "$target_gen_dir/html/$target_name/message_window.html" + + build_webapp_html(message_window_html) { + html_template_file = remoting_webapp_template_message_window + html_template_files = [] + js_files = remoting_webapp_message_window_html_all_js_files + html_output = message_window_html_output + } + + wcs_sandbox_html = target_name + "_wcs_sandbox_html" + wcs_sandbox_html_output = "$target_gen_dir/html/$target_name/wcs_sandbox.html" + + build_webapp_html(wcs_sandbox_html) { + html_template_file = remoting_webapp_template_wcs_sandbox + html_template_files = [] + js_files = remoting_webapp_wcs_sandbox_html_all_js_files + html_output = wcs_sandbox_html_output + } + + main_html = target_name + "_main_html" + main_html_output = "$target_gen_dir/html/$target_name/main.html" + + build_webapp_html(main_html) { + html_template_file = remoting_webapp_template_main + html_template_files = remoting_webapp_template_files + js_files = remoting_webapp_crd_main_html_all_js_files + html_output = main_html_output + } action(target_name) { script = "build-webapp.py" @@ -46,39 +131,37 @@ template("remoting_webapp") { zip_path = invoker.zip_path extra_files = invoker.extra_files - inputs = [] + inputs = + [ rebase_path("crd/manifest.json.jinja2", root_build_dir) ] + + remoting_version_files + + rebase_path(remoting_webapp_crd_files, root_build_dir) + extra_files + outputs = [ "$target_gen_dir/$zip_path", ] deps = [ - ":html", ":$locales_listfile", + ":$background_html", + ":$message_window_html", + ":$wcs_sandbox_html", + ":$main_html", "//remoting/resources", ] - buildtype = "Dev" - if (!is_debug) { - if (is_official_build) { - buildtype = "Official" - } else { - buildtype = "Release" - } - } - - generated_html_files = [ - "$target_gen_dir/background.html", - "$target_gen_dir/main.html", - "$target_gen_dir/message_window.html", - "$target_gen_dir/wcs_sandbox.html", + dr_generated_html_files = [ + background_html_output, + message_window_html_output, + wcs_sandbox_html_output, + main_html_output, ] # Create a file that contains a list of all the resource files needed # to build the webapp. This is needed to avoid problems on platforms that # limit the size of a command line. - file_list = "$target_gen_dir/${target_name}_file_list.txt" + file_list = "$target_gen_dir/${target_name}_files.txt" files = [] - files += rebase_path(generated_html_files, root_build_dir) + files += rebase_path(dr_generated_html_files, root_build_dir) files += rebase_path(remoting_webapp_crd_files, root_build_dir) files += rebase_path(extra_files, root_build_dir) write_file(file_list, files) @@ -97,7 +180,7 @@ template("remoting_webapp") { ] args += [ "--locales_listfile", - listfile_rel, + rebase_path(locales_listfile_output, root_build_dir), ] args += [ "--use_gcd", @@ -105,3 +188,198 @@ template("remoting_webapp") { ] } } + +template("app_remoting_webapp") { + locales_listfile = target_name + "_locales" + locales_listfile_output = "$target_gen_dir/${target_name}_locales.txt" + + build_locales_listfile(locales_listfile) { + # Template uses locales_listfile_output from outer scope. + } + + feedback_consent_html = target_name + "_feedback_consent_html" + feedback_consent_html_output = + "$target_gen_dir/html/$target_name/feedback_consent.html" + + build_webapp_html(feedback_consent_html) { + html_template_file = ar_feedback_consent_template + html_template_files = [] + js_files = ar_feedback_consent_html_all_js_files + html_output = feedback_consent_html_output + } + + loading_window_html = target_name + "_loading_window_html" + loading_window_html_output = + "$target_gen_dir/html/$target_name/loading_window.html" + + build_webapp_html(loading_window_html) { + html_template_file = ar_loading_window_template + html_template_files = [] + + # The loading window is just a reskin of the message window -- all JS code + # is shared. + js_files = remoting_webapp_message_window_html_all_js_files + html_output = loading_window_html_output + } + + message_window_html = target_name + "_message_window_html" + message_window_html_output = + "$target_gen_dir/html/$target_name/message_window.html" + + build_webapp_html(message_window_html) { + html_template_file = remoting_webapp_template_message_window + html_template_files = [] + js_files = remoting_webapp_message_window_html_all_js_files + html_output = message_window_html_output + } + + wcs_sandbox_html = target_name + "_wcs_sandbox_html" + wcs_sandbox_html_output = "$target_gen_dir/html/$target_name/wcs_sandbox.html" + + build_webapp_html(wcs_sandbox_html) { + html_template_file = remoting_webapp_template_wcs_sandbox + html_template_files = [] + js_files = remoting_webapp_wcs_sandbox_html_all_js_files + html_output = wcs_sandbox_html_output + } + + main_html = target_name + "_main_html" + main_html_output = "$target_gen_dir/html/$target_name/main.html" + + build_webapp_html(main_html) { + html_template_file = ar_main_template + html_template_files = ar_main_template_files + js_files = ar_main_js_files + html_output = main_html_output + } + + action(target_name) { + script = "build-webapp.py" + + app_key = invoker.app_key + app_id = invoker.app_id + app_client_id = invoker.app_client_id + app_name = invoker.app_name + app_description = invoker.app_description + app_capabilities = invoker.app_capabilities + manifest_key = invoker.manifest_key + + # These asserts are so that these variables get marked as being used so + # that GN doesn't complain about them. + assert(app_key != "" || app_key == "") + assert(app_id != "" || app_id == "") + + # TODO(garykac) For internal targets, we need to extract the vendor and app + # name from the target. + ar_app_name = "sample_app" #target_name + ar_app_path = "app_remoting/apps/$ar_app_name" + ar_app_manifest = "$ar_app_path/manifest.json.jinja2" + ar_app_manifest_common = "app_remoting/manifest_common.json.jinja2" + + output_dir = "remoting/app_remoting/$ar_service_environment/$target_name" + zip_path = "remoting/app_remoting/$ar_service_environment/$target_name.zip" + + ar_app_specific_files = [ + "$ar_app_path/icon16.png", + "$ar_app_path/icon48.png", + "$ar_app_path/icon128.png", + "$ar_app_path/loading_splash.png", + ] + + ar_generated_html_files = [ + feedback_consent_html_output, + loading_window_html_output, + message_window_html_output, + wcs_sandbox_html_output, + main_html_output, + ] + + ar_webapp_files = + ar_app_specific_files + ar_shared_resource_files + ar_all_js_files + + inputs = [ + rebase_path(ar_app_manifest, root_build_dir), + rebase_path(ar_app_manifest_common, root_build_dir), + ] + remoting_version_files + ar_webapp_files + + outputs = [ + "$target_gen_dir/$zip_path", + ] + + deps = [ + ":$locales_listfile", + ":$feedback_consent_html", + ":$loading_window_html", + ":$message_window_html", + ":$wcs_sandbox_html", + ":$main_html", + "//remoting/resources", + ] + + # Create a file that contains a list of all the resource files needed + # to build the webapp. This is needed to avoid problems on platforms that + # limit the size of a command line. + file_list = "$target_gen_dir/${target_name}_files.txt" + files = [] + files += rebase_path(ar_generated_html_files, root_build_dir) + files += rebase_path(ar_webapp_files, root_build_dir) + write_file(file_list, files) + + args = [ + buildtype, + version_full, + output_dir, + zip_path, + rebase_path(ar_app_manifest, root_build_dir), + "app_remoting", # Web app type + ] + args += [ + "--files_listfile", + rebase_path(file_list, root_build_dir), + ] + args += [ + "--locales_listfile", + rebase_path(locales_listfile_output, root_build_dir), + ] + args += [ + "--jinja_paths", + rebase_path("app_remoting", root_build_dir), + ] + + if (is_debug) { + # Normally, the app-id for the orchestrator is automatically extracted + # from the webapp's extension id, but that approach doesn't work for + # dev webapp builds (since they all share the same dev extension id). + # The --appid arg will create a webapp that registers the given app-id + # rather than using the extension id. + # This is only done for Dev apps because the app-id for Release apps + # *must* match the extension id. + args += [ + "--appid", + app_id, + ] + } + + args += [ + "--app_name", + app_name, + ] + args += [ + "--app_description", + app_description, + ] + args += [ "--app_capabilities" ] + app_capabilities + args += [ + "--service_environment", + ar_service_environment, + ] + args += [ + "--manifest_key", + manifest_key, + ] + args += [ + "--app_client_id", + app_client_id, + ] + } +} diff --git a/remoting/webapp/files.gni b/remoting/webapp/files.gni index 08e34271e760..ac5c96b823c7 100644 --- a/remoting/webapp/files.gni +++ b/remoting/webapp/files.gni @@ -10,7 +10,8 @@ # MM `Mb.YM. , 8M MM `Mb MM MM MM MM YM. , # .JMML. .JMM.`Mbmmd' `Moo9^Yo.`Wbmd"MML..JMML JMML JMML.`Mbmmd' # -# Please keep this file in sync with remoting/remoting_webapp_files.gypi. +# Please keep this file in sync with remoting/remoting_webapp_files.gypi +# and remoting/app_remoting_webapp_files.gypi. # Jscompile proto files. # These provide type information for jscompile. @@ -353,7 +354,7 @@ remoting_webapp_template_files = [ ] # -# Webapp background.html generation files. +# DesktopRemoting background.html generation files. # remoting_webapp_template_background = "crd/html/template_background.html" @@ -390,7 +391,7 @@ remoting_webapp_background_html_all_js_files += [ ] # -# Webapp wcs_sandbox.html generation files. +# DesktopRemoting wcs_sandbox.html generation files. # remoting_webapp_template_wcs_sandbox = "base/html/template_wcs_sandbox.html" @@ -413,7 +414,7 @@ remoting_webapp_wcs_sandbox_html_all_js_files += [ ] # -# Webapp message_window.html generation files. +# DesktopRemoting message_window.html generation files. # remoting_webapp_template_message_window = @@ -428,7 +429,7 @@ remoting_webapp_message_window_html_all_js_files = remoting_webapp_message_window_html_js_files + [ "base/js/base.js" ] # -# Complete webapp JS and resource files. +# DesktopRemoting webapp JS and resource files. # # All the JavaScript files that are shared by webapps. @@ -498,3 +499,114 @@ desktop_remoting_webapp_localizable_files = [ "<@(remoting_webapp_template_files)", "<@(remoting_webapp_crd_js_files)", ] + +# +# AppRemoting Files +# + +ar_shared_resource_files = [ + "app_remoting/html/ar_dialog.css", + "app_remoting/html/ar_main.css", + "app_remoting/html/feedback_consent.css", + "app_remoting/html/loading_window.css", + "app_remoting/html/context_menu.css", + "../resources/drag.webp", + ] + remoting_webapp_resource_files + +# +# AppRemoting main.html generation files. +# + +# These template files are used to construct the webapp html files. +ar_main_template = "app_remoting/html/template_lg.html" + +ar_main_template_files = [ + "base/html/client_plugin.html", + "app_remoting/html/context_menu.html", + "app_remoting/html/idle_dialog.html", +] + +ar_main_js_files = + [ + "app_remoting/js/application_context_menu.js", + "app_remoting/js/app_connected_view.js", + "app_remoting/js/app_remoting.js", + "app_remoting/js/app_remoting_activity.js", + "app_remoting/js/ar_auth_dialog.js", + "app_remoting/js/ar_main.js", + "app_remoting/js/context_menu_adapter.js", + "app_remoting/js/context_menu_chrome.js", + "app_remoting/js/context_menu_dom.js", + "app_remoting/js/drag_and_drop.js", + "app_remoting/js/idle_detector.js", + "app_remoting/js/keyboard_layouts_menu.js", + "app_remoting/js/loading_window.js", + "app_remoting/js/submenu_manager.js", + "app_remoting/js/window_activation_menu.js", + "base/js/application.js", + "base/js/base.js", + "base/js/message_window_helper.js", + "base/js/message_window_manager.js", + ] + remoting_webapp_js_auth_client2host_files + + remoting_webapp_js_auth_google_files + + remoting_webapp_js_cast_extension_files + remoting_webapp_js_client_files + + remoting_webapp_js_core_files + remoting_webapp_js_gnubby_auth_files + + remoting_webapp_js_host_files + remoting_webapp_js_logging_files + + remoting_webapp_js_signaling_files + remoting_webapp_js_ui_files + +# +# AppRemoting feedback_consent.html generation files. +# + +ar_feedback_consent_template = + "app_remoting/html/template_feedback_consent.html" + +# These JS files are specific to the feedback consent page and are not part +# of the main JS files. +ar_feedback_consent_html_js_files = [ "app_remoting/js/feedback_consent.js" ] + +# All the JavaScript files required by feedback_consent.html. +ar_feedback_consent_html_all_js_files = [ + "app_remoting/js/feedback_consent.js", + "base/js/base.js", + "crd/js/error.js", + "crd/js/identity.js", + "crd/js/oauth2_api.js", + "crd/js/oauth2_api_impl.js", + "crd/js/plugin_settings.js", + "crd/js/l10n.js", + "crd/js/xhr.js", +] + +# +# AppRemoting loading_window.html generation files. +# + +# Variables for loading_window.html. Note that the JS files are the same as +# for message_window.html, and are not duplicated here. +ar_loading_window_template = "app_remoting/html/template_loading_window.html" + +# +# AppRemoting background JS files. +# These files are referenced from the manifest +# + +ar_background_js_files = [ + "app_remoting/js/ar_background.js", + "base/js/platform.js", +] + +ar_all_js_files = + ar_main_js_files + ar_feedback_consent_html_js_files + + remoting_webapp_message_window_html_js_files + + remoting_webapp_wcs_sandbox_html_js_files + ar_background_js_files + +# Files that contain localizable strings. +app_remoting_webapp_localizable_files = + [ + ar_main_template, + ar_feedback_consent_template, + ar_loading_window_template, + remoting_webapp_template_message_window, + remoting_webapp_template_wcs_sandbox, + ] + ar_main_template_files + ar_all_js_files -- 2.11.4.GIT