Chromium Code Reviews| Index: third_party/icu/icu.gyp |
| =================================================================== |
| --- third_party/icu/icu.gyp (revision 69864) |
| +++ third_party/icu/icu.gyp (working copy) |
| @@ -1,10 +1,11 @@ |
| -# Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| +# Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| { |
| 'variables': { |
| 'use_system_icu%': 0, |
| + 'icu_use_datafile%': 0, |
|
Mark Mentovai
2011/02/10 16:08:11
data_file
|
| }, |
| 'conditions': [ |
| ['use_system_icu==0', { |
| @@ -63,6 +64,29 @@ |
| [ 'chromeos != 1', { |
| 'sources!': ['cros/icudt42l_dat.s'], |
| }], |
| + [ 'OS != "win" and icu_use_datafile', { |
| + # Remove any assembly data file. |
| + 'sources/': [['exclude', 'icudt42l_dat']], |
| + # Compile in the stub data symbol. |
| + 'sources': ['source/stubdata/stubdata.c'], |
| + # Make sure any binary depending on this gets the datafile. |
|
Mark Mentovai
2011/02/10 16:08:11
data file
|
| + 'link_settings': { |
| + 'target_conditions': [ |
| + ['OS == "mac" and _mac_bundle', { |
| + 'mac_bundle_resources': [ |
| + 'source/data/in/icudt42l.dat', |
| + ], |
| + }, { |
| + 'copies': [{ |
| + 'destination': '<(PRODUCT_DIR)', |
| + 'files': [ |
| + 'source/data/in/icudt42l.dat', |
| + ], |
| + }], |
| + }], |
| + ], # target_conditions |
| + }, # link_settings |
| + }], |
| [ 'library == "shared_library"', { |
| 'defines': [ |
| 'PUBLIC_SYMBOL', |