Chromium Code Reviews| 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 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 # http://bugs.icu-project.org/trac/ticket/12821 | 76 # http://bugs.icu-project.org/trac/ticket/12821 |
| 77 "/wd4333", # Right shift by too large amount. | 77 "/wd4333", # Right shift by too large amount. |
| 78 ] | 78 ] |
| 79 } else if (is_linux || is_android) { | 79 } else if (is_linux || is_android) { |
| 80 cflags += [ | 80 cflags += [ |
| 81 "-Wno-unused-function", | 81 "-Wno-unused-function", |
| 82 ] | 82 ] |
| 83 } | 83 } |
| 84 if (is_clang) { | 84 if (is_clang) { |
| 85 cflags += [ | 85 cflags += [ |
| 86 # ICU uses its own deprecated functions. | |
| 87 "-Wno-deprecated-declarations", | |
| 88 # ICU has some code with the pattern: | 86 # ICU has some code with the pattern: |
| 89 # if (found = uprv_getWindowsTimeZoneInfo(...)) | 87 # if (found = uprv_getWindowsTimeZoneInfo(...)) |
| 90 "-Wno-parentheses", | 88 "-Wno-parentheses", |
| 91 # ucnv2022.cpp contains three functions that are only used when | 89 # ucnv2022.cpp contains three functions that are only used when |
| 92 # certain preprocessor defines are set. | 90 # certain preprocessor defines are set. |
| 93 # unistr.cpp also has an unused function for non-component builds. | 91 # unistr.cpp also has an unused function for non-component builds. |
| 94 "-Wno-unused-function", | 92 "-Wno-unused-function", |
| 95 ] | 93 ] |
| 96 } | 94 } |
| 95 if (is_clang || is_linux || is_android) { | |
| 96 cflags += [ | |
| 97 # ICU uses its own deprecated functions. | |
| 98 "-Wno-deprecated-declarations", | |
| 99 ] | |
| 100 } | |
| 97 } | 101 } |
| 98 | 102 |
| 99 component("icui18n") { | 103 component("icui18n") { |
| 100 # find source/i18n -maxdepth 1 ! -type d | egrep '\.(c|cpp|h)$' |\ | 104 # find source/i18n -maxdepth 1 ! -type d | egrep '\.(c|cpp|h)$' |\ |
| 101 # sort | sed 's/^\(.*\)$/ "\1",/' | 105 # sort | sed 's/^\(.*\)$/ "\1",/' |
| 102 sources = [ | 106 sources = [ |
| 103 "source/i18n/affixpatternparser.cpp", | 107 "source/i18n/affixpatternparser.cpp", |
| 104 "source/i18n/affixpatternparser.h", | 108 "source/i18n/affixpatternparser.h", |
| 105 "source/i18n/alphaindex.cpp", | 109 "source/i18n/alphaindex.cpp", |
| 106 "source/i18n/anytrans.cpp", | 110 "source/i18n/anytrans.cpp", |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 528 configs -= [ | 532 configs -= [ |
| 529 "//build/config/compiler:no_rtti", # ICU uses RTTI. | 533 "//build/config/compiler:no_rtti", # ICU uses RTTI. |
| 530 "//build/config/compiler:chromium_code", | 534 "//build/config/compiler:chromium_code", |
| 531 ] | 535 ] |
| 532 configs += [ | 536 configs += [ |
| 533 "//build/config/compiler:rtti", | 537 "//build/config/compiler:rtti", |
| 534 "//build/config/compiler:no_chromium_code", | 538 "//build/config/compiler:no_chromium_code", |
| 535 ] | 539 ] |
| 536 | 540 |
| 537 configs += [ ":icu_code" ] | 541 configs += [ ":icu_code" ] |
| 538 public_configs = [ ":icu_config" ] | 542 public_configs = [ ":icu_config" ] |
|
Nico
2016/12/12 15:10:13
Uuuh this isn't good, since this is a public confi
tsniatowski
2016/12/12 15:14:50
icu_code is a nonpublic config here (and everywher
| |
| 539 | |
| 540 cflags = [] | |
| 541 if (is_android || is_linux) { | |
| 542 cflags += [ | |
| 543 # ICU uses its own deprecated functions. | |
| 544 "-Wno-deprecated-declarations", | |
| 545 ] | |
| 546 } | |
| 547 } | 543 } |
| 548 | 544 |
| 549 component("icuuc") { | 545 component("icuuc") { |
| 550 # find source/common -maxdepth 1 ! -type d | egrep '\.(c|cpp|h)$' |\ | 546 # find source/common -maxdepth 1 ! -type d | egrep '\.(c|cpp|h)$' |\ |
| 551 # sort | sed 's/^\(.*\)$/ "\1",/' | 547 # sort | sed 's/^\(.*\)$/ "\1",/' |
| 552 sources = [ | 548 sources = [ |
| 553 "source/common/appendable.cpp", | 549 "source/common/appendable.cpp", |
| 554 "source/common/bmpset.cpp", | 550 "source/common/bmpset.cpp", |
| 555 "source/common/bmpset.h", | 551 "source/common/bmpset.h", |
| 556 "source/common/brkeng.cpp", | 552 "source/common/brkeng.cpp", |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1025 } | 1021 } |
| 1026 } | 1022 } |
| 1027 | 1023 |
| 1028 source_set("icudata") { | 1024 source_set("icudata") { |
| 1029 sources = [ "$data_assembly" ] | 1025 sources = [ "$data_assembly" ] |
| 1030 defines = [ "U_HIDE_DATA_SYMBOL" ] | 1026 defines = [ "U_HIDE_DATA_SYMBOL" ] |
| 1031 deps = [ ":make_data_assembly", ] | 1027 deps = [ ":make_data_assembly", ] |
| 1032 } | 1028 } |
| 1033 } | 1029 } |
| 1034 } | 1030 } |
| OLD | NEW |