| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 "app/shell_main.cc", | 247 "app/shell_main.cc", |
| 247 ] | 248 ] |
| 248 | 249 |
| 249 deps = [ | 250 deps = [ |
| 250 ":app_shell_lib", | 251 ":app_shell_lib", |
| 251 "//build/config:exe_and_shlib_deps", | 252 "//build/config:exe_and_shlib_deps", |
| 252 "//build/win:default_exe_manifest", | 253 "//build/win:default_exe_manifest", |
| 253 "//extensions:shell_and_test_pak", | 254 "//extensions:shell_and_test_pak", |
| 254 ] | 255 ] |
| 255 | 256 |
| 257 public_deps = [ |
| 258 "//gin:v8_context_snapshot_for_blink", |
| 259 ] |
| 260 |
| 256 if (is_win) { | 261 if (is_win) { |
| 257 configs += [ "//build/config/win:windowed" ] | 262 configs += [ "//build/config/win:windowed" ] |
| 258 configs -= [ "//build/config/win:console" ] | 263 configs -= [ "//build/config/win:console" ] |
| 259 } | 264 } |
| 260 } | 265 } |
| 261 } | 266 } |
| 262 | 267 |
| 263 test("app_shell_unittests") { | 268 test("app_shell_unittests") { |
| 264 sources = [ | 269 sources = [ |
| 265 "../test/extensions_unittests_main.cc", | 270 "../test/extensions_unittests_main.cc", |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 "//build/util/LASTCHANGE", | 322 "//build/util/LASTCHANGE", |
| 318 "//chrome/VERSION", | 323 "//chrome/VERSION", |
| 319 ] | 324 ] |
| 320 output = "$target_gen_dir/common/version.h" | 325 output = "$target_gen_dir/common/version.h" |
| 321 } | 326 } |
| 322 | 327 |
| 323 if (is_mac) { | 328 if (is_mac) { |
| 324 bundle_data("app_shell_framework_resources") { | 329 bundle_data("app_shell_framework_resources") { |
| 325 sources = [ | 330 sources = [ |
| 326 "$root_gen_dir/extensions/shell/app_shell_resources.pak", | 331 "$root_gen_dir/extensions/shell/app_shell_resources.pak", |
| 332 "$root_out_dir/context_blob.bin", |
| 327 "$root_out_dir/extensions_shell_and_test.pak", | 333 "$root_out_dir/extensions_shell_and_test.pak", |
| 328 ] | 334 ] |
| 329 public_deps = [ | 335 public_deps = [ |
| 330 ":resources_grit", | 336 ":resources_grit", |
| 331 "//extensions:shell_and_test_pak", | 337 "//extensions:shell_and_test_pak", |
| 338 "//gin:v8_context_snapshot_for_blink", |
| 332 ] | 339 ] |
| 333 if (icu_use_data_file) { | 340 if (icu_use_data_file) { |
| 334 sources += [ "$root_out_dir/icudtl.dat" ] | 341 sources += [ "$root_out_dir/icudtl.dat" ] |
| 335 public_deps += [ "//third_party/icu:icudata" ] | 342 public_deps += [ "//third_party/icu:icudata" ] |
| 336 } | 343 } |
| 337 if (v8_use_external_startup_data) { | 344 if (v8_use_external_startup_data) { |
| 338 sources += [ | 345 sources += [ |
| 339 "$root_out_dir/natives_blob.bin", | 346 "$root_out_dir/natives_blob.bin", |
| 340 "$root_out_dir/snapshot_blob.bin", | 347 "$root_out_dir/snapshot_blob.bin", |
| 341 ] | 348 ] |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 "//extensions/browser", | 453 "//extensions/browser", |
| 447 ] | 454 ] |
| 448 | 455 |
| 449 if (is_chromeos) { | 456 if (is_chromeos) { |
| 450 deps += [ | 457 deps += [ |
| 451 "//chromeos:test_support", | 458 "//chromeos:test_support", |
| 452 "//components/keyed_service/content", | 459 "//components/keyed_service/content", |
| 453 ] | 460 ] |
| 454 } | 461 } |
| 455 } | 462 } |
| OLD | NEW |