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

Side by Side Diff: build/linux/unbundle/icu.gyp

Issue 26723003: Linux: switch to using pkg-config for unbundled ICU (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'system_icu', 8 'target_name': 'icudata',
9 'type': 'none', 9 'type': 'none',
10 'toolsets': ['host', 'target'],
11 'direct_dependent_settings': { 10 'direct_dependent_settings': {
11 'cflags': [
12 '<!@(pkg-config --cflags icu-uc)',
13 ],
12 'defines': [ 14 'defines': [
13 'U_USING_ICU_NAMESPACE=0', 15 'U_USING_ICU_NAMESPACE=0',
14 ], 16 ],
15 }, 17 },
16 'link_settings': { 18 'link_settings': {
17 'ldflags': [ 19 'ldflags': [
18 '<!@(icu-config --ldflags)', 20 '<!@(pkg-config --libs-only-L --libs-only-other icu-uc)',
19 ], 21 ],
20 'libraries': [ 22 'libraries': [
21 '<!@(icu-config --ldflags-libsonly)', 23 '<!@(pkg-config --libs-only-l icu-uc)',
22 ], 24 ],
23 }, 25 },
24 }, 26 },
25 { 27 {
26 'target_name': 'icudata',
27 'type': 'none',
28 'dependencies': ['system_icu'],
29 'export_dependent_settings': ['system_icu'],
30 },
31 {
32 'target_name': 'icui18n', 28 'target_name': 'icui18n',
33 'type': 'none', 29 'type': 'none',
34 'toolsets': ['host', 'target'], 30 'toolsets': ['host', 'target'],
35 'dependencies': ['system_icu'], 31 'direct_dependent_settings': {
36 'export_dependent_settings': ['system_icu'], 32 'cflags': [
33 '<!@(pkg-config --cflags icu-i18n)',
34 ],
35 'defines': [
36 'U_USING_ICU_NAMESPACE=0',
37 ],
38 },
39 'link_settings': {
40 'ldflags': [
41 '<!@(pkg-config --libs-only-L --libs-only-other icu-i18n)',
42 ],
43 'libraries': [
44 '<!@(pkg-config --libs-only-l icu-i18n)',
45 ],
46 },
37 'variables': { 47 'variables': {
38 'headers_root_path': 'source/i18n', 48 'headers_root_path': 'source/i18n',
39 'header_filenames': [ 49 'header_filenames': [
40 # This list can easily be updated using the command below: 50 # This list can easily be updated using the command below:
41 # find third_party/icu/source/i18n/unicode -iname '*.h' \ 51 # find third_party/icu/source/i18n/unicode -iname '*.h' \
42 # -printf "'%p',\n" | \ 52 # -printf "'%p',\n" | \
43 # sed -e 's|third_party/icu/source/i18n/||' | sort -u 53 # sed -e 's|third_party/icu/source/i18n/||' | sort -u
44 'unicode/basictz.h', 54 'unicode/basictz.h',
45 'unicode/bmsearch.h', 55 'unicode/bmsearch.h',
46 'unicode/bms.h', 56 'unicode/bms.h',
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 ], 122 ],
113 }, 123 },
114 'includes': [ 124 'includes': [
115 '../../build/shim_headers.gypi', 125 '../../build/shim_headers.gypi',
116 ], 126 ],
117 }, 127 },
118 { 128 {
119 'target_name': 'icuuc', 129 'target_name': 'icuuc',
120 'type': 'none', 130 'type': 'none',
121 'toolsets': ['host', 'target'], 131 'toolsets': ['host', 'target'],
122 'dependencies': ['system_icu'], 132 'direct_dependent_settings': {
123 'export_dependent_settings': ['system_icu'], 133 'cflags': [
134 '<!@(pkg-config --cflags icu-uc)',
135 ],
136 'defines': [
137 'U_USING_ICU_NAMESPACE=0',
138 ],
139 },
140 'link_settings': {
141 'ldflags': [
142 '<!@(pkg-config --libs-only-L --libs-only-other icu-uc)',
143 ],
144 'libraries': [
145 '<!@(pkg-config --libs-only-l icu-uc)',
146 ],
147 },
124 'variables': { 148 'variables': {
125 'headers_root_path': 'source/common', 149 'headers_root_path': 'source/common',
126 'header_filenames': [ 150 'header_filenames': [
127 # This list can easily be updated using the command below: 151 # This list can easily be updated using the command below:
128 # find third_party/icu/source/common/unicode -iname '*.h' \ 152 # find third_party/icu/source/common/unicode -iname '*.h' \
129 # -printf "'%p',\n" | \ 153 # -printf "'%p',\n" | \
130 # sed -e 's|third_party/icu/source/common/||' | sort -u 154 # sed -e 's|third_party/icu/source/common/||' | sort -u
131 'unicode/brkiter.h', 155 'unicode/brkiter.h',
132 'unicode/bytestream.h', 156 'unicode/bytestream.h',
133 'unicode/caniter.h', 157 'unicode/caniter.h',
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 'unicode/uvernum.h', 239 'unicode/uvernum.h',
216 'unicode/uversion.h', 240 'unicode/uversion.h',
217 ], 241 ],
218 }, 242 },
219 'includes': [ 243 'includes': [
220 '../../build/shim_headers.gypi', 244 '../../build/shim_headers.gypi',
221 ], 245 ],
222 }, 246 },
223 ], 247 ],
224 } 248 }
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