OLD | NEW |
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( |
9 "//build/gypi_to_gn.py", | 9 "//build/gypi_to_gn.py", |
10 [ rebase_path("../chrome_renderer.gypi") ], | 10 [ rebase_path("../chrome_renderer.gypi") ], |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 if (enable_extensions && enable_webrtc) { | 123 if (enable_extensions && enable_webrtc) { |
124 sources += rebase_path( | 124 sources += rebase_path( |
125 gypi_values.chrome_renderer_webrtc_extensions_sources, ".", "..") | 125 gypi_values.chrome_renderer_webrtc_extensions_sources, ".", "..") |
126 } | 126 } |
127 if (enable_spellcheck) { | 127 if (enable_spellcheck) { |
128 sources += rebase_path(gypi_values.chrome_renderer_spellchecker_sources, | 128 sources += rebase_path(gypi_values.chrome_renderer_spellchecker_sources, |
129 ".", "..") | 129 ".", "..") |
130 deps += [ "//third_party/hunspell" ] | 130 deps += [ "//third_party/hunspell" ] |
131 } | 131 } |
132 | 132 |
133 if (printing_mode > 0) { | 133 if (enable_basic_printing || enable_print_preview) { |
134 deps += [ "//printing" ] | 134 deps += [ "//printing" ] |
135 sources += rebase_path(gypi_values.chrome_renderer_printing_sources, | 135 sources += rebase_path(gypi_values.chrome_renderer_printing_sources, |
136 ".", "..") | 136 ".", "..") |
137 if (printing_mode == 1) { | 137 if (enable_print_preview) { |
138 sources += rebase_path(gypi_values.chrome_renderer_full_printing_sources, | 138 sources += rebase_path(gypi_values.chrome_renderer_full_printing_sources, |
139 ".", "..") | 139 ".", "..") |
140 } | 140 } |
141 } | 141 } |
142 | 142 |
143 if (is_mac) { | 143 if (is_mac) { |
144 deps += [ "//third_party/mach_override" ] | 144 deps += [ "//third_party/mach_override" ] |
145 } | 145 } |
146 if (is_win) { | 146 if (is_win) { |
147 deps += [ | 147 deps += [ |
(...skipping 26 matching lines...) Expand all Loading... |
174 "safe_browsing/test_utils.h", | 174 "safe_browsing/test_utils.h", |
175 ] | 175 ] |
176 | 176 |
177 deps = [ | 177 deps = [ |
178 ":renderer", | 178 ":renderer", |
179 "//content/test:test_support", | 179 "//content/test:test_support", |
180 "//testing/gmock", | 180 "//testing/gmock", |
181 "//testing/gtest", | 181 "//testing/gtest", |
182 ] | 182 ] |
183 | 183 |
184 if (printing_mode == 1) { | 184 if (enable_print_preview) { |
185 deps += [ "//chrome/service" ] | 185 deps += [ "//chrome/service" ] |
186 } | 186 } |
187 if (printing_mode != 0) { | 187 if (enable_basic_printing || enable_print_preview) { |
188 sources += [ | 188 sources += [ |
189 "printing/mock_printer.cc", | 189 "printing/mock_printer.cc", |
190 "printing/mock_printer.h", | 190 "printing/mock_printer.h", |
191 ] | 191 ] |
192 } | 192 } |
193 | 193 |
194 if (enable_webrtc) { | 194 if (enable_webrtc) { |
195 sources += [ | 195 sources += [ |
196 "media/mock_webrtc_logging_message_filter.cc", | 196 "media/mock_webrtc_logging_message_filter.cc", |
197 "media/mock_webrtc_logging_message_filter.h", | 197 "media/mock_webrtc_logging_message_filter.h", |
198 ] | 198 ] |
199 } | 199 } |
200 } | 200 } |
OLD | NEW |