| 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("//third_party/icu/config.gni") | 5 import("//third_party/icu/config.gni") |
| 6 | 6 |
| 7 # Meta target that includes both icuuc and icui18n. Most targets want both. | 7 # Meta target that includes both icuuc and icui18n. Most targets want both. |
| 8 # You can depend on the individually if you need to. | 8 # You can depend on the individually if you need to. |
| 9 group("icu") { | 9 group("icu") { |
| 10 deps = [ | 10 deps = [ |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 if (is_android) { | 474 if (is_android) { |
| 475 sources = [ | 475 sources = [ |
| 476 "android/icudtl.dat", | 476 "android/icudtl.dat", |
| 477 ] | 477 ] |
| 478 } else { | 478 } else { |
| 479 sources = [ | 479 sources = [ |
| 480 "source/data/in/icudtl.dat", | 480 "source/data/in/icudtl.dat", |
| 481 ] | 481 ] |
| 482 } | 482 } |
| 483 | 483 |
| 484 outputs = [ "$root_out_dir/icudtl.dat" ] | 484 outputs = [ |
| 485 "$root_out_dir/icudtl.dat", |
| 486 ] |
| 485 } | 487 } |
| 486 } | 488 } |
| 487 } else { | 489 } else { |
| 488 if (is_win) { | 490 if (is_win) { |
| 489 # On Windows the target DLL is pre-built so just use a copy rule. | 491 # On Windows the target DLL is pre-built so just use a copy rule. |
| 490 copy("icudata") { | 492 copy("icudata") { |
| 491 sources = [ | 493 sources = [ |
| 492 "windows/icudt.dll", | 494 "windows/icudt.dll", |
| 493 ] | 495 ] |
| 494 outputs = [ "$root_out_dir/icudt.dll" ] | 496 outputs = [ |
| 497 "$root_out_dir/icudt.dll", |
| 498 ] |
| 495 } | 499 } |
| 496 } else { | 500 } else { |
| 497 source_set("icudata") { | 501 source_set("icudata") { |
| 498 # These are hand-generated, but will do for now. | 502 # These are hand-generated, but will do for now. |
| 499 # | 503 # |
| 500 # TODO(GYP): Gyp has considerations here for QNX and for the host toolchai
n | 504 # TODO(GYP): Gyp has considerations here for QNX and for the host toolchai
n |
| 501 # that have not been ported over. | 505 # that have not been ported over. |
| 502 if (is_linux) { | 506 if (is_linux) { |
| 503 sources = [ | 507 sources = [ |
| 504 "linux/icudtl_dat.S", | 508 "linux/icudtl_dat.S", |
| 505 ] | 509 ] |
| 506 } else if (is_mac) { | 510 } else if (is_mac) { |
| 507 sources = [ | 511 sources = [ |
| 508 "mac/icudtl_dat.S", | 512 "mac/icudtl_dat.S", |
| 509 ] | 513 ] |
| 510 } else if (is_android) { | 514 } else if (is_android) { |
| 511 sources = [ | 515 sources = [ |
| 512 "android/icudtl_dat.S", | 516 "android/icudtl_dat.S", |
| 513 ] | 517 ] |
| 514 } else { | 518 } else { |
| 515 assert(false, "No icu data for this platform") | 519 assert(false, "No icu data for this platform") |
| 516 } | 520 } |
| 517 defines = [ "U_HIDE_DATA_SYMBOL" ] | 521 defines = [ "U_HIDE_DATA_SYMBOL" ] |
| 518 } | 522 } |
| 519 } | 523 } |
| 520 } | 524 } |
| OLD | NEW |