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

Unified Diff: third_party/icu/icu.gyp

Issue 6482029: Add support for using ICU with a data file instead of compiling the data in.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_data_file%': 0,
},
'conditions': [
['use_system_icu==0', {
@@ -63,6 +64,29 @@
[ 'chromeos != 1', {
'sources!': ['cros/icudt42l_dat.s'],
}],
+ [ 'OS != "win" and icu_use_data_file', {
+ # 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 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',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698