Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Unified Diff: remoting/webapp/BUILD.gn

Issue 1143643003: [Chromoting] Add GN build support for ar_sample_app target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/webapp/BUILD.gn
diff --git a/remoting/webapp/BUILD.gn b/remoting/webapp/BUILD.gn
index 02b666779d18c22bc9a6b0423b71168a360619b9..e3e79664f70423f44c8b97055c27fbc5a8260f80 100644
--- a/remoting/webapp/BUILD.gn
+++ b/remoting/webapp/BUILD.gn
@@ -10,6 +10,7 @@ import("//remoting/webapp/build_template.gni")
group("webapp") {
deps = [
":webapp_v1",
+ ":ar_sample_app",
]
if (enable_nacl) {
@@ -17,17 +18,17 @@ group("webapp") {
}
}
-remoting_webapp("webapp_v1") {
+desktop_remoting_webapp("webapp_v1") {
webapp_type = "v1"
- output_dir = "remoting.webapp"
- zip_path = "remoting-webapp.zip"
+ output_dir = "remoting/remoting-webapp"
+ zip_path = "remoting/remoting-webapp.zip"
extra_files = []
}
-remoting_webapp("webapp_v2") {
+desktop_remoting_webapp("webapp_v2") {
webapp_type = "v2_pnacl"
- output_dir = "remoting.webapp.v2"
- zip_path = "remoting-webapp.v2.zip"
+ 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.
@@ -35,91 +36,12 @@ remoting_webapp("webapp_v2") {
]
}
-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)
+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"
}

Powered by Google App Engine
This is Rietveld 408576698