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
3 # found in the LICENSE file.
9 'pkg-config': './pkg-config-wrapper "<(sysroot)"',
13 'pkg-config': 'pkg-config'
16 [ 'os_posix==1 and OS!="mac"', {
18 # We use our own copy of libssl3, although we still need to link against
34 'toolsets': ['host', 'target'],
36 ['_toolset=="target"', {
37 'direct_dependent_settings': {
39 '<!@(<(pkg-config) --cflags gtk+-2.0 gthread-2.0)',
44 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-2.0 gthread-2.0)',
47 '<!@(<(pkg-config) --libs-only-l gtk+-2.0 gthread-2.0)',
51 'direct_dependent_settings': {
53 '<!@(pkg-config --cflags gtk+-2.0 gthread-2.0)',
58 '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0 gthread-2.0)',
61 '<!@(pkg-config --libs-only-l gtk+-2.0 gthread-2.0)',
67 'libraries': [ '-lXtst' ]
73 'target_name': 'gtkprint',
76 ['_toolset=="target"', {
77 'direct_dependent_settings': {
79 '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)',
84 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-print-2.0)',
87 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)',
97 ['_toolset=="target"', {
101 '../../third_party/openssl/openssl.gyp:openssl',
104 ['use_openssl==0 and use_system_ssl==0', {
106 '../../net/third_party/nss/ssl.gyp:ssl',
107 '../../third_party/zlib/zlib.gyp:zlib',
109 'direct_dependent_settings': {
111 # We need for our local copies of the libssl3 headers to come
112 # before other includes, as we are shadowing system headers.
113 '<(DEPTH)/net/third_party/nss/ssl',
116 '<!@(<(pkg-config) --cflags nss)',
121 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
124 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
128 ['use_openssl==0 and use_system_ssl==1', {
129 'direct_dependent_settings': {
131 '<!@(<(pkg-config) --cflags nss)',
139 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
142 '<!@(<(pkg-config) --libs-only-l nss)',
151 'target_name': 'freetype2',
154 ['_toolset=="target"', {
155 'direct_dependent_settings': {
157 '<!@(<(pkg-config) --cflags freetype2)',
162 '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)',
165 '<!@(<(pkg-config) --libs-only-l freetype2)',
172 'target_name': 'fontconfig',
175 ['_toolset=="target"', {
176 'direct_dependent_settings': {
178 '<!@(<(pkg-config) --cflags fontconfig)',
183 '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)',
186 '<!@(<(pkg-config) --libs-only-l fontconfig)',
193 'target_name': 'gdk',
196 ['_toolset=="target"', {
197 'direct_dependent_settings': {
199 '<!@(<(pkg-config) --cflags gdk-2.0)',
204 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)',
207 '<!@(<(pkg-config) --libs-only-l gdk-2.0)',
214 'target_name': 'gconf',
217 ['use_gconf==1 and _toolset=="target"', {
218 'direct_dependent_settings': {
220 '<!@(<(pkg-config) --cflags gconf-2.0)',
228 '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)',
231 '<!@(<(pkg-config) --libs-only-l gconf-2.0)',
238 'target_name': 'gio',
241 ['use_gio==1 and _toolset=="target"', {
242 'direct_dependent_settings': {
244 '<!@(<(pkg-config) --cflags gio-2.0)',
250 ['linux_link_gsettings==0', {
251 'defines': ['DLOPEN_GSETTINGS'],
257 '<!@(<(pkg-config) --libs-only-L --libs-only-other gio-2.0)',
260 '<!@(<(pkg-config) --libs-only-l gio-2.0)',
263 ['linux_link_gsettings==0 and OS=="linux"', {
274 'target_name': 'x11',
276 'toolsets': ['host', 'target'],
278 ['_toolset=="target"', {
279 'direct_dependent_settings': {
281 '<!@(<(pkg-config) --cflags x11)',
286 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)',
289 '<!@(<(pkg-config) --libs-only-l x11 xi)',
293 'direct_dependent_settings': {
295 '<!@(pkg-config --cflags x11)',
300 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
303 '<!@(pkg-config --libs-only-l x11 xi)',
310 'target_name': 'xext',
313 ['_toolset=="target"', {
314 'direct_dependent_settings': {
316 '<!@(<(pkg-config) --cflags xext)',
321 '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)',
324 '<!@(<(pkg-config) --libs-only-l xext)',
331 'target_name': 'xfixes',
334 ['_toolset=="target"', {
335 'direct_dependent_settings': {
337 '<!@(<(pkg-config) --cflags xfixes)',
342 '<!@(<(pkg-config) --libs-only-L --libs-only-other xfixes)',
345 '<!@(<(pkg-config) --libs-only-l xfixes)',
352 'target_name': 'libgcrypt',
355 ['_toolset=="target" and use_cups==1', {
356 'direct_dependent_settings': {
358 '<!@(libgcrypt-config --cflags)',
363 '<!@(libgcrypt-config --libs)',
370 'target_name': 'selinux',
373 ['_toolset=="target"', {
383 'target_name': 'gnome_keyring',
386 ['use_gnome_keyring==1', {
387 'direct_dependent_settings': {
389 '<!@(<(pkg-config) --cflags gnome-keyring-1)',
395 ['linux_link_gnome_keyring==0', {
396 'defines': ['DLOPEN_GNOME_KEYRING'],
401 ['linux_link_gnome_keyring!=0', {
404 '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)',
407 '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)',
426 # The unit tests use a few convenience functions from the GNOME
427 # Keyring library directly. We ignore linux_link_gnome_keyring and
428 # link directly in this version of the target to allow this.
429 # *** Do not use this target in the main binary! ***
430 'target_name': 'gnome_keyring_direct',
433 ['use_gnome_keyring==1', {
434 'direct_dependent_settings': {
436 '<!@(<(pkg-config) --cflags gnome-keyring-1)',
442 ['linux_link_gnome_keyring==0', {
443 'defines': ['DLOPEN_GNOME_KEYRING'],
449 '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)',
452 '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)',
459 'target_name': 'dbus',
461 'direct_dependent_settings': {
463 '<!@(<(pkg-config) --cflags dbus-1)',
468 '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-1)',
471 '<!@(<(pkg-config) --libs-only-l dbus-1)',
476 # TODO(satorux): Remove this once dbus-glib clients are gone.
477 'target_name': 'dbus-glib',
479 'direct_dependent_settings': {
481 '<!@(<(pkg-config) --cflags dbus-glib-1)',
486 '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-glib-1)',
489 '<!@(<(pkg-config) --libs-only-l dbus-glib-1)',
494 'target_name': 'glib',
496 'toolsets': ['host', 'target'],
498 ['_toolset=="target"', {
499 'direct_dependent_settings': {
501 '<!@(<(pkg-config) --cflags glib-2.0 gobject-2.0 gthread-2.0)',
506 '<!@(<(pkg-config) --libs-only-L --libs-only-other glib-2.0 gobject-2.0 gthread-2.0)',
509 '<!@(<(pkg-config) --libs-only-l glib-2.0 gobject-2.0 gthread-2.0)',
513 'direct_dependent_settings': {
515 '<!@(pkg-config --cflags glib-2.0 gobject-2.0 gthread-2.0)',
520 '<!@(pkg-config --libs-only-L --libs-only-other glib-2.0 gobject-2.0 gthread-2.0)',
523 '<!@(pkg-config --libs-only-l glib-2.0 gobject-2.0 gthread-2.0)',
529 'libraries': [ '-lXtst' ]
535 'target_name': 'pangocairo',
537 'toolsets': ['host', 'target'],
539 ['_toolset=="target"', {
540 'direct_dependent_settings': {
542 '<!@(<(pkg-config) --cflags pangocairo)',
547 '<!@(<(pkg-config) --libs-only-L --libs-only-other pangocairo)',
550 '<!@(<(pkg-config) --libs-only-l pangocairo)',
554 'direct_dependent_settings': {
556 '<!@(pkg-config --cflags pangocairo)',
561 '<!@(pkg-config --libs-only-L --libs-only-other pangocairo)',
564 '<!@(pkg-config --libs-only-l pangocairo)',
571 'target_name': 'libresolv',
580 'target_name': 'ibus',
585 'ibus_min_version': '1.3.99.20110425',
587 'direct_dependent_settings': {
588 'defines': ['HAVE_IBUS=1'],
590 '<!@(<(pkg-config) --cflags "ibus-1.0 >= <(ibus_min_version)")',
595 '<!@(<(pkg-config) --libs-only-L --libs-only-other "ibus-1.0 >= <(ibus_min_version)")',
598 '<!@(<(pkg-config) --libs-only-l "ibus-1.0 >= <(ibus_min_version)")',
605 'target_name': 'wayland',
608 ['use_wayland == 1', {
610 '<!@(<(pkg-config) --cflags cairo wayland-client wayland-egl xkbcommon)',
612 'direct_dependent_settings': {
614 '<!@(<(pkg-config) --cflags cairo wayland-client wayland-egl xkbcommon)',
619 '<!@(<(pkg-config) --libs-only-L --libs-only-other wayland-client wayland-egl xkbcommon)',
622 '<!@(<(pkg-config) --libs-only-l wayland-client wayland-egl xkbcommon)',