Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(678)

Side by Side Diff: BUILD.gn

Issue 2197523002: Fix isolate_tests/clean isolate step (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: explicitly specify icu data bundle name for "data" Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//third_party/icu/config.gni") 5 import("//third_party/icu/config.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/rules.gni") 8 import("//build/config/android/rules.gni")
9 } 9 }
10 10
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 if (icu_use_data_file) { 564 if (icu_use_data_file) {
565 sources = [ "$root_out_dir/icudtl.dat" ] 565 sources = [ "$root_out_dir/icudtl.dat" ]
566 deps = [ ":icudata" ] 566 deps = [ ":icudata" ]
567 disable_compression = true 567 disable_compression = true
568 } 568 }
569 } 569 }
570 } 570 }
571 571
572 # TODO(GYP): Gyp has considerations here for QNX and for the host toolchain 572 # TODO(GYP): Gyp has considerations here for QNX and for the host toolchain
573 # that have not been ported over. 573 # that have not been ported over.
574 data_bundle = "common/icudtl.dat" 574 big_endian = false
575 if (current_cpu == "mips" || current_cpu == "mips64") {
576 big_endian = true
577 }
578
575 if (is_android) { 579 if (is_android) {
576 data_bundle = "android/icudtl.dat" 580 data_bundle = "android/icudtl.dat"
577 } else if (current_cpu == "mips" || current_cpu == "mips64") { 581 } else if (big_endian) {
578 data_bundle = "common/icudtb.dat" 582 data_bundle = "common/icudtb.dat"
579 } else { 583 } else {
580 data_bundle = "common/icudtl.dat" 584 data_bundle = "common/icudtl.dat"
581 } 585 }
582 586
583 # TODO(GYP) support use_system_icu. 587 # TODO(GYP) support use_system_icu.
584 if (icu_use_data_file) { 588 if (icu_use_data_file) {
585 if (is_ios) { 589 if (is_ios) {
586 bundle_data("icudata") { 590 bundle_data("icudata") {
587 sources = [ "$data_bundle" ] 591 sources = [ "$data_bundle" ]
588 outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ] 592 outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
589 } 593 }
590 } else { 594 } else {
591 copy("icudata") { 595 copy("icudata") {
592 sources = [ "$data_bundle" ] 596 sources = [ "$data_bundle" ]
593 outputs = [ "$root_out_dir/{{source_file_part}}" ] 597 outputs = [ "$root_out_dir/{{source_file_part}}" ]
598 # {{source_file_part}} is not expanded in 'data'.
599 if (big_endian) {
Michael Achenbach 2016/07/29 11:44:37 Not sure if I understand. Who consumes data? The c
600 data = [ "$root_out_dir/icudtb.dat" ]
601 } else {
602 data = [ "$root_out_dir/icudtl.dat" ]
603 }
594 } 604 }
595 } 605 }
596 } else { 606 } else {
597 if (is_win) { 607 if (is_win) {
598 # On Windows the target DLL is pre-built so just use a copy rule. 608 # On Windows the target DLL is pre-built so just use a copy rule.
599 copy("icudata") { 609 copy("icudata") {
600 sources = [ 610 sources = [
601 "windows/icudt.dll", 611 "windows/icudt.dll",
602 ] 612 ]
603 outputs = [ 613 outputs = [ "$root_out_dir/icudt.dll" ]
604 "$root_out_dir/icudt.dll", 614 data = outputs
605 ]
606 } 615 }
607 } else { 616 } else {
608 if (current_cpu == "mips" || current_cpu == "mips64") { 617 if (big_endian) {
609 data_assembly = "$target_gen_dir/icudtb_dat.S" 618 data_assembly = "$target_gen_dir/icudtb_dat.S"
610 } else { 619 } else {
611 data_assembly = "$target_gen_dir/icudtl_dat.S" 620 data_assembly = "$target_gen_dir/icudtl_dat.S"
612 } 621 }
613 action("make_data_assembly") { 622 action("make_data_assembly") {
614 script = "scripts/make_data_assembly.py" 623 script = "scripts/make_data_assembly.py"
615 inputs = [ "$data_bundle" ] 624 inputs = [ "$data_bundle" ]
616 outputs = [ "$data_assembly" ] 625 outputs = [ "$data_assembly" ]
617 args = [ 626 args = [
618 rebase_path(data_bundle, root_build_dir), 627 rebase_path(data_bundle, root_build_dir),
619 rebase_path(data_assembly, root_build_dir), 628 rebase_path(data_assembly, root_build_dir),
620 ] 629 ]
621 if (is_mac) { 630 if (is_mac) {
622 args += [ "--mac" ] 631 args += [ "--mac" ]
623 } 632 }
624 } 633 }
625 634
626 source_set("icudata") { 635 source_set("icudata") {
627 sources = [ "$data_assembly" ] 636 sources = [ "$data_assembly" ]
628 defines = [ "U_HIDE_DATA_SYMBOL" ] 637 defines = [ "U_HIDE_DATA_SYMBOL" ]
629 deps = [ ":make_data_assembly", ] 638 deps = [ ":make_data_assembly", ]
630 } 639 }
631 } 640 }
632 } 641 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698