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

Unified Diff: chromecast/BUILD.gn

Issue 1213333003: Build public cast_shell on x86 with GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Modifies gn args to make cast_shell run! Created 5 years, 5 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
« no previous file with comments | « no previous file | chromecast/app/BUILD.gn » ('j') | chromecast/app/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/BUILD.gn
diff --git a/chromecast/BUILD.gn b/chromecast/BUILD.gn
index e5f3b89ee80e91c086a081763e0365fc750e79b7..19128c0d12998bd23591e821969986865f828650 100644
--- a/chromecast/BUILD.gn
+++ b/chromecast/BUILD.gn
@@ -3,6 +3,11 @@
# found in the LICENSE file.
import("//chromecast/chromecast.gni")
+import("//build/config/features.gni")
+import("//build/config/ui.gni")
+import("//testing/test.gni")
+import("//tools/grit/repack.gni")
+import("//ui/ozone/ozone.gni")
config("config") {
defines = []
@@ -25,9 +30,109 @@ group("chromecast_unittests") {
testonly = true
deps = [
- "//chromecast/app:cast_shell_unittests",
+ # "//chromecast/app:cast_shell_unittests",
"//chromecast/base:cast_base_unittests",
"//chromecast/crash:cast_crash_unittests",
"//chromecast/media:cast_media_unittests",
]
}
+
+source_set("cast_shell_common") {
+ deps = [
+ ":cast_shell_pak",
+
+ # TODO(slan): add ":cast_locales_pak"
+
+ "//chromecast/app:main_delegate",
+ "//chromecast/browser",
+ "//chromecast/common",
+ "//chromecast/common:media",
+ "//chromecast/renderer",
+ ]
+}
+
+source_set("cast_shell_media") {
+ deps = [
+ "//chromecast/browser:media",
+ "//chromecast/common:media",
+ "//chromecast/renderer:media",
+ ]
+}
+
+executable("cast_shell") {
+ sources = [
+ "app/cast_main.cc",
+ ]
+
+ deps = [
+ ":cast_shell_common",
+ ":cast_shell_media",
+ "//chromecast/app:main_delegate",
+ "//content/public/app:both",
+ ]
+
+ if (ozone_platform_egltest) {
+ deps += [ "//ui/ozone/platform/egltest:eglplatform_shim_x11" ]
+ }
+}
+
+# TODO(slan): These resource files need to be relocated.
+# repack("chromecast_locales_pak") {
+#
+# output = "$root_out_dir/chromecast_locales"
+#
+# deps = [
+# "//chromecast/app:chromecast_settings",
+# ]
+#
+# if (is_chromecast_chrome_branded) {
+# TODO(slan): This needs to be mapped to a real target.
+# deps += [ "//chromecast/internal/chromecast_locals:chromecast_app_strings" ]
+# }
+# }
+
+repack("cast_shell_pak") {
+ sources = [
+ "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak",
+ "$root_gen_dir/blink/public/resources/blink_resources.pak",
+ "$root_gen_dir/chromecast/app/shell_resources.pak",
+ "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
+ "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
+ "$root_gen_dir/content/content_resources.pak",
+ "$root_gen_dir/net/net_resources.pak",
+ "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
+ "$root_gen_dir/ui/resources/webui_resources.pak",
+ "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
+ "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
+ ]
+
+ if (is_chromecast_chrome_branded && use_chromecast_webui) {
+ sources += [
+ # TODO(slan): Update these paths to be accurate for internal builds.
+ # "$root_gen_dir/chromecast/app_resources.pak",
+ # "$root_gen_dir/chromecast/cast_webui_resources.pak",
+ ]
+ }
+
+ output = "$root_out_dir/assets/cast_shell.pak"
+
+ deps = [
+ "//chromecast/app:resources",
+ "//content:resources",
+ "//content/app/resources",
+ "//content/app/strings",
+ "//net:net_resources",
+ "//third_party/WebKit/public:resources",
+ "//third_party/WebKit/public:image_resources_grit",
+ "//ui/resources",
+ "//ui/strings",
+ ]
+
+ if (is_chromecast_chrome_branded && use_chromecast_webui) {
+ deps += [
+ # TODO(slan): Update these paths to be accurate for internal builds.
+ # "//chromecast/app_resources.pak",
+ # "//chromecast/chromecast_web_ui_resources",
+ ]
+ }
+}
« no previous file with comments | « no previous file | chromecast/app/BUILD.gn » ('j') | chromecast/app/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698