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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 sources += rebase_path(gypi_values.chrome_renderer_plugin_sources, | 67 sources += rebase_path(gypi_values.chrome_renderer_plugin_sources, |
68 ".", "..") | 68 ".", "..") |
69 deps += [ | 69 deps += [ |
70 #'../ppapi/ppapi_internal.gyp:ppapi_host', TODO(GYP | 70 #'../ppapi/ppapi_internal.gyp:ppapi_host', TODO(GYP |
71 #'../ppapi/ppapi_internal.gyp:ppapi_proxy', TODO(GYP | 71 #'../ppapi/ppapi_internal.gyp:ppapi_proxy', TODO(GYP |
72 #'../ppapi/ppapi_internal.gyp:ppapi_ipc', TODO(GYP | 72 #'../ppapi/ppapi_internal.gyp:ppapi_ipc', TODO(GYP |
73 #'../ppapi/ppapi_internal.gyp:ppapi_shared', TODO(GYP | 73 #'../ppapi/ppapi_internal.gyp:ppapi_shared', TODO(GYP |
74 ] | 74 ] |
75 } | 75 } |
76 | 76 |
77 if (safe_browsing_mode == 1) { | 77 if (safe_browsing_mode != 0) { |
78 sources += rebase_path(gypi_values.chrome_renderer_safe_browsing_sources, | |
79 ".", "..") | |
80 sources += rebase_path( | 78 sources += rebase_path( |
81 gypi_values.chrome_renderer_basic_safe_browsing_sources, | 79 gypi_values.chrome_renderer_basic_safe_browsing_sources, |
82 ".", "..") | 80 ".", "..") |
83 defines += [ "FULL_SAFE_BROWSING" ] | 81 if (safe_browsing_mode == 1) { |
84 deps += [ | 82 sources += rebase_path(gypi_values.chrome_renderer_safe_browsing_sources, |
85 "//chrome/common/safe_browsing:proto", | 83 ".", "..") |
86 "//third_party/smhasher:murmurhash3", | 84 deps += [ |
87 ] | 85 "//chrome/common/safe_browsing:proto", |
88 } | 86 "//third_party/smhasher:murmurhash3", |
89 if (safe_browsing_mode == 2) { | 87 ] |
90 sources += rebase_path( | 88 } |
91 gypi_values.chrome_renderer_basic_safe_browsing_sources, | |
92 ".", "..") | |
93 defines += [ "MOBILE_SAFE_BROWSING" ] | |
94 } | 89 } |
95 | 90 |
96 if (enable_extensions) { | 91 if (enable_extensions) { |
97 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources, | 92 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources, |
98 ".", "..") | 93 ".", "..") |
99 } | 94 } |
100 if (enable_webrtc) { | 95 if (enable_webrtc) { |
101 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources, | 96 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources, |
102 ".", "..") | 97 ".", "..") |
103 } | 98 } |
(...skipping 45 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 |