| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/locales.gni") | 7 import("//build/config/locales.gni") |
| 8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
| 9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
| 10 import("//chromecast/build/tests/cast_test.gni") | 10 import("//chromecast/build/tests/cast_test.gni") |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 "//ui/strings", | 345 "//ui/strings", |
| 346 ] | 346 ] |
| 347 | 347 |
| 348 if (chromecast_branding != "public") { | 348 if (chromecast_branding != "public") { |
| 349 sources += [ "$root_gen_dir/chromecast/internal/cast_shell_internal.pak" ] | 349 sources += [ "$root_gen_dir/chromecast/internal/cast_shell_internal.pak" ] |
| 350 | 350 |
| 351 deps += [ "//chromecast/internal:cast_shell_internal_pak" ] | 351 deps += [ "//chromecast/internal:cast_shell_internal_pak" ] |
| 352 } | 352 } |
| 353 } | 353 } |
| 354 | 354 |
| 355 # GYP target: chromecast_locales.gyp:chromecast_locales_pak | |
| 356 action("chromecast_locales_pak") { | 355 action("chromecast_locales_pak") { |
| 357 script = "//chromecast/tools/build/chromecast_repack_locales.py" | 356 script = "//chromecast/tools/build/chromecast_repack_locales.py" |
| 358 | 357 |
| 359 # .pak resources in |grit_out_dir| with the same suffix are packed into a | 358 # .pak resources in |grit_out_dir| with the same suffix are packed into a |
| 360 # single resource and placed in |locales_dir|. The original .pak resources | 359 # single resource and placed in |locales_dir|. The original .pak resources |
| 361 # are generated by this target's dependencies. | 360 # are generated by this target's dependencies. |
| 362 grit_out_dir = "$root_gen_dir/chromecast_strings" | 361 grit_out_dir = "$root_gen_dir/chromecast_strings" |
| 363 locales_dir = "$root_out_dir/chromecast_locales" | 362 locales_dir = "$root_out_dir/chromecast_locales" |
| 364 | 363 |
| 365 sources = [] | 364 sources = [] |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 } | 403 } |
| 405 args += locales | 404 args += locales |
| 406 } | 405 } |
| 407 | 406 |
| 408 buildflag_header("chromecast_features") { | 407 buildflag_header("chromecast_features") { |
| 409 header = "chromecast_features.h" | 408 header = "chromecast_features.h" |
| 410 flags = [ "IS_CAST_AUDIO_ONLY=$is_cast_audio_only" ] | 409 flags = [ "IS_CAST_AUDIO_ONLY=$is_cast_audio_only" ] |
| 411 } | 410 } |
| 412 | 411 |
| 413 if (is_android) { | 412 if (is_android) { |
| 414 # GYP target: chromecast.gyp:cast_shell_icudata | |
| 415 android_assets("cast_shell_apk_assets") { | 413 android_assets("cast_shell_apk_assets") { |
| 416 assert(v8_use_external_startup_data) | 414 assert(v8_use_external_startup_data) |
| 417 | 415 |
| 418 sources = [ | 416 sources = [ |
| 419 "$root_out_dir/assets/cast_shell.pak", | 417 "$root_out_dir/assets/cast_shell.pak", |
| 420 ] | 418 ] |
| 421 | 419 |
| 422 deps = [ | 420 deps = [ |
| 423 ":cast_shell_pak", | 421 ":cast_shell_pak", |
| 424 "//third_party/icu:icu_assets", | 422 "//third_party/icu:icu_assets", |
| 425 "//v8:v8_external_startup_data_assets", | 423 "//v8:v8_external_startup_data_assets", |
| 426 ] | 424 ] |
| 427 disable_compression = true | 425 disable_compression = true |
| 428 } | 426 } |
| 429 | 427 |
| 430 # GYP target: chromecast.gyp:cast_shell_apk | |
| 431 android_apk("cast_shell_apk") { | 428 android_apk("cast_shell_apk") { |
| 432 apk_name = "CastShell" | 429 apk_name = "CastShell" |
| 433 android_manifest = "$root_gen_dir/cast_shell_manifest/AndroidManifest.xml" | 430 android_manifest = "$root_gen_dir/cast_shell_manifest/AndroidManifest.xml" |
| 434 android_manifest_dep = "//chromecast/browser/android:cast_shell_manifest" | 431 android_manifest_dep = "//chromecast/browser/android:cast_shell_manifest" |
| 435 deps = [ | 432 deps = [ |
| 436 ":cast_shell_apk_assets", | 433 ":cast_shell_apk_assets", |
| 437 "//chromecast/android:libcast_shell_android", | 434 "//chromecast/android:libcast_shell_android", |
| 438 "//chromecast/browser/android:cast_shell_java", | 435 "//chromecast/browser/android:cast_shell_java", |
| 439 ] | 436 ] |
| 440 } | 437 } |
| 441 } | 438 } |
| OLD | NEW |