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 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
7 import("//chrome/version.gni") | 7 import("//chrome/version.gni") |
8 | 8 |
9 gypi_values = exec_script("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
10 [ rebase_path("../chrome_common.gypi") ], | 10 [ rebase_path("../chrome_common.gypi") ], |
(...skipping 18 matching lines...) Expand all Loading... |
29 grit("extensions_api_resources") { | 29 grit("extensions_api_resources") { |
30 source = "extensions_api_resources.grd" | 30 source = "extensions_api_resources.grd" |
31 output_dir = "$root_gen_dir/chrome" | 31 output_dir = "$root_gen_dir/chrome" |
32 outputs = [ | 32 outputs = [ |
33 "grit/extensions_api_resources.h", | 33 "grit/extensions_api_resources.h", |
34 "extensions_api_resources.pak", | 34 "extensions_api_resources.pak", |
35 ] | 35 ] |
36 } | 36 } |
37 } | 37 } |
38 | 38 |
39 # GYP version: chrome/chrome_common.gypi:common | 39 # GYP version: chrome/chrome_common.gyp:common |
40 static_library("common") { | 40 static_library("common") { |
41 sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome") | 41 sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome") |
42 defines = [] | 42 defines = [] |
43 | 43 |
44 configs += [ | 44 configs += [ |
45 "//build/config:precompiled_headers", | 45 "//build/config:precompiled_headers", |
46 "//build/config/compiler:wexit_time_destructors", | 46 "//build/config/compiler:wexit_time_destructors", |
47 ] | 47 ] |
48 | 48 |
49 public_deps = [ | 49 public_deps = [ |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 public_deps += [ "//components/policy" ] | 262 public_deps += [ "//components/policy" ] |
263 } | 263 } |
264 | 264 |
265 if (safe_browsing_mode == 1) { | 265 if (safe_browsing_mode == 1) { |
266 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, | 266 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, |
267 ".", | 267 ".", |
268 "//chrome") | 268 "//chrome") |
269 } | 269 } |
270 } | 270 } |
271 | 271 |
272 # GYP version: chrome/common_constants.gyp:version_header | 272 process_version("make_chrome_version") { |
273 process_version("version_header") { | 273 template_file = "chrome_version.cc.version" |
274 # TODO(brettw) this should have more reduced visibility, but chrome/browser | 274 output = "$target_gen_dir/chrome_version.cc" |
275 # currently depends on this. | |
276 #visibility = [ ":*" ] | |
277 | |
278 # This one just uses the custom template and no separate sources. | |
279 sources = [] | |
280 template_file = "chrome_version.h.in" | |
281 | |
282 output = "$target_gen_dir/chrome_version.h" | |
283 } | 275 } |
284 | 276 |
285 # GYP version: chrome/common_constants.gyp:common_constants | 277 # GN version: chrome/common_constants.gyp:common_constants |
286 static_library("constants") { | 278 static_library("constants") { |
287 sources = [ | 279 sources = [ |
288 "chrome_constants.cc", | 280 "chrome_constants.cc", |
289 "chrome_constants.h", | 281 "chrome_constants.h", |
290 "chrome_icon_resources_win.cc", | 282 "chrome_icon_resources_win.cc", |
291 "chrome_icon_resources_win.h", | 283 "chrome_icon_resources_win.h", |
292 "chrome_paths.cc", | 284 "chrome_paths.cc", |
293 "chrome_paths.h", | 285 "chrome_paths.h", |
294 "chrome_paths_android.cc", | 286 "chrome_paths_android.cc", |
295 "chrome_paths_internal.h", | 287 "chrome_paths_internal.h", |
296 "chrome_paths_linux.cc", | 288 "chrome_paths_linux.cc", |
297 "chrome_paths_mac.mm", | 289 "chrome_paths_mac.mm", |
298 "chrome_paths_win.cc", | 290 "chrome_paths_win.cc", |
299 "chrome_result_codes.h", | 291 "chrome_result_codes.h", |
300 "chrome_switches.cc", | 292 "chrome_switches.cc", |
301 "chrome_switches.h", | 293 "chrome_switches.h", |
302 "env_vars.cc", | 294 "env_vars.cc", |
303 "env_vars.h", | 295 "env_vars.h", |
304 "pref_font_script_names-inl.h", | 296 "pref_font_script_names-inl.h", |
305 "pref_font_webkit_names.h", | 297 "pref_font_webkit_names.h", |
306 "pref_names.cc", | 298 "pref_names.cc", |
307 "pref_names.h", | 299 "pref_names.h", |
308 ] | 300 ] |
309 | 301 |
310 public_deps = [ | 302 public_deps = [ |
311 "//content/public/common:result_codes", | 303 "//content/public/common:result_codes", |
312 ] | 304 ] |
313 deps = [ | 305 deps = [ |
314 ":version_header", | 306 ":make_chrome_version", |
315 "//base", | 307 "//base", |
316 "//base/third_party/dynamic_annotations", | 308 "//base/third_party/dynamic_annotations", |
317 "//components/bookmarks/common", | 309 "//components/bookmarks/common", |
318 "//third_party/widevine/cdm:version_h", | 310 "//third_party/widevine/cdm:version_h", |
319 ] | 311 ] |
320 | 312 |
321 if (enable_nacl) { | 313 if (enable_nacl) { |
322 deps += [ "//components/nacl:nacl_switches" ] | 314 deps += [ "//components/nacl:nacl_switches" ] |
323 } | 315 } |
324 | 316 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 ":constants", | 373 ":constants", |
382 "//base", | 374 "//base", |
383 ] | 375 ] |
384 } | 376 } |
385 | 377 |
386 mojom("mojo_bindings") { | 378 mojom("mojo_bindings") { |
387 sources = [ | 379 sources = [ |
388 "resource_usage_reporter.mojom", | 380 "resource_usage_reporter.mojom", |
389 ] | 381 ] |
390 } | 382 } |
OLD | NEW |