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

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: 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 unified diff | Download patch
« no previous file with comments | « no previous file | chromecast/app/BUILD.gn » ('j') | chromecast/app/BUILD.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 # "//chromecast/app:cast_shell_unittests",
29 "//chromecast/base:cast_base_unittests", 34 "//chromecast/base:cast_base_unittests",
30 "//chromecast/crash:cast_crash_unittests", 35 "//chromecast/crash:cast_crash_unittests",
31 "//chromecast/media:cast_media_unittests", 36 "//chromecast/media:cast_media_unittests",
32 ] 37 ]
33 } 38 }
39
40 source_set("cast_shell_common") {
41 deps = [
42 ":cast_shell_pak",
43
44 # TODO(slan): add ":cast_locales_pak"
45
46 "//chromecast/app:main_delegate",
47 "//chromecast/browser",
48 "//chromecast/common",
49 "//chromecast/common:media",
50 "//chromecast/renderer",
51 ]
52 }
53
54 source_set("cast_shell_media") {
55 deps = [
56 "//chromecast/browser:media",
57 "//chromecast/common:media",
58 "//chromecast/renderer:media",
59 ]
60 }
61
62 executable("cast_shell") {
63 sources = [
64 "app/cast_main.cc",
65 ]
66
67 deps = [
68 ":cast_shell_common",
69 ":cast_shell_media",
70 "//chromecast/app:main_delegate",
71 "//content/public/app:both",
72 ]
73
74 if (ozone_platform_egltest) {
75 deps += [ "//ui/ozone/platform/egltest:eglplatform_shim_x11" ]
76 }
77 }
78
79 # TODO(slan): These resource files need to be relocated.
80 # repack("chromecast_locales_pak") {
81 #
82 # output = "$root_out_dir/chromecast_locales"
83 #
84 # deps = [
85 # "//chromecast/app:chromecast_settings",
86 # ]
87 #
88 # if (is_chromecast_chrome_branded) {
89 # TODO(slan): This needs to be mapped to a real target.
90 # deps += [ "//chromecast/internal/chromecast_locals:chromecast_app_strings" ]
91 # }
92 # }
93
94 repack("cast_shell_pak") {
95 sources = [
96 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak" ,
97 "$root_gen_dir/blink/public/resources/blink_resources.pak",
98 "$root_gen_dir/chromecast/app/shell_resources.pak",
99 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
100 "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
101 "$root_gen_dir/content/content_resources.pak",
102 "$root_gen_dir/net/net_resources.pak",
103 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
104 "$root_gen_dir/ui/resources/webui_resources.pak",
105 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
106 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
107 ]
108
109 if (is_chromecast_chrome_branded && use_chromecast_webui) {
110 sources += [
111 # TODO(slan): Update these paths to be accurate for internal builds.
112 # "$root_gen_dir/chromecast/app_resources.pak",
113 # "$root_gen_dir/chromecast/cast_webui_resources.pak",
114 ]
115 }
116
117 output = "$root_out_dir/assets/cast_shell.pak"
118
119 deps = [
120 "//chromecast/app:resources",
121 "//content:resources",
122 "//content/app/resources",
123 "//content/app/strings",
124 "//net:net_resources",
125 "//third_party/WebKit/public:resources",
126 "//third_party/WebKit/public:image_resources_grit",
127 "//ui/resources",
128 "//ui/strings",
129 ]
130
131 if (is_chromecast_chrome_branded && use_chromecast_webui) {
132 deps += [
133 # TODO(slan): Update these paths to be accurate for internal builds.
134 # "//chromecast/app_resources.pak",
135 # "//chromecast/chromecast_web_ui_resources",
136 ]
137 }
138 }
OLDNEW
« 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