| 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("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//build/util/process_version.gni") | 7 import("//build/util/process_version.gni") |
| 8 import("//extensions/features/features.gni") | 8 import("//extensions/features/features.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
| 11 import("//v8/snapshot_toolchain.gni") |
| 11 if (is_mac) { | 12 if (is_mac) { |
| 12 import("//build/config/mac/rules.gni") | 13 import("//build/config/mac/rules.gni") |
| 13 import("//third_party/icu/config.gni") | 14 import("//third_party/icu/config.gni") |
| 14 import("//v8/gni/v8.gni") | 15 import("//v8/gni/v8.gni") |
| 15 } | 16 } |
| 16 | 17 |
| 17 assert(enable_extensions) | 18 assert(enable_extensions) |
| 18 | 19 |
| 19 grit("resources") { | 20 grit("resources") { |
| 20 source = "app_shell_resources.grd" | 21 source = "app_shell_resources.grd" |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 "app/shell_main.cc", | 250 "app/shell_main.cc", |
| 250 ] | 251 ] |
| 251 | 252 |
| 252 deps = [ | 253 deps = [ |
| 253 ":app_shell_lib", | 254 ":app_shell_lib", |
| 254 "//build/config:exe_and_shlib_deps", | 255 "//build/config:exe_and_shlib_deps", |
| 255 "//build/win:default_exe_manifest", | 256 "//build/win:default_exe_manifest", |
| 256 "//extensions:shell_and_test_pak", | 257 "//extensions:shell_and_test_pak", |
| 257 ] | 258 ] |
| 258 | 259 |
| 260 public_deps = [ |
| 261 "//gin:blink_v8_snapshot", |
| 262 ] |
| 263 |
| 259 if (is_win) { | 264 if (is_win) { |
| 260 configs += [ "//build/config/win:windowed" ] | 265 configs += [ "//build/config/win:windowed" ] |
| 261 configs -= [ "//build/config/win:console" ] | 266 configs -= [ "//build/config/win:console" ] |
| 262 } | 267 } |
| 263 } | 268 } |
| 264 } | 269 } |
| 265 | 270 |
| 266 test("app_shell_unittests") { | 271 test("app_shell_unittests") { |
| 267 sources = [ | 272 sources = [ |
| 268 "../test/extensions_unittests_main.cc", | 273 "../test/extensions_unittests_main.cc", |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 "//build/util/LASTCHANGE", | 325 "//build/util/LASTCHANGE", |
| 321 "//chrome/VERSION", | 326 "//chrome/VERSION", |
| 322 ] | 327 ] |
| 323 output = "$target_gen_dir/common/version.h" | 328 output = "$target_gen_dir/common/version.h" |
| 324 } | 329 } |
| 325 | 330 |
| 326 if (is_mac) { | 331 if (is_mac) { |
| 327 bundle_data("app_shell_framework_resources") { | 332 bundle_data("app_shell_framework_resources") { |
| 328 sources = [ | 333 sources = [ |
| 329 "$root_gen_dir/extensions/shell/app_shell_resources.pak", | 334 "$root_gen_dir/extensions/shell/app_shell_resources.pak", |
| 335 "$root_out_dir/blink_v8_snapshot.bin", |
| 330 "$root_out_dir/extensions_shell_and_test.pak", | 336 "$root_out_dir/extensions_shell_and_test.pak", |
| 331 ] | 337 ] |
| 332 public_deps = [ | 338 public_deps = [ |
| 333 ":resources_grit", | 339 ":resources_grit", |
| 334 "//extensions:shell_and_test_pak", | 340 "//extensions:shell_and_test_pak", |
| 341 "//gin:blink_v8_snapshot", |
| 335 ] | 342 ] |
| 336 if (icu_use_data_file) { | 343 if (icu_use_data_file) { |
| 337 sources += [ "$root_out_dir/icudtl.dat" ] | 344 sources += [ "$root_out_dir/icudtl.dat" ] |
| 338 public_deps += [ "//third_party/icu:icudata" ] | 345 public_deps += [ "//third_party/icu:icudata" ] |
| 339 } | 346 } |
| 340 if (v8_use_external_startup_data) { | 347 if (v8_use_external_startup_data) { |
| 341 sources += [ | 348 sources += [ |
| 342 "$root_out_dir/natives_blob.bin", | 349 "$root_out_dir/natives_blob.bin", |
| 343 "$root_out_dir/snapshot_blob.bin", | 350 "$root_out_dir/snapshot_blob.bin", |
| 344 ] | 351 ] |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 "//extensions/browser", | 456 "//extensions/browser", |
| 450 ] | 457 ] |
| 451 | 458 |
| 452 if (is_chromeos) { | 459 if (is_chromeos) { |
| 453 deps += [ | 460 deps += [ |
| 454 "//chromeos:test_support", | 461 "//chromeos:test_support", |
| 455 "//components/keyed_service/content", | 462 "//components/keyed_service/content", |
| 456 ] | 463 ] |
| 457 } | 464 } |
| 458 } | 465 } |
| OLD | NEW |