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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 ], | 141 ], |
159 }, | 142 }, |
160 'link_settings': { | 143 'link_settings': { |
161 'ldflags': [ | 144 'ldflags': [ |
162 '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)', | 145 '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)', |
163 ], | 146 ], |
164 'libraries': [ | 147 'libraries': [ |
165 '<!@(<(pkg-config) --libs-only-l freetype2)', | 148 '<!@(<(pkg-config) --libs-only-l freetype2)', |
166 ], | 149 ], |
167 }, | 150 }, |
168 }], | 151 }]] |
169 ], | |
170 }, | 152 }, |
171 { | 153 { |
172 'target_name': 'fontconfig', | 154 'target_name': 'fontconfig', |
173 'type': 'settings', | 155 'type': 'settings', |
174 'conditions': [ | 156 'conditions': [ |
175 ['_toolset=="target"', { | 157 ['_toolset=="target"', { |
176 'direct_dependent_settings': { | 158 'direct_dependent_settings': { |
177 'cflags': [ | 159 'cflags': [ |
178 '<!@(<(pkg-config) --cflags fontconfig)', | 160 '<!@(<(pkg-config) --cflags fontconfig)', |
179 ], | 161 ], |
180 }, | 162 }, |
181 'link_settings': { | 163 'link_settings': { |
182 'ldflags': [ | 164 'ldflags': [ |
183 '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)', | 165 '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)', |
184 ], | 166 ], |
185 'libraries': [ | 167 'libraries': [ |
186 '<!@(<(pkg-config) --libs-only-l fontconfig)', | 168 '<!@(<(pkg-config) --libs-only-l fontconfig)', |
187 ], | 169 ], |
188 }, | 170 }, |
189 }], | 171 }]] |
190 ], | |
191 }, | 172 }, |
192 { | 173 { |
193 'target_name': 'gdk', | 174 'target_name': 'gdk', |
194 'type': 'settings', | 175 'type': 'settings', |
195 'conditions': [ | 176 'conditions': [ |
196 ['_toolset=="target"', { | 177 ['_toolset=="target"', { |
197 'direct_dependent_settings': { | 178 'direct_dependent_settings': { |
198 'cflags': [ | 179 'cflags': [ |
199 '<!@(<(pkg-config) --cflags gdk-2.0)', | 180 '<!@(<(pkg-config) --cflags gdk-2.0)', |
200 ], | 181 ], |
201 }, | 182 }, |
202 'link_settings': { | 183 'link_settings': { |
203 'ldflags': [ | 184 'ldflags': [ |
204 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)', | 185 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)', |
205 ], | 186 ], |
206 'libraries': [ | 187 'libraries': [ |
207 '<!@(<(pkg-config) --libs-only-l gdk-2.0)', | 188 '<!@(<(pkg-config) --libs-only-l gdk-2.0)', |
208 ], | 189 ], |
209 }, | 190 }, |
210 }], | 191 }]] |
211 ], | |
212 }, | 192 }, |
213 { | 193 { |
214 'target_name': 'gconf', | 194 'target_name': 'gconf', |
215 'type': 'settings', | 195 'type': 'settings', |
216 'conditions': [ | 196 'conditions': [ |
217 ['use_gconf==1 and _toolset=="target"', { | 197 ['use_gconf==1 and _toolset=="target"', { |
218 'direct_dependent_settings': { | 198 'direct_dependent_settings': { |
219 'cflags': [ | 199 'cflags': [ |
220 '<!@(<(pkg-config) --cflags gconf-2.0)', | 200 '<!@(<(pkg-config) --cflags gconf-2.0)', |
221 ], | 201 ], |
222 'defines': [ | 202 'defines': [ |
223 'USE_GCONF', | 203 'USE_GCONF', |
224 ], | 204 ], |
225 }, | 205 }, |
226 'link_settings': { | 206 'link_settings': { |
227 'ldflags': [ | 207 'ldflags': [ |
228 '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)', | 208 '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)', |
229 ], | 209 ], |
230 'libraries': [ | 210 'libraries': [ |
231 '<!@(<(pkg-config) --libs-only-l gconf-2.0)', | 211 '<!@(<(pkg-config) --libs-only-l gconf-2.0)', |
232 ], | 212 ], |
233 }, | 213 }, |
234 }], | 214 }]] |
235 ], | |
236 }, | 215 }, |
237 { | 216 { |
238 'target_name': 'gio', | 217 'target_name': 'gio', |
239 'type': 'settings', | 218 'type': 'settings', |
240 'conditions': [ | 219 'conditions': [ |
241 ['use_gio==1 and _toolset=="target"', { | 220 ['use_gio==1 and _toolset=="target"', { |
242 'direct_dependent_settings': { | 221 'direct_dependent_settings': { |
243 'cflags': [ | 222 'cflags': [ |
244 '<!@(<(pkg-config) --cflags gio-2.0)', | 223 '<!@(<(pkg-config) --cflags gio-2.0)', |
245 ], | 224 ], |
(...skipping 14 matching lines...) Expand all Loading... |
260 '<!@(<(pkg-config) --libs-only-l gio-2.0)', | 239 '<!@(<(pkg-config) --libs-only-l gio-2.0)', |
261 ], | 240 ], |
262 'conditions': [ | 241 'conditions': [ |
263 ['linux_link_gsettings==0', { | 242 ['linux_link_gsettings==0', { |
264 'libraries': [ | 243 'libraries': [ |
265 '-ldl', | 244 '-ldl', |
266 ], | 245 ], |
267 }], | 246 }], |
268 ], | 247 ], |
269 }, | 248 }, |
270 }], | 249 }]] |
271 ], | |
272 }, | 250 }, |
273 { | 251 { |
274 'target_name': 'x11', | 252 'target_name': 'x11', |
275 'type': 'settings', | 253 'type': 'settings', |
276 'toolsets': ['host', 'target'], | |
277 'conditions': [ | 254 'conditions': [ |
278 ['_toolset=="target"', { | 255 ['_toolset=="target"', { |
279 'direct_dependent_settings': { | 256 'direct_dependent_settings': { |
280 'cflags': [ | 257 'cflags': [ |
281 '<!@(<(pkg-config) --cflags x11)', | 258 '<!@(<(pkg-config) --cflags x11)', |
282 ], | 259 ], |
283 }, | 260 }, |
284 'link_settings': { | 261 'link_settings': { |
285 'ldflags': [ | 262 'ldflags': [ |
286 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', | 263 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', |
287 ], | 264 ], |
288 'libraries': [ | 265 'libraries': [ |
289 '<!@(<(pkg-config) --libs-only-l x11 xi)', | 266 '<!@(<(pkg-config) --libs-only-l x11 xi)', |
290 ], | 267 ], |
291 }, | 268 }, |
292 }, { | 269 }], |
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 }], | |
307 ], | 270 ], |
308 }, | 271 }, |
309 { | 272 { |
310 'target_name': 'xext', | 273 'target_name': 'xext', |
311 'type': 'settings', | 274 'type': 'settings', |
312 'conditions': [ | 275 'conditions': [ |
313 ['_toolset=="target"', { | 276 ['_toolset=="target"', { |
314 'direct_dependent_settings': { | 277 'direct_dependent_settings': { |
315 'cflags': [ | 278 'cflags': [ |
316 '<!@(<(pkg-config) --cflags xext)', | 279 '<!@(<(pkg-config) --cflags xext)', |
317 ], | 280 ], |
318 }, | 281 }, |
319 'link_settings': { | 282 'link_settings': { |
320 'ldflags': [ | 283 'ldflags': [ |
321 '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)', | 284 '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)', |
322 ], | 285 ], |
323 'libraries': [ | 286 'libraries': [ |
324 '<!@(<(pkg-config) --libs-only-l xext)', | 287 '<!@(<(pkg-config) --libs-only-l xext)', |
325 ], | 288 ], |
326 }, | 289 }, |
327 }], | 290 }]] |
328 ], | |
329 }, | 291 }, |
330 { | 292 { |
331 'target_name': 'libgcrypt', | 293 'target_name': 'libgcrypt', |
332 'type': 'settings', | 294 'type': 'settings', |
333 'conditions': [ | 295 'conditions': [ |
334 ['_toolset=="target" and use_cups==1', { | 296 ['_toolset=="target" and use_cups==1', { |
335 'direct_dependent_settings': { | 297 'direct_dependent_settings': { |
336 'cflags': [ | 298 'cflags': [ |
337 '<!@(libgcrypt-config --cflags)', | 299 '<!@(libgcrypt-config --cflags)', |
338 ], | 300 ], |
339 }, | 301 }, |
340 'link_settings': { | 302 'link_settings': { |
341 'libraries': [ | 303 'libraries': [ |
342 '<!@(libgcrypt-config --libs)', | 304 '<!@(libgcrypt-config --libs)', |
343 ], | 305 ], |
344 }, | 306 }, |
345 }], | 307 }]] |
346 ], | |
347 }, | 308 }, |
348 { | 309 { |
349 'target_name': 'selinux', | 310 'target_name': 'selinux', |
350 'type': 'settings', | 311 'type': 'settings', |
351 'conditions': [ | 312 'conditions': [ |
352 ['_toolset=="target"', { | 313 ['_toolset=="target"', { |
353 'link_settings': { | 314 'link_settings': { |
354 'libraries': [ | 315 'libraries': [ |
355 '-lselinux', | 316 '-lselinux', |
356 ], | 317 ], |
357 }, | 318 }, |
358 }], | 319 }]] |
359 ], | |
360 }, | 320 }, |
361 { | 321 { |
362 'target_name': 'gnome_keyring', | 322 'target_name': 'gnome_keyring', |
363 'type': 'settings', | 323 'type': 'settings', |
364 'conditions': [ | 324 'conditions': [ |
365 ['use_gnome_keyring==1', { | 325 ['use_gnome_keyring==1', { |
366 'direct_dependent_settings': { | 326 'direct_dependent_settings': { |
367 'cflags': [ | 327 'cflags': [ |
368 '<!@(<(pkg-config) --cflags gnome-keyring-1)', | 328 '<!@(<(pkg-config) --cflags gnome-keyring-1)', |
369 ], | 329 ], |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 ], | 495 ], |
536 'libraries': [ | 496 'libraries': [ |
537 '<!@(<(pkg-config) --libs-only-l wayland-client wayland-egl xkbcom
mon)', | 497 '<!@(<(pkg-config) --libs-only-l wayland-client wayland-egl xkbcom
mon)', |
538 ], | 498 ], |
539 }, | 499 }, |
540 }], | 500 }], |
541 ], | 501 ], |
542 }, | 502 }, |
543 ], | 503 ], |
544 } | 504 } |
OLD | NEW |