| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 sources += rebase_path(gypi_values.chrome_renderer_plugin_sources, | 72 sources += rebase_path(gypi_values.chrome_renderer_plugin_sources, |
| 73 ".", "..") | 73 ".", "..") |
| 74 deps += [ | 74 deps += [ |
| 75 "//ppapi:ppapi_host", | 75 "//ppapi:ppapi_host", |
| 76 "//ppapi:ppapi_ipc", | 76 "//ppapi:ppapi_ipc", |
| 77 "//ppapi:ppapi_proxy", | 77 "//ppapi:ppapi_proxy", |
| 78 "//ppapi:ppapi_shared", | 78 "//ppapi:ppapi_shared", |
| 79 ] | 79 ] |
| 80 } | 80 } |
| 81 | 81 |
| 82 if (safe_browsing_mode == 1) { | 82 if (safe_browsing_mode != 0) { |
| 83 sources += rebase_path(gypi_values.chrome_renderer_safe_browsing_sources, | |
| 84 ".", "..") | |
| 85 sources += rebase_path( | 83 sources += rebase_path( |
| 86 gypi_values.chrome_renderer_basic_safe_browsing_sources, | 84 gypi_values.chrome_renderer_basic_safe_browsing_sources, |
| 87 ".", "..") | 85 ".", "..") |
| 88 defines += [ "FULL_SAFE_BROWSING" ] | 86 if (safe_browsing_mode == 1) { |
| 89 deps += [ | 87 sources += rebase_path(gypi_values.chrome_renderer_safe_browsing_sources, |
| 90 "//chrome/common/safe_browsing:proto", | 88 ".", "..") |
| 91 "//third_party/smhasher:murmurhash3", | 89 deps += [ |
| 92 ] | 90 "//chrome/common/safe_browsing:proto", |
| 93 } | 91 "//third_party/smhasher:murmurhash3", |
| 94 if (safe_browsing_mode == 2) { | 92 ] |
| 95 sources += rebase_path( | 93 } |
| 96 gypi_values.chrome_renderer_basic_safe_browsing_sources, | |
| 97 ".", "..") | |
| 98 defines += [ "MOBILE_SAFE_BROWSING" ] | |
| 99 } | 94 } |
| 100 | 95 |
| 101 if (enable_extensions) { | 96 if (enable_extensions) { |
| 102 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources, | 97 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources, |
| 103 ".", "..") | 98 ".", "..") |
| 104 } | 99 } |
| 105 if (enable_webrtc) { | 100 if (enable_webrtc) { |
| 106 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources, | 101 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources, |
| 107 ".", "..") | 102 ".", "..") |
| 108 } | 103 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 # ['win_pdf_metafile_for_printing==1', { | 144 # ['win_pdf_metafile_for_printing==1', { |
| 150 # 'sources': [ | 145 # 'sources': [ |
| 151 # 'renderer/printing/print_web_view_helper_pdf_win.cc', | 146 # 'renderer/printing/print_web_view_helper_pdf_win.cc', |
| 152 # ], | 147 # ], |
| 153 # }, { | 148 # }, { |
| 154 # 'sources': [ | 149 # 'sources': [ |
| 155 # 'renderer/printing/print_web_view_helper_win.cc', | 150 # 'renderer/printing/print_web_view_helper_win.cc', |
| 156 # ], | 151 # ], |
| 157 # }], | 152 # }], |
| 158 } | 153 } |
| OLD | NEW |