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

Side by Side Diff: chrome/renderer/BUILD.gn

Issue 754223003: gn format //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update for multiline output Created 6 years 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 | « chrome/installer/util/BUILD.gn ('k') | chrome/service/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//tools/grit/grit_rule.gni") 6 import("//tools/grit/grit_rule.gni")
7 7
8 gypi_values = exec_script( 8 gypi_values = exec_script("//build/gypi_to_gn.py",
9 "//build/gypi_to_gn.py", 9 [ rebase_path("../chrome_renderer.gypi") ],
10 [ rebase_path("../chrome_renderer.gypi") ], 10 "scope",
11 "scope", 11 [ "../chrome_renderer.gypi" ])
12 [ "../chrome_renderer.gypi" ])
13 12
14 # GYP version: chrome/chrome_resources.gyp:chrome_resources 13 # GYP version: chrome/chrome_resources.gyp:chrome_resources
15 # (generate_renderer_resources action) 14 # (generate_renderer_resources action)
16 grit("resources") { 15 grit("resources") {
17 source = "resources/renderer_resources.grd" 16 source = "resources/renderer_resources.grd"
18 output_dir = "$root_gen_dir/chrome" 17 output_dir = "$root_gen_dir/chrome"
19 output_name = "renderer_resources" 18 output_name = "renderer_resources"
20 outputs = [ 19 outputs = [
21 "grit/renderer_resources.h", 20 "grit/renderer_resources.h",
22 "renderer_resources_100_percent.pak", 21 "renderer_resources_100_percent.pak",
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 ] 68 ]
70 69
71 if (enable_nacl) { 70 if (enable_nacl) {
72 deps += [ 71 deps += [
73 #'../components/nacl.gyp:nacl', TODO(GYP) 72 #'../components/nacl.gyp:nacl', TODO(GYP)
74 #'../components/nacl.gyp:nacl_renderer', TODO(GYP) 73 #'../components/nacl.gyp:nacl_renderer', TODO(GYP)
75 ] 74 ]
76 } 75 }
77 76
78 if (enable_plugins) { 77 if (enable_plugins) {
79 sources += rebase_path(gypi_values.chrome_renderer_plugin_sources, 78 sources +=
80 ".", "..") 79 rebase_path(gypi_values.chrome_renderer_plugin_sources, ".", "..")
81 deps += [ 80 deps += [
82 "//components/pdf/renderer", 81 "//components/pdf/renderer",
83 "//ppapi:ppapi_host", 82 "//ppapi:ppapi_host",
84 "//ppapi:ppapi_ipc", 83 "//ppapi:ppapi_ipc",
85 "//ppapi:ppapi_proxy", 84 "//ppapi:ppapi_proxy",
86 "//ppapi:ppapi_shared", 85 "//ppapi:ppapi_shared",
87 ] 86 ]
88 } 87 }
89 88
90 if (safe_browsing_mode == 1) { 89 if (safe_browsing_mode == 1) {
91 sources += rebase_path(gypi_values.chrome_renderer_safe_browsing_sources, 90 sources += rebase_path(gypi_values.chrome_renderer_safe_browsing_sources,
92 ".", "..") 91 ".",
93 sources += rebase_path( 92 "..")
94 gypi_values.chrome_renderer_basic_safe_browsing_sources, 93 sources +=
95 ".", "..") 94 rebase_path(gypi_values.chrome_renderer_basic_safe_browsing_sources,
95 ".",
96 "..")
96 defines += [ "FULL_SAFE_BROWSING" ] 97 defines += [ "FULL_SAFE_BROWSING" ]
97 deps += [ 98 deps += [
98 "//chrome/common/safe_browsing:proto", 99 "//chrome/common/safe_browsing:proto",
99 "//third_party/smhasher:murmurhash3", 100 "//third_party/smhasher:murmurhash3",
100 ] 101 ]
101 } 102 }
102 if (safe_browsing_mode == 2) { 103 if (safe_browsing_mode == 2) {
103 sources += rebase_path( 104 sources +=
104 gypi_values.chrome_renderer_basic_safe_browsing_sources, 105 rebase_path(gypi_values.chrome_renderer_basic_safe_browsing_sources,
105 ".", "..") 106 ".",
107 "..")
106 defines += [ "MOBILE_SAFE_BROWSING" ] 108 defines += [ "MOBILE_SAFE_BROWSING" ]
107 } 109 }
108 110
109 if (enable_extensions) { 111 if (enable_extensions) {
110 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources, 112 sources +=
111 ".", "..") 113 rebase_path(gypi_values.chrome_renderer_extensions_sources, ".", "..")
112 deps += [ 114 deps += [
113 # TODO(hclam): See crbug.com/298380 for details. 115 # TODO(hclam): See crbug.com/298380 for details.
114 # We should isolate the APIs needed by the renderer. 116 # We should isolate the APIs needed by the renderer.
115 "//chrome/common/extensions/api", 117 "//chrome/common/extensions/api",
116 "//extensions:extensions_resources", 118 "//extensions:extensions_resources",
117 "//extensions/renderer", 119 "//extensions/renderer",
118 ] 120 ]
119 } 121 }
120 if (enable_webrtc) { 122 if (enable_webrtc) {
121 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources, 123 sources +=
122 ".", "..") 124 rebase_path(gypi_values.chrome_renderer_webrtc_sources, ".", "..")
123 } 125 }
124 if (enable_extensions && enable_webrtc) { 126 if (enable_extensions && enable_webrtc) {
125 sources += rebase_path( 127 sources +=
126 gypi_values.chrome_renderer_webrtc_extensions_sources, ".", "..") 128 rebase_path(gypi_values.chrome_renderer_webrtc_extensions_sources,
129 ".",
130 "..")
127 } 131 }
128 if (enable_spellcheck) { 132 if (enable_spellcheck) {
129 sources += rebase_path(gypi_values.chrome_renderer_spellchecker_sources, 133 sources +=
130 ".", "..") 134 rebase_path(gypi_values.chrome_renderer_spellchecker_sources, ".", "..")
131 deps += [ "//third_party/hunspell" ] 135 deps += [ "//third_party/hunspell" ]
132 } 136 }
133 137
134 if (enable_basic_printing || enable_print_preview) { 138 if (enable_basic_printing || enable_print_preview) {
135 deps += [ "//printing" ] 139 deps += [ "//printing" ]
136 sources += rebase_path(gypi_values.chrome_renderer_printing_sources, 140 sources +=
137 ".", "..") 141 rebase_path(gypi_values.chrome_renderer_printing_sources, ".", "..")
138 if (enable_print_preview) { 142 if (enable_print_preview) {
139 sources += rebase_path(gypi_values.chrome_renderer_full_printing_sources, 143 sources += rebase_path(gypi_values.chrome_renderer_full_printing_sources,
140 ".", "..") 144 ".",
145 "..")
141 } 146 }
142 } 147 }
143 148
144 if (is_mac) { 149 if (is_mac) {
145 deps += [ "//third_party/mach_override" ] 150 deps += [ "//third_party/mach_override" ]
146 } 151 }
147 if (is_win) { 152 if (is_win) {
148 deps += [ 153 deps += [
149 #'../chrome_elf/chrome_elf.gyp:chrome_elf', TODO(GYP) 154 #'../chrome_elf/chrome_elf.gyp:chrome_elf', TODO(GYP)
150 "//third_party/wtl", 155 "//third_party/wtl",
151 ] 156 ]
152 } 157 }
153 if (!is_android) { 158 if (!is_android) {
154 sources += rebase_path(gypi_values.chrome_renderer_non_android_sources, 159 sources +=
155 ".", "..") 160 rebase_path(gypi_values.chrome_renderer_non_android_sources, ".", "..")
156 } 161 }
157 162
158 # TODO(GYP) 163 # TODO(GYP)
159 # 'sources': [ 164 # 'sources': [
160 # 'renderer/printing/print_web_view_helper_pdf_win.cc', 165 # 'renderer/printing/print_web_view_helper_pdf_win.cc',
161 # ], 166 # ],
162 } 167 }
163 168
164 # In GYP this is part of test_support_common. 169 # In GYP this is part of test_support_common.
165 source_set("test_support") { 170 source_set("test_support") {
(...skipping 26 matching lines...) Expand all
192 ] 197 ]
193 } 198 }
194 199
195 if (enable_webrtc) { 200 if (enable_webrtc) {
196 sources += [ 201 sources += [
197 "media/mock_webrtc_logging_message_filter.cc", 202 "media/mock_webrtc_logging_message_filter.cc",
198 "media/mock_webrtc_logging_message_filter.h", 203 "media/mock_webrtc_logging_message_filter.h",
199 ] 204 ]
200 } 205 }
201 } 206 }
OLDNEW
« no previous file with comments | « chrome/installer/util/BUILD.gn ('k') | chrome/service/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698