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

Side by Side Diff: icu.gyp

Issue 322903003: Fix multiple rules generating icudtl.dat (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/icu52/
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'includes': [ 6 'includes': [
7 'icu.gypi', 7 'icu.gypi',
8 ], 8 ],
9 'variables': { 9 'variables': {
10 'use_system_icu%': 0, 10 'use_system_icu%': 0,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 'include_dirs': [ 66 'include_dirs': [
67 'source/common', 67 'source/common',
68 'source/i18n', 68 'source/i18n',
69 ], 69 ],
70 'msvs_disabled_warnings': [4005, 4068, 4355, 4996, 4267], 70 'msvs_disabled_warnings': [4005, 4068, 4355, 4996, 4267],
71 }, 71 },
72 'conditions': [ 72 'conditions': [
73 ['use_system_icu==0 or want_separate_host_toolset==1', { 73 ['use_system_icu==0 or want_separate_host_toolset==1', {
74 'targets': [ 74 'targets': [
75 { 75 {
76 'target_name': 'copy_icudtl_dat',
77 'type': 'none',
78 # icudtl.dat is the same for both host/target, so this only supports a
79 # single toolset. If a target requires that the .dat file be copied
80 # to the output directory, it should explicitly depend on this target
81 # with the host toolset (like copy_icudtl_dat#host).
82 'toolsets': [ 'host' ],
83 'copies': [{
84 'destination': '<(PRODUCT_DIR)',
85 'conditions': [
86 ['OS == "android"', {
87 'files': [
88 'android/icudtl.dat',
89 ],
90 } , { # else: OS != android
91 'files': [
92 'source/data/in/icudtl.dat',
93 ],
94 }],
95 ],
96 }],
97 },
98 {
76 'target_name': 'icudata', 99 'target_name': 'icudata',
77 'type': 'static_library', 100 'type': 'static_library',
78 'defines': [ 101 'defines': [
79 'U_HIDE_DATA_SYMBOL', 102 'U_HIDE_DATA_SYMBOL',
80 ], 103 ],
81 'sources': [ 104 'sources': [
82 # These are hand-generated, but will do for now. The linux 105 # These are hand-generated, but will do for now. The linux
83 # version is an identical copy of the (mac) icudtl_dat.S file, 106 # version is an identical copy of the (mac) icudtl_dat.S file,
84 # modulo removal of the .private_extern and .const directives and 107 # modulo removal of the .private_extern and .const directives and
85 # with no leading underscore on the icudt52_dat symbol. 108 # with no leading underscore on the icudt52_dat symbol.
(...skipping 24 matching lines...) Expand all
110 }], 133 }],
111 [ 'icu_use_data_file_flag==1', { 134 [ 'icu_use_data_file_flag==1', {
112 # Remove any assembly data file. 135 # Remove any assembly data file.
113 'sources/': [['exclude', 'icudtl_dat']], 136 'sources/': [['exclude', 'icudtl_dat']],
114 # Compile in the stub data symbol. 137 # Compile in the stub data symbol.
115 'sources': ['source/stubdata/stubdata.c'], 138 'sources': ['source/stubdata/stubdata.c'],
116 139
117 # Make sure any binary depending on this gets the data file. 140 # Make sure any binary depending on this gets the data file.
118 'conditions': [ 141 'conditions': [
119 ['OS != "ios"', { 142 ['OS != "ios"', {
120 'copies': [{ 143 'dependencies': [
121 'destination': '<(PRODUCT_DIR)', 144 'copy_icudtl_dat#host',
122 'conditions': [ 145 ],
123 ['OS == "android"', {
124 'files': [
125 'android/icudtl.dat',
126 ],
127 } , { # else: OS != android
128 'files': [
129 'source/data/in/icudtl.dat',
130 ],
131 }],
132 ],
133 }],
134 } , { # else: OS=="ios" 146 } , { # else: OS=="ios"
135 'link_settings': { 147 'link_settings': {
136 'mac_bundle_resources': [ 148 'mac_bundle_resources': [
137 'source/data/in/icudtl.dat', 149 'source/data/in/icudtl.dat',
138 ], 150 ],
139 }, 151 },
140 }], # OS!=ios 152 }], # OS!=ios
141 ], # conditions 153 ], # conditions
142 }], # icu_use_data_file_flag 154 }], # icu_use_data_file_flag
143 ], # conditions 155 ], # conditions
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 }, 602 },
591 'includes': [ 603 'includes': [
592 '../../build/shim_headers.gypi', 604 '../../build/shim_headers.gypi',
593 ], 605 ],
594 'toolsets': ['target'], 606 'toolsets': ['target'],
595 }, 607 },
596 ], # targets 608 ], # targets
597 }], 609 }],
598 ], # conditions 610 ], # conditions
599 } 611 }
OLDNEW
« 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