| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 sources += rebase_path( | 100 sources += rebase_path( |
| 101 gypi_values.chrome_renderer_basic_safe_browsing_sources, | 101 gypi_values.chrome_renderer_basic_safe_browsing_sources, |
| 102 ".", "..") | 102 ".", "..") |
| 103 defines += [ "MOBILE_SAFE_BROWSING" ] | 103 defines += [ "MOBILE_SAFE_BROWSING" ] |
| 104 } | 104 } |
| 105 | 105 |
| 106 if (enable_extensions) { | 106 if (enable_extensions) { |
| 107 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources, | 107 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources, |
| 108 ".", "..") | 108 ".", "..") |
| 109 deps += [ | 109 deps += [ |
| 110 # TODO(hclam): See crbug.com/298380 for details. |
| 111 # We should isolate the APIs needed by the renderer. |
| 112 "//chrome/common/extensions/api", |
| 110 "//extensions:extensions_resources", | 113 "//extensions:extensions_resources", |
| 111 "//extensions/renderer", | 114 "//extensions/renderer", |
| 112 ] | 115 ] |
| 113 } | 116 } |
| 114 if (enable_webrtc) { | 117 if (enable_webrtc) { |
| 115 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources, | 118 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources, |
| 116 ".", "..") | 119 ".", "..") |
| 117 } | 120 } |
| 118 if (enable_extensions && enable_webrtc) { | 121 if (enable_extensions && enable_webrtc) { |
| 119 sources += rebase_path( | 122 sources += rebase_path( |
| (...skipping 21 matching lines...) Expand all Loading... |
| 141 if (is_win) { | 144 if (is_win) { |
| 142 deps += [ | 145 deps += [ |
| 143 #'../chrome_elf/chrome_elf.gyp:chrome_elf', TODO(GYP) | 146 #'../chrome_elf/chrome_elf.gyp:chrome_elf', TODO(GYP) |
| 144 "//third_party/wtl", | 147 "//third_party/wtl", |
| 145 ] | 148 ] |
| 146 } | 149 } |
| 147 if (!is_android) { | 150 if (!is_android) { |
| 148 sources += rebase_path(gypi_values.chrome_renderer_non_android_sources, | 151 sources += rebase_path(gypi_values.chrome_renderer_non_android_sources, |
| 149 ".", "..") | 152 ".", "..") |
| 150 } | 153 } |
| 151 if (!is_ios) { | |
| 152 deps += [ | |
| 153 # TODO(hclam): See crbug.com/298380 for details. | |
| 154 # We should isolate the APIs needed by the renderer. | |
| 155 "//chrome/common/extensions/api", | |
| 156 ] | |
| 157 } | |
| 158 | 154 |
| 159 # TODO(GYP) | 155 # TODO(GYP) |
| 160 # 'sources': [ | 156 # 'sources': [ |
| 161 # 'renderer/printing/print_web_view_helper_pdf_win.cc', | 157 # 'renderer/printing/print_web_view_helper_pdf_win.cc', |
| 162 # ], | 158 # ], |
| 163 } | 159 } |
| 164 | 160 |
| 165 # In GYP this is part of test_support_common. | 161 # In GYP this is part of test_support_common. |
| 166 source_set("test_support") { | 162 source_set("test_support") { |
| 167 testonly = true | 163 testonly = true |
| (...skipping 25 matching lines...) Expand all Loading... |
| 193 ] | 189 ] |
| 194 } | 190 } |
| 195 | 191 |
| 196 if (enable_webrtc) { | 192 if (enable_webrtc) { |
| 197 sources += [ | 193 sources += [ |
| 198 "media/mock_webrtc_logging_message_filter.cc", | 194 "media/mock_webrtc_logging_message_filter.cc", |
| 199 "media/mock_webrtc_logging_message_filter.h", | 195 "media/mock_webrtc_logging_message_filter.h", |
| 200 ] | 196 ] |
| 201 } | 197 } |
| 202 } | 198 } |
| OLD | NEW |