OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'conditions': [ | 6 'conditions': [ |
7 ['sysroot!=""', { | 7 ['sysroot!=""', { |
8 'variables': { | 8 'variables': { |
9 'pkg-config': './pkg-config-wrapper "<(sysroot)"', | 9 'pkg-config': './pkg-config-wrapper "<(sysroot)"', |
10 }, | 10 }, |
(...skipping 13 matching lines...) Expand all Loading... |
24 'use_system_ssl%': 1, | 24 'use_system_ssl%': 1, |
25 }, | 25 }, |
26 }], | 26 }], |
27 ], | 27 ], |
28 | 28 |
29 | 29 |
30 'targets': [ | 30 'targets': [ |
31 { | 31 { |
32 'target_name': 'gtk', | 32 'target_name': 'gtk', |
33 'type': 'settings', | 33 'type': 'settings', |
| 34 'toolsets': ['host', 'target'], |
34 'conditions': [ | 35 'conditions': [ |
35 ['_toolset=="target"', { | 36 ['_toolset=="target"', { |
36 'direct_dependent_settings': { | 37 'direct_dependent_settings': { |
37 'cflags': [ | 38 'cflags': [ |
38 '<!@(<(pkg-config) --cflags gtk+-2.0 gthread-2.0)', | 39 '<!@(<(pkg-config) --cflags gtk+-2.0 gthread-2.0)', |
39 ], | 40 ], |
40 }, | 41 }, |
41 'link_settings': { | 42 'link_settings': { |
42 'ldflags': [ | 43 'ldflags': [ |
43 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-2.0 gthrea
d-2.0)', | 44 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-2.0 gthrea
d-2.0)', |
44 ], | 45 ], |
45 'libraries': [ | 46 'libraries': [ |
46 '<!@(<(pkg-config) --libs-only-l gtk+-2.0 gthread-2.0)', | 47 '<!@(<(pkg-config) --libs-only-l gtk+-2.0 gthread-2.0)', |
47 ], | 48 ], |
48 }, | 49 }, |
49 }], | 50 }, { |
50 [ 'chromeos==1', { | 51 'direct_dependent_settings': { |
51 'link_settings': { | 52 'cflags': [ |
52 'libraries': [ '-lXtst' ] | 53 '<!@(pkg-config --cflags gtk+-2.0 gthread-2.0)', |
53 } | 54 ], |
54 }]] | 55 }, |
| 56 'link_settings': { |
| 57 'ldflags': [ |
| 58 '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0 gthread-2
.0)', |
| 59 ], |
| 60 'libraries': [ |
| 61 '<!@(pkg-config --libs-only-l gtk+-2.0 gthread-2.0)', |
| 62 ], |
| 63 }, |
| 64 }], |
| 65 ['chromeos==1', { |
| 66 'link_settings': { |
| 67 'libraries': [ '-lXtst' ] |
| 68 } |
| 69 }], |
| 70 ], |
55 }, | 71 }, |
56 { | 72 { |
57 'target_name': 'gtkprint', | 73 'target_name': 'gtkprint', |
58 'type': 'settings', | 74 'type': 'settings', |
59 'conditions': [ | 75 'conditions': [ |
60 ['_toolset=="target"', { | 76 ['_toolset=="target"', { |
61 'direct_dependent_settings': { | 77 'direct_dependent_settings': { |
62 'cflags': [ | 78 'cflags': [ |
63 '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)', | 79 '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)', |
64 ], | 80 ], |
65 }, | 81 }, |
66 'link_settings': { | 82 'link_settings': { |
67 'ldflags': [ | 83 'ldflags': [ |
68 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-print
-2.0)', | 84 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-print
-2.0)', |
69 ], | 85 ], |
70 'libraries': [ | 86 'libraries': [ |
71 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)', | 87 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)', |
72 ], | 88 ], |
73 }, | 89 }, |
74 }]] | 90 }], |
| 91 ], |
75 }, | 92 }, |
76 { | 93 { |
77 'target_name': 'ssl', | 94 'target_name': 'ssl', |
78 'type': 'settings', | 95 'type': 'settings', |
79 'conditions': [ | 96 'conditions': [ |
80 ['_toolset=="target"', { | 97 ['_toolset=="target"', { |
81 'conditions': [ | 98 'conditions': [ |
82 ['use_openssl==1', { | 99 ['use_openssl==1', { |
83 'dependencies': [ | 100 'dependencies': [ |
84 '../../third_party/openssl/openssl.gyp:openssl', | 101 '../../third_party/openssl/openssl.gyp:openssl', |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 ], | 158 ], |
142 }, | 159 }, |
143 'link_settings': { | 160 'link_settings': { |
144 'ldflags': [ | 161 'ldflags': [ |
145 '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)', | 162 '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)', |
146 ], | 163 ], |
147 'libraries': [ | 164 'libraries': [ |
148 '<!@(<(pkg-config) --libs-only-l freetype2)', | 165 '<!@(<(pkg-config) --libs-only-l freetype2)', |
149 ], | 166 ], |
150 }, | 167 }, |
151 }]] | 168 }], |
| 169 ], |
152 }, | 170 }, |
153 { | 171 { |
154 'target_name': 'fontconfig', | 172 'target_name': 'fontconfig', |
155 'type': 'settings', | 173 'type': 'settings', |
156 'conditions': [ | 174 'conditions': [ |
157 ['_toolset=="target"', { | 175 ['_toolset=="target"', { |
158 'direct_dependent_settings': { | 176 'direct_dependent_settings': { |
159 'cflags': [ | 177 'cflags': [ |
160 '<!@(<(pkg-config) --cflags fontconfig)', | 178 '<!@(<(pkg-config) --cflags fontconfig)', |
161 ], | 179 ], |
162 }, | 180 }, |
163 'link_settings': { | 181 'link_settings': { |
164 'ldflags': [ | 182 'ldflags': [ |
165 '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)', | 183 '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)', |
166 ], | 184 ], |
167 'libraries': [ | 185 'libraries': [ |
168 '<!@(<(pkg-config) --libs-only-l fontconfig)', | 186 '<!@(<(pkg-config) --libs-only-l fontconfig)', |
169 ], | 187 ], |
170 }, | 188 }, |
171 }]] | 189 }], |
| 190 ], |
172 }, | 191 }, |
173 { | 192 { |
174 'target_name': 'gdk', | 193 'target_name': 'gdk', |
175 'type': 'settings', | 194 'type': 'settings', |
176 'conditions': [ | 195 'conditions': [ |
177 ['_toolset=="target"', { | 196 ['_toolset=="target"', { |
178 'direct_dependent_settings': { | 197 'direct_dependent_settings': { |
179 'cflags': [ | 198 'cflags': [ |
180 '<!@(<(pkg-config) --cflags gdk-2.0)', | 199 '<!@(<(pkg-config) --cflags gdk-2.0)', |
181 ], | 200 ], |
182 }, | 201 }, |
183 'link_settings': { | 202 'link_settings': { |
184 'ldflags': [ | 203 'ldflags': [ |
185 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)', | 204 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)', |
186 ], | 205 ], |
187 'libraries': [ | 206 'libraries': [ |
188 '<!@(<(pkg-config) --libs-only-l gdk-2.0)', | 207 '<!@(<(pkg-config) --libs-only-l gdk-2.0)', |
189 ], | 208 ], |
190 }, | 209 }, |
191 }]] | 210 }], |
| 211 ], |
192 }, | 212 }, |
193 { | 213 { |
194 'target_name': 'gconf', | 214 'target_name': 'gconf', |
195 'type': 'settings', | 215 'type': 'settings', |
196 'conditions': [ | 216 'conditions': [ |
197 ['use_gconf==1 and _toolset=="target"', { | 217 ['use_gconf==1 and _toolset=="target"', { |
198 'direct_dependent_settings': { | 218 'direct_dependent_settings': { |
199 'cflags': [ | 219 'cflags': [ |
200 '<!@(<(pkg-config) --cflags gconf-2.0)', | 220 '<!@(<(pkg-config) --cflags gconf-2.0)', |
201 ], | 221 ], |
202 'defines': [ | 222 'defines': [ |
203 'USE_GCONF', | 223 'USE_GCONF', |
204 ], | 224 ], |
205 }, | 225 }, |
206 'link_settings': { | 226 'link_settings': { |
207 'ldflags': [ | 227 'ldflags': [ |
208 '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)', | 228 '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)', |
209 ], | 229 ], |
210 'libraries': [ | 230 'libraries': [ |
211 '<!@(<(pkg-config) --libs-only-l gconf-2.0)', | 231 '<!@(<(pkg-config) --libs-only-l gconf-2.0)', |
212 ], | 232 ], |
213 }, | 233 }, |
214 }]] | 234 }], |
| 235 ], |
215 }, | 236 }, |
216 { | 237 { |
217 'target_name': 'gio', | 238 'target_name': 'gio', |
218 'type': 'settings', | 239 'type': 'settings', |
219 'conditions': [ | 240 'conditions': [ |
220 ['use_gio==1 and _toolset=="target"', { | 241 ['use_gio==1 and _toolset=="target"', { |
221 'direct_dependent_settings': { | 242 'direct_dependent_settings': { |
222 'cflags': [ | 243 'cflags': [ |
223 '<!@(<(pkg-config) --cflags gio-2.0)', | 244 '<!@(<(pkg-config) --cflags gio-2.0)', |
224 ], | 245 ], |
(...skipping 14 matching lines...) Expand all Loading... |
239 '<!@(<(pkg-config) --libs-only-l gio-2.0)', | 260 '<!@(<(pkg-config) --libs-only-l gio-2.0)', |
240 ], | 261 ], |
241 'conditions': [ | 262 'conditions': [ |
242 ['linux_link_gsettings==0', { | 263 ['linux_link_gsettings==0', { |
243 'libraries': [ | 264 'libraries': [ |
244 '-ldl', | 265 '-ldl', |
245 ], | 266 ], |
246 }], | 267 }], |
247 ], | 268 ], |
248 }, | 269 }, |
249 }]] | 270 }], |
| 271 ], |
250 }, | 272 }, |
251 { | 273 { |
252 'target_name': 'x11', | 274 'target_name': 'x11', |
253 'type': 'settings', | 275 'type': 'settings', |
| 276 'toolsets': ['host', 'target'], |
254 'conditions': [ | 277 'conditions': [ |
255 ['_toolset=="target"', { | 278 ['_toolset=="target"', { |
256 'direct_dependent_settings': { | 279 'direct_dependent_settings': { |
257 'cflags': [ | 280 'cflags': [ |
258 '<!@(<(pkg-config) --cflags x11)', | 281 '<!@(<(pkg-config) --cflags x11)', |
259 ], | 282 ], |
260 }, | 283 }, |
261 'link_settings': { | 284 'link_settings': { |
262 'ldflags': [ | 285 'ldflags': [ |
263 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', | 286 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', |
264 ], | 287 ], |
265 'libraries': [ | 288 'libraries': [ |
266 '<!@(<(pkg-config) --libs-only-l x11 xi)', | 289 '<!@(<(pkg-config) --libs-only-l x11 xi)', |
267 ], | 290 ], |
268 }, | 291 }, |
269 }], | 292 }, { |
| 293 'direct_dependent_settings': { |
| 294 'cflags': [ |
| 295 '<!@(pkg-config --cflags x11)', |
| 296 ], |
| 297 }, |
| 298 'link_settings': { |
| 299 'ldflags': [ |
| 300 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)', |
| 301 ], |
| 302 'libraries': [ |
| 303 '<!@(pkg-config --libs-only-l x11 xi)', |
| 304 ], |
| 305 }, |
| 306 }], |
270 ], | 307 ], |
271 }, | 308 }, |
272 { | 309 { |
273 'target_name': 'xext', | 310 'target_name': 'xext', |
274 'type': 'settings', | 311 'type': 'settings', |
275 'conditions': [ | 312 'conditions': [ |
276 ['_toolset=="target"', { | 313 ['_toolset=="target"', { |
277 'direct_dependent_settings': { | 314 'direct_dependent_settings': { |
278 'cflags': [ | 315 'cflags': [ |
279 '<!@(<(pkg-config) --cflags xext)', | 316 '<!@(<(pkg-config) --cflags xext)', |
280 ], | 317 ], |
281 }, | 318 }, |
282 'link_settings': { | 319 'link_settings': { |
283 'ldflags': [ | 320 'ldflags': [ |
284 '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)', | 321 '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)', |
285 ], | 322 ], |
286 'libraries': [ | 323 'libraries': [ |
287 '<!@(<(pkg-config) --libs-only-l xext)', | 324 '<!@(<(pkg-config) --libs-only-l xext)', |
288 ], | 325 ], |
289 }, | 326 }, |
290 }]] | 327 }], |
| 328 ], |
291 }, | 329 }, |
292 { | 330 { |
293 'target_name': 'libgcrypt', | 331 'target_name': 'libgcrypt', |
294 'type': 'settings', | 332 'type': 'settings', |
295 'conditions': [ | 333 'conditions': [ |
296 ['_toolset=="target" and use_cups==1', { | 334 ['_toolset=="target" and use_cups==1', { |
297 'direct_dependent_settings': { | 335 'direct_dependent_settings': { |
298 'cflags': [ | 336 'cflags': [ |
299 '<!@(libgcrypt-config --cflags)', | 337 '<!@(libgcrypt-config --cflags)', |
300 ], | 338 ], |
301 }, | 339 }, |
302 'link_settings': { | 340 'link_settings': { |
303 'libraries': [ | 341 'libraries': [ |
304 '<!@(libgcrypt-config --libs)', | 342 '<!@(libgcrypt-config --libs)', |
305 ], | 343 ], |
306 }, | 344 }, |
307 }]] | 345 }], |
| 346 ], |
308 }, | 347 }, |
309 { | 348 { |
310 'target_name': 'selinux', | 349 'target_name': 'selinux', |
311 'type': 'settings', | 350 'type': 'settings', |
312 'conditions': [ | 351 'conditions': [ |
313 ['_toolset=="target"', { | 352 ['_toolset=="target"', { |
314 'link_settings': { | 353 'link_settings': { |
315 'libraries': [ | 354 'libraries': [ |
316 '-lselinux', | 355 '-lselinux', |
317 ], | 356 ], |
318 }, | 357 }, |
319 }]] | 358 }], |
| 359 ], |
320 }, | 360 }, |
321 { | 361 { |
322 'target_name': 'gnome_keyring', | 362 'target_name': 'gnome_keyring', |
323 'type': 'settings', | 363 'type': 'settings', |
324 'conditions': [ | 364 'conditions': [ |
325 ['use_gnome_keyring==1', { | 365 ['use_gnome_keyring==1', { |
326 'direct_dependent_settings': { | 366 'direct_dependent_settings': { |
327 'cflags': [ | 367 'cflags': [ |
328 '<!@(<(pkg-config) --cflags gnome-keyring-1)', | 368 '<!@(<(pkg-config) --cflags gnome-keyring-1)', |
329 ], | 369 ], |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 ], | 518 ], |
479 'libraries': [ | 519 'libraries': [ |
480 '<!@(<(pkg-config) --libs-only-l wayland-client wayland-egl xkbcom
mon)', | 520 '<!@(<(pkg-config) --libs-only-l wayland-client wayland-egl xkbcom
mon)', |
481 ], | 521 ], |
482 }, | 522 }, |
483 }], | 523 }], |
484 ], | 524 ], |
485 }, | 525 }, |
486 ], | 526 ], |
487 } | 527 } |
OLD | NEW |