| 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", |
| 11 [ "../chrome_common.gypi" ]) | 11 [ "../chrome_common.gypi" ]) |
| 12 | 12 |
| 13 # GYP version: chrome/chrome_resources.gyp:chrome_resources | 13 # GYP version: chrome/chrome_resources.gyp:chrome_resources |
| 14 # (generate_common_resources action) | 14 # (generate_common_resources action) |
| 15 grit("resources") { | 15 grit("resources") { |
| 16 source = "common_resources.grd" | 16 source = "common_resources.grd" |
| 17 output_dir = "$root_gen_dir/chrome" | 17 output_dir = "$root_gen_dir/chrome" |
| 18 output_name = "common_resources" | 18 output_name = "common_resources" |
| 19 outputs = [ | 19 outputs = [ |
| 20 "grit/common_resources.h", | 20 "grit/common_resources.h", |
| 21 "common_resources.pak", | 21 "common_resources.pak", |
| 22 ] | 22 ] |
| 23 } | 23 } |
| 24 | 24 |
| 25 # GYP version: chrome/chrome_resources.gyp:chrome_resources | 25 # GYP version: chrome/chrome_resources.gyp:chrome_resources |
| 26 # (generate_extensions_api_resources action) | 26 # (generate_extensions_api_resources action) |
| 27 if (enable_extensions) { |
| 28 |
| 27 grit("extensions_api_resources") { | 29 grit("extensions_api_resources") { |
| 28 source = "extensions_api_resources.grd" | 30 source = "extensions_api_resources.grd" |
| 29 output_dir = "$root_gen_dir/chrome" | 31 output_dir = "$root_gen_dir/chrome" |
| 30 outputs = [ | 32 outputs = [ |
| 31 "grit/extensions_api_resources.h", | 33 "grit/extensions_api_resources.h", |
| 32 "extensions_api_resources.pak", | 34 "extensions_api_resources.pak", |
| 33 ] | 35 ] |
| 34 } | 36 } |
| 35 | 37 |
| 38 } |
| 39 |
| 36 # GYP version: chrome/chrome_common.gyp:common | 40 # GYP version: chrome/chrome_common.gyp:common |
| 37 static_library("common") { | 41 static_library("common") { |
| 38 sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome") | 42 sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome") |
| 39 defines = [] | 43 defines = [] |
| 40 | 44 |
| 41 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 45 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 42 | 46 |
| 43 deps = [ | 47 deps = [ |
| 44 ":version", | 48 ":version", |
| 45 "//base:base", | 49 "//base:base", |
| 46 "//base:i18n", | 50 "//base:i18n", |
| 47 "//base:prefs", | 51 "//base:prefs", |
| 48 "//base:base_static", | 52 "//base:base_static", |
| 49 "//chrome:resources", | 53 "//chrome:resources", |
| 50 "//chrome:strings", | 54 "//chrome:strings", |
| 51 "//chrome/app/theme:theme_resources", | 55 "//chrome/app/theme:theme_resources", |
| 52 "//chrome/common:constants", | 56 "//chrome/common:constants", |
| 53 "//chrome/common/net", | 57 "//chrome/common/net", |
| 54 "//chrome/common/safe_browsing:proto", | 58 "//chrome/common/safe_browsing:proto", |
| 55 "//chrome/installer/util", | 59 "//chrome/installer/util", |
| 56 "//components/cloud_devices/common", | 60 "//components/cloud_devices/common", |
| 57 "//components/content_settings/core/common", | 61 "//components/content_settings/core/common", |
| 58 "//components/json_schema", | 62 "//components/json_schema", |
| 59 "//components/metrics", | 63 "//components/metrics", |
| 60 "//components/policy:policy_component_common", | 64 "//components/policy:policy_component_common", |
| 61 "//components/translate/core/common", | 65 "//components/translate/core/common", |
| 62 "//components/variations", | 66 "//components/variations", |
| 63 "//content/public/common", | 67 "//content/public/common", |
| 64 "//crypto", | 68 "//crypto", |
| 65 "//extensions:extensions_resources", | 69 "//extensions/common:common_constants", |
| 66 "//extensions/strings", | |
| 67 "//media/cast:net", | 70 "//media/cast:net", |
| 68 "//net", | 71 "//net", |
| 69 "//skia", | 72 "//skia", |
| 70 "//third_party/icu", | 73 "//third_party/icu", |
| 71 "//third_party/libxml", | 74 "//third_party/libxml", |
| 72 "//third_party/sqlite", | 75 "//third_party/sqlite", |
| 73 "//third_party/zlib:zip", | 76 "//third_party/zlib:zip", |
| 74 "//ui/resources:resources", | 77 "//ui/resources:resources", |
| 75 "//url", | 78 "//url", |
| 76 ] | 79 ] |
| (...skipping 22 matching lines...) Expand all Loading... |
| 99 if (enable_extensions) { | 102 if (enable_extensions) { |
| 100 sources += rebase_path( | 103 sources += rebase_path( |
| 101 gypi_values.chrome_common_extensions_sources, | 104 gypi_values.chrome_common_extensions_sources, |
| 102 ".", "//chrome") | 105 ".", "//chrome") |
| 103 deps += [ | 106 deps += [ |
| 104 "//device/bluetooth", # TODO(thestig) Still needed? Not in gyp version. | 107 "//device/bluetooth", # TODO(thestig) Still needed? Not in gyp version. |
| 105 "//device/usb", | 108 "//device/usb", |
| 106 "//chrome/common/extensions/api", | 109 "//chrome/common/extensions/api", |
| 107 "//extensions/common", | 110 "//extensions/common", |
| 108 "//extensions/common/api", | 111 "//extensions/common/api", |
| 112 "//extensions:extensions_resources", |
| 113 "//extensions/strings", |
| 109 ] | 114 ] |
| 110 } | 115 } |
| 111 | 116 |
| 112 if (is_win || is_mac) { | 117 if (is_win || is_mac) { |
| 113 sources += rebase_path( | 118 sources += rebase_path( |
| 114 gypi_values.chrome_common_win_mac_sources, | 119 gypi_values.chrome_common_win_mac_sources, |
| 115 ".", "//chrome") | 120 ".", "//chrome") |
| 116 if (use_openssl) { | 121 if (use_openssl) { |
| 117 sources -= [ | 122 sources -= [ |
| 118 "extensions/api/networking_private/networking_private_crypto_nss.cc", | 123 "extensions/api/networking_private/networking_private_crypto_nss.cc", |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 #'../components/nacl.gyp:nacl_switches', TODO(GYP) | 286 #'../components/nacl.gyp:nacl_switches', TODO(GYP) |
| 282 ] | 287 ] |
| 283 } | 288 } |
| 284 } | 289 } |
| 285 | 290 |
| 286 source_set("test_support") { | 291 source_set("test_support") { |
| 287 testonly = true | 292 testonly = true |
| 288 visibility = [ "//chrome/test:test_support" ] | 293 visibility = [ "//chrome/test:test_support" ] |
| 289 | 294 |
| 290 sources = [ | 295 sources = [ |
| 291 "extensions/extension_test_util.cc", | |
| 292 "extensions/extension_test_util.h", | |
| 293 ] | 296 ] |
| 294 | 297 |
| 295 deps = [ | 298 deps = [ |
| 296 ":common", | 299 ":common", |
| 297 "//base", | 300 "//base", |
| 298 "//testing/gtest", | 301 "//testing/gtest", |
| 299 ] | 302 ] |
| 300 | 303 |
| 301 if (is_win || is_mac) { | 304 if (is_win || is_mac) { |
| 302 sources += [ | 305 sources += [ |
| 303 "media_galleries/picasa_test_util.cc", | 306 "media_galleries/picasa_test_util.cc", |
| 304 "media_galleries/picasa_test_util.h", | 307 "media_galleries/picasa_test_util.h", |
| 305 "media_galleries/pmp_test_util.cc", | 308 "media_galleries/pmp_test_util.cc", |
| 306 "media_galleries/pmp_test_util.h", | 309 "media_galleries/pmp_test_util.h", |
| 307 ] | 310 ] |
| 308 } | 311 } |
| 309 | 312 |
| 313 if (enable_extensions) { |
| 314 sources += [ |
| 315 "extensions/extension_test_util.cc", |
| 316 "extensions/extension_test_util.h", |
| 317 ] |
| 318 } |
| 319 |
| 310 } | 320 } |
| OLD | NEW |