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

Side by Side 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: Remove dup include. Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | chromecast/app/BUILD.gn » ('j') | chromecast/build/args.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import("//chromecast/chromecast.gni") 5 import("//chromecast/chromecast.gni")
6 import("//build/config/features.gni")
7 import("//build/config/ui.gni")
8 import("//testing/test.gni")
9 import("//tools/grit/repack.gni")
10 import("//ui/ozone/ozone.gni")
6 11
7 config("config") { 12 config("config") {
8 defines = [] 13 defines = []
9 14
10 if (use_playready) { 15 if (use_playready) {
11 defines += [ "PLAYREADY_CDM_AVAILABLE" ] 16 defines += [ "PLAYREADY_CDM_AVAILABLE" ]
12 } 17 }
13 } 18 }
14 19
15 component("chromecast") { 20 component("chromecast") {
16 deps = [ 21 deps = [
17 "//chromecast/base", 22 "//chromecast/base",
18 "//chromecast/base/metrics", 23 "//chromecast/base/metrics",
19 "//chromecast/crash", 24 "//chromecast/crash",
20 "//chromecast/media", 25 "//chromecast/media",
21 ] 26 ]
22 } 27 }
23 28
24 group("chromecast_unittests") { 29 group("chromecast_unittests") {
25 testonly = true 30 testonly = true
26 31
27 deps = [ 32 deps = [
28 "//chromecast/app:cast_shell_unittests", 33 # TODO(slan): Get this target building and comment it in.
34 # "//chromecast/app:cast_shell_unittests",
29 "//chromecast/base:cast_base_unittests", 35 "//chromecast/base:cast_base_unittests",
30 "//chromecast/crash:cast_crash_unittests", 36 "//chromecast/crash:cast_crash_unittests",
31 "//chromecast/media:cast_media_unittests", 37 "//chromecast/media:cast_media_unittests",
32 ] 38 ]
33 } 39 }
40
41 source_set("cast_shell_common") {
42 deps = [
43 # TODO(slan): add ":cast_locales_pak" (b/22959691)
44 ":cast_shell_pak",
45 "//chromecast/app",
46 "//chromecast/browser",
47 "//chromecast/common",
48 "//chromecast/common/media",
49 "//chromecast/renderer",
50 ]
51 }
52
53 source_set("cast_shell_media") {
54 deps = [
55 "//chromecast/browser/media",
56 "//chromecast/common/media",
57 "//chromecast/renderer/media",
58 ]
59 }
60
61 executable("cast_shell") {
62 sources = [
63 "app/cast_main.cc",
64 ]
65
66 deps = [
67 ":cast_shell_common",
68 ":cast_shell_media",
69 "//chromecast/app",
70 "//content/public/app:both",
71 ]
72
73 if (ozone_platform_egltest) {
74 deps += [ "//ui/ozone/platform/egltest:eglplatform_shim_x11" ]
75 }
76 }
77
78 repack("cast_shell_pak") {
79 sources = [
80 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak" ,
81 "$root_gen_dir/blink/public/resources/blink_resources.pak",
82 "$root_gen_dir/chromecast/app/shell_resources.pak",
83 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
84 "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
85 "$root_gen_dir/content/content_resources.pak",
86 "$root_gen_dir/net/net_resources.pak",
87 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
88 "$root_gen_dir/ui/resources/webui_resources.pak",
89 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
90 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
91 ]
92
93 if (chromecast_branding != "public" && use_chromecast_webui) {
94 sources += [
95 # TODO(slan): Update these paths to be accurate for internal builds.
96 ]
97 }
98
99 output = "$root_out_dir/assets/cast_shell.pak"
100
101 deps = [
102 "//chromecast/app:resources",
103 "//content:resources",
104 "//content/app/resources",
105 "//content/app/strings",
106 "//net:net_resources",
107 "//third_party/WebKit/public:resources",
108 "//third_party/WebKit/public:image_resources_grit",
109 "//ui/resources",
110 "//ui/strings",
111 ]
112
113 if (chromecast_branding != "public" && use_chromecast_webui) {
114 deps += [
115 # TODO(slan): Update these paths to be accurate for internal builds.
116 ]
117 }
118 }
OLDNEW
« no previous file with comments | « no previous file | chromecast/app/BUILD.gn » ('j') | chromecast/build/args.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698