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("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
6 | 6 |
7 gypi_values = exec_script( | 7 gypi_values = exec_script( |
8 "//build/gypi_to_gn.py", | 8 "//build/gypi_to_gn.py", |
9 [ rebase_path("../chrome_common.gypi") ], | 9 [ rebase_path("../chrome_common.gypi") ], |
10 "scope", | 10 "scope", |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 "//third_party/re2", | 76 "//third_party/re2", |
77 "//third_party/widevine/cdm:version_h", | 77 "//third_party/widevine/cdm:version_h", |
78 #'<(DEPTH)/components/components.gyp:password_manager_core_common', TODO(
GYP) | 78 #'<(DEPTH)/components/components.gyp:password_manager_core_common', TODO(
GYP) |
79 #'<(DEPTH)/components/components.gyp:signin_core_common', TODO(GYP) | 79 #'<(DEPTH)/components/components.gyp:signin_core_common', TODO(GYP) |
80 #'<(DEPTH)/components/nacl.gyp:nacl_common', TODO(GYP) | 80 #'<(DEPTH)/components/nacl.gyp:nacl_common', TODO(GYP) |
81 #'<(DEPTH)/extensions/extensions.gyp:extensions_common', TODO(GYP) | 81 #'<(DEPTH)/extensions/extensions.gyp:extensions_common', TODO(GYP) |
82 ] | 82 ] |
83 } | 83 } |
84 | 84 |
85 if (safe_browsing_mode == 1) { | 85 if (safe_browsing_mode == 1) { |
86 defines += [ "FULL_SAFE_BROWSING" ] | |
87 sources += rebase_path( | 86 sources += rebase_path( |
88 gypi_values.chrome_common_full_safe_browsing_sources, | 87 gypi_values.chrome_common_full_safe_browsing_sources, |
89 ".", "//chrome") | 88 ".", "//chrome") |
90 } | 89 } |
91 if (safe_browsing_mode == 2) { | |
92 defines += [ "MOBILE_SAFE_BROWSING" ] | |
93 } | |
94 } | 90 } |
95 | 91 |
96 if (is_linux) { | 92 if (is_linux) { |
97 action("version") { | 93 action("version") { |
98 visibility = ":common" | 94 visibility = ":common" |
99 script = "//build/util/version.py" | 95 script = "//build/util/version.py" |
100 | 96 |
101 lastchange_path = "//build/util/LASTCHANGE" | 97 lastchange_path = "//build/util/LASTCHANGE" |
102 version_path = "//chrome/VERSION" | 98 version_path = "//chrome/VERSION" |
103 template_input_path = "chrome_version_info_posix.h.version" | 99 template_input_path = "chrome_version_info_posix.h.version" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 157 |
162 deps = [ | 158 deps = [ |
163 "//base", | 159 "//base", |
164 "//base/third_party/dynamic_annotations", | 160 "//base/third_party/dynamic_annotations", |
165 "//third_party/widevine/cdm:version_h", | 161 "//third_party/widevine/cdm:version_h", |
166 # TODO(GYP) | 162 # TODO(GYP) |
167 #'../components/components.gyp:bookmarks_common', | 163 #'../components/components.gyp:bookmarks_common', |
168 #'../components/nacl.gyp:nacl_switches', | 164 #'../components/nacl.gyp:nacl_switches', |
169 ] | 165 ] |
170 } | 166 } |
OLD | NEW |