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