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.gyp:common | 39 # GYP version: chrome/chrome_common.gypi: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 process_version("make_chrome_version") { | 272 # GYP version: chrome/common_constants.gyp:version_header |
273 template_file = "chrome_version.cc.version" | 273 process_version("version_header") { |
274 output = "$target_gen_dir/chrome_version.cc" | 274 # TODO(brettw) this should have more reduced visibility, but chrome/browser |
| 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" |
275 } | 283 } |
276 | 284 |
277 # GN version: chrome/common_constants.gyp:common_constants | 285 # GYP version: chrome/common_constants.gyp:common_constants |
278 static_library("constants") { | 286 static_library("constants") { |
279 sources = [ | 287 sources = [ |
280 "chrome_constants.cc", | 288 "chrome_constants.cc", |
281 "chrome_constants.h", | 289 "chrome_constants.h", |
282 "chrome_icon_resources_win.cc", | 290 "chrome_icon_resources_win.cc", |
283 "chrome_icon_resources_win.h", | 291 "chrome_icon_resources_win.h", |
284 "chrome_paths.cc", | 292 "chrome_paths.cc", |
285 "chrome_paths.h", | 293 "chrome_paths.h", |
286 "chrome_paths_android.cc", | 294 "chrome_paths_android.cc", |
287 "chrome_paths_internal.h", | 295 "chrome_paths_internal.h", |
288 "chrome_paths_linux.cc", | 296 "chrome_paths_linux.cc", |
289 "chrome_paths_mac.mm", | 297 "chrome_paths_mac.mm", |
290 "chrome_paths_win.cc", | 298 "chrome_paths_win.cc", |
291 "chrome_result_codes.h", | 299 "chrome_result_codes.h", |
292 "chrome_switches.cc", | 300 "chrome_switches.cc", |
293 "chrome_switches.h", | 301 "chrome_switches.h", |
294 "env_vars.cc", | 302 "env_vars.cc", |
295 "env_vars.h", | 303 "env_vars.h", |
296 "pref_font_script_names-inl.h", | 304 "pref_font_script_names-inl.h", |
297 "pref_font_webkit_names.h", | 305 "pref_font_webkit_names.h", |
298 "pref_names.cc", | 306 "pref_names.cc", |
299 "pref_names.h", | 307 "pref_names.h", |
300 ] | 308 ] |
301 | 309 |
302 public_deps = [ | 310 public_deps = [ |
303 "//content/public/common:result_codes", | 311 "//content/public/common:result_codes", |
304 ] | 312 ] |
305 deps = [ | 313 deps = [ |
306 ":make_chrome_version", | 314 ":version_header", |
307 "//base", | 315 "//base", |
308 "//base/third_party/dynamic_annotations", | 316 "//base/third_party/dynamic_annotations", |
309 "//components/bookmarks/common", | 317 "//components/bookmarks/common", |
310 "//third_party/widevine/cdm:version_h", | 318 "//third_party/widevine/cdm:version_h", |
311 ] | 319 ] |
312 | 320 |
313 if (enable_nacl) { | 321 if (enable_nacl) { |
314 deps += [ "//components/nacl:nacl_switches" ] | 322 deps += [ "//components/nacl:nacl_switches" ] |
315 } | 323 } |
316 | 324 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 ":constants", | 381 ":constants", |
374 "//base", | 382 "//base", |
375 ] | 383 ] |
376 } | 384 } |
377 | 385 |
378 mojom("mojo_bindings") { | 386 mojom("mojo_bindings") { |
379 sources = [ | 387 sources = [ |
380 "resource_usage_reporter.mojom", | 388 "resource_usage_reporter.mojom", |
381 ] | 389 ] |
382 } | 390 } |
OLD | NEW |