| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 ] | 74 ] |
| 75 } | 75 } |
| 76 | 76 |
| 77 if (safe_browsing_mode == 1) { | 77 if (safe_browsing_mode == 1) { |
| 78 sources += rebase_path(gypi_values.chrome_renderer_safe_browsing_sources, | 78 sources += rebase_path(gypi_values.chrome_renderer_safe_browsing_sources, |
| 79 ".", "..") | 79 ".", "..") |
| 80 sources += rebase_path( | 80 sources += rebase_path( |
| 81 gypi_values.chrome_renderer_basic_safe_browsing_sources, | 81 gypi_values.chrome_renderer_basic_safe_browsing_sources, |
| 82 ".", "..") | 82 ".", "..") |
| 83 defines += [ "FULL_SAFE_BROWSING" ] | 83 defines += [ "FULL_SAFE_BROWSING" ] |
| 84 defines += [ "SAFE_BROWSING_CSD" ] |
| 85 defines += [ "SAFE_BROWSING_DATABASE" ] |
| 86 defines += [ "SAFE_BROWSING_SERVICE" ] |
| 84 deps += [ | 87 deps += [ |
| 85 "//chrome/common/safe_browsing:proto", | 88 "//chrome/common/safe_browsing:proto", |
| 86 "//third_party/smhasher:murmurhash3", | 89 "//third_party/smhasher:murmurhash3", |
| 87 ] | 90 ] |
| 88 } | 91 } else if (safe_browsing_mode == 2) { |
| 89 if (safe_browsing_mode == 2) { | |
| 90 sources += rebase_path( | 92 sources += rebase_path( |
| 91 gypi_values.chrome_renderer_basic_safe_browsing_sources, | 93 gypi_values.chrome_renderer_basic_safe_browsing_sources, |
| 92 ".", "..") | 94 ".", "..") |
| 93 defines += [ "MOBILE_SAFE_BROWSING" ] | 95 defines += [ "MOBILE_SAFE_BROWSING" ] |
| 96 defines += [ "SAFE_BROWSING_SERVICE" ] |
| 94 } | 97 } |
| 95 | 98 |
| 96 if (enable_extensions) { | 99 if (enable_extensions) { |
| 97 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources, | 100 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources, |
| 98 ".", "..") | 101 ".", "..") |
| 99 } | 102 } |
| 100 if (enable_webrtc) { | 103 if (enable_webrtc) { |
| 101 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources, | 104 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources, |
| 102 ".", "..") | 105 ".", "..") |
| 103 } | 106 } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 # ['win_pdf_metafile_for_printing==1', { | 152 # ['win_pdf_metafile_for_printing==1', { |
| 150 # 'sources': [ | 153 # 'sources': [ |
| 151 # 'renderer/printing/print_web_view_helper_pdf_win.cc', | 154 # 'renderer/printing/print_web_view_helper_pdf_win.cc', |
| 152 # ], | 155 # ], |
| 153 # }, { | 156 # }, { |
| 154 # 'sources': [ | 157 # 'sources': [ |
| 155 # 'renderer/printing/print_web_view_helper_win.cc', | 158 # 'renderer/printing/print_web_view_helper_win.cc', |
| 156 # ], | 159 # ], |
| 157 # }], | 160 # }], |
| 158 } | 161 } |
| OLD | NEW |