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

Unified Diff: build/common.gypi

Issue 89863002: Move the logic for getting icu data out of icu_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drop icudata from url.gyp Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 97e8596bd021e114af6db6b25e4439b7ddb5c89b..76f0838af42cd8a109c8e74e48c354e35d42bba3 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -1217,6 +1217,10 @@
# Relative path to icu.gyp from this file.
'icu_gyp_path': '../third_party/icu/icu.gyp',
+ # Whether or not to use "icu*.dat" file for ICU data.
+ # Do not use it by default.
+ 'icu_use_data_file_flag%': 0,
Mark Mentovai 2013/12/02 17:24:53 _flag is kind of obvious, I’d just call it icu_use
jungshik at Google 2013/12/02 18:36:54 I also wondered why icu.gyp has that and found tha
+
'conditions': [
# The version of GCC in use, set later in platforms that use GCC and have
# not explicitly chosen to build with clang. Currently, this means all
@@ -2157,6 +2161,17 @@
['use_udev==1', {
'defines': ['USE_UDEV'],
}],
+ ['icu_use_data_file_flag==1', {
+ 'defines': ['ICU_UTIL_DATA_IMPL=0'], # use 'dat' file
Mark Mentovai 2013/12/02 17:24:53 You can say “=ICU_UTIL_DATA_FILE” instead of “=0”
+ }, { # else icu_use_data_file_flag !=1
+ 'conditions': [
+ ['OS=="win"', {
+ 'defines': ['ICU_UTIL_DATA_IMPL=1'], # shared
+ }, {
+ 'defines': ['ICU_UTIL_DATA_IMPL=2'], # static link
+ }],
+ ],
+ }],
['fastbuild!=0', {
'xcode_settings': {
'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO',
« base/i18n/icu_util.cc ('K') | « base/i18n/icu_util.cc ('k') | url/url.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698