From f004bde584ee3c5033802350bf62cc6829dcf070 Mon Sep 17 00:00:00 2001 From: "jshin@chromium.org" Date: Wed, 18 Dec 2013 18:03:33 +0000 Subject: [Backport] Add support for icu_use_data_file=1 to icu.gyp on Windows BUG=72633 Review URL: https://codereview.chromium.org/111723007 Change-Id: If07088b902b8039ee109e744e46199fd9d13dc46 Reviewed-by: Michael Bruning --- chromium/third_party/icu/icu.gyp | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/chromium/third_party/icu/icu.gyp b/chromium/third_party/icu/icu.gyp index 416050d66d8..0ccd6577ac9 100644 --- a/chromium/third_party/icu/icu.gyp +++ b/chromium/third_party/icu/icu.gyp @@ -71,7 +71,7 @@ }, { 'toolsets': ['host', 'target'], }], - [ 'OS == "win"', { + [ 'OS == "win" and icu_use_data_file_flag==0', { 'type': 'none', 'copies': [ { @@ -82,28 +82,27 @@ }, ], }], - [ 'OS != "win" and icu_use_data_file_flag', { + [ 'icu_use_data_file_flag', { # Remove any assembly data file. 'sources/': [['exclude', 'icudt46l_dat']], # Compile in the stub data symbol. 'sources': ['source/stubdata/stubdata.c'], + # Make sure any binary depending on this gets the data file. - 'link_settings': { - 'target_conditions': [ - ['(OS == "mac" and _mac_bundle) or OS=="ios"', { - 'mac_bundle_resources': [ + 'conditions': [ + ['OS=="ios"', { + 'mac_bundle_resources': [ + 'source/data/in/icudt46l.dat', + ], + }, { + 'copies': [{ + 'destination': '<(PRODUCT_DIR)', + 'files': [ 'source/data/in/icudt46l.dat', ], - }, { - 'copies': [{ - 'destination': '<(PRODUCT_DIR)', - 'files': [ - 'source/data/in/icudt46l.dat', - ], - }], }], - ], # target_conditions - }, # link_settings + }], + ], # target_condition }], ], 'target_conditions': [ -- cgit v1.2.1