1# Copyright (c) 2012 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. 4 5{ 6 'variables': { 7 'conditions': [ 8 ['sysroot!=""', { 9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', 10 }, { 11 'pkg-config': 'pkg-config' 12 }], 13 ], 14 15 'linux_link_libgps%': 0, 16 'linux_link_libpci%': 0, 17 'linux_link_libspeechd%': 0, 18 'linux_link_libbrlapi%': 0, 19 }, 20 'conditions': [ 21 [ 'os_posix==1 and OS!="mac"', { 22 'variables': { 23 # We use our own copy of libssl3, although we still need to link against 24 # the rest of NSS. 25 'use_system_ssl%': 0, 26 }, 27 }, { 28 'variables': { 29 'use_system_ssl%': 1, 30 }, 31 }], 32 [ 'chromeos==0', { 33 # Hide GTK and related dependencies for Chrome OS, so they won't get 34 # added back to Chrome OS. Don't try to use GTK on Chrome OS. 35 'targets': [ 36 { 37 'target_name': 'gdk', 38 'type': 'none', 39 'conditions': [ 40 ['_toolset=="target"', { 41 'direct_dependent_settings': { 42 'cflags': [ 43 '<!@(<(pkg-config) --cflags gdk-2.0)', 44 ], 45 }, 46 'link_settings': { 47 'ldflags': [ 48 '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)', 49 ], 50 'libraries': [ 51 '<!@(<(pkg-config) --libs-only-l gdk-2.0)', 52 ], 53 }, 54 }], 55 ], 56 }, 57 { 58 'target_name': 'gtk', 59 'type': 'none', 60 'toolsets': ['host', 'target'], 61 'variables': { 62 # gtk requires gmodule, but it does not list it as a dependency 63 # in some misconfigured systems. 64 'gtk_packages': 'gmodule-2.0 gtk+-2.0 gthread-2.0', 65 }, 66 'conditions': [ 67 ['_toolset=="target"', { 68 'all_dependent_settings': { 69 'cflags': [ 70 '<!@(<(pkg-config) --cflags <(gtk_packages))', 71 ], 72 }, 73 'link_settings': { 74 'ldflags': [ 75 '<!@(<(pkg-config) --libs-only-L --libs-only-other <(gtk_packages))', 76 ], 77 'libraries': [ 78 '<!@(<(pkg-config) --libs-only-l <(gtk_packages))', 79 ], 80 }, 81 }, { 82 'all_dependent_settings': { 83 'cflags': [ 84 '<!@(pkg-config --cflags <(gtk_packages))', 85 ], 86 }, 87 'link_settings': { 88 'ldflags': [ 89 '<!@(pkg-config --libs-only-L --libs-only-other <(gtk_packages))', 90 ], 91 'libraries': [ 92 '<!@(pkg-config --libs-only-l <(gtk_packages))', 93 ], 94 }, 95 }], 96 ], 97 }, 98 { 99 'target_name': 'gtkprint', 100 'type': 'none', 101 'conditions': [ 102 ['_toolset=="target"', { 103 'direct_dependent_settings': { 104 'cflags': [ 105 '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)', 106 ], 107 }, 108 'link_settings': { 109 'ldflags': [ 110 '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-print-2.0)', 111 ], 112 'libraries': [ 113 '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)', 114 ], 115 }, 116 }], 117 ], 118 }, 119 ], # targets 120 }], 121 ], # conditions 122 'targets': [ 123 { 124 'target_name': 'dbus', 125 'type': 'none', 126 'direct_dependent_settings': { 127 'cflags': [ 128 '<!@(<(pkg-config) --cflags dbus-1)', 129 ], 130 }, 131 'link_settings': { 132 'ldflags': [ 133 '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-1)', 134 ], 135 'libraries': [ 136 '<!@(<(pkg-config) --libs-only-l dbus-1)', 137 ], 138 }, 139 }, 140 { 141 'target_name': 'dridrm', 142 'type': 'none', 143 'direct_dependent_settings': { 144 'cflags': [ 145 '<!@(<(pkg-config) --cflags libdrm)', 146 ], 147 }, 148 'link_settings': { 149 'libraries': [ 150 '<!@(<(pkg-config) --libs-only-l libdrm)', 151 ], 152 }, 153 }, 154 { 155 'target_name': 'fontconfig', 156 'type': 'none', 157 'conditions': [ 158 ['_toolset=="target"', { 159 'direct_dependent_settings': { 160 'cflags': [ 161 '<!@(<(pkg-config) --cflags fontconfig)', 162 ], 163 }, 164 'link_settings': { 165 'ldflags': [ 166 '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)', 167 ], 168 'libraries': [ 169 '<!@(<(pkg-config) --libs-only-l fontconfig)', 170 ], 171 }, 172 }], 173 ], 174 }, 175 { 176 'target_name': 'freetype2', 177 'type': 'none', 178 'conditions': [ 179 ['_toolset=="target"', { 180 'direct_dependent_settings': { 181 'cflags': [ 182 '<!@(<(pkg-config) --cflags freetype2)', 183 ], 184 }, 185 'link_settings': { 186 'ldflags': [ 187 '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)', 188 ], 189 'libraries': [ 190 '<!@(<(pkg-config) --libs-only-l freetype2)', 191 ], 192 }, 193 }], 194 ], 195 }, 196 { 197 'target_name': 'gconf', 198 'type': 'none', 199 'conditions': [ 200 ['use_gconf==1 and _toolset=="target"', { 201 'direct_dependent_settings': { 202 'cflags': [ 203 '<!@(<(pkg-config) --cflags gconf-2.0)', 204 ], 205 'defines': [ 206 'USE_GCONF', 207 ], 208 }, 209 'link_settings': { 210 'ldflags': [ 211 '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)', 212 ], 213 'libraries': [ 214 '<!@(<(pkg-config) --libs-only-l gconf-2.0)', 215 ], 216 }, 217 }], 218 ], 219 }, 220 { 221 'target_name': 'gio', 222 'type': 'static_library', 223 'conditions': [ 224 ['use_gio==1 and _toolset=="target"', { 225 'cflags': [ 226 '<!@(<(pkg-config) --cflags gio-2.0)', 227 ], 228 'direct_dependent_settings': { 229 'cflags': [ 230 '<!@(<(pkg-config) --cflags gio-2.0)', 231 ], 232 'defines': [ 233 'USE_GIO', 234 ], 235 'include_dirs': [ 236 '<(SHARED_INTERMEDIATE_DIR)', 237 ], 238 }, 239 'include_dirs': [ 240 '../..', 241 ], 242 'link_settings': { 243 'ldflags': [ 244 '<!@(<(pkg-config) --libs-only-L --libs-only-other gio-2.0)', 245 ], 246 'libraries': [ 247 '<!@(<(pkg-config) --libs-only-l gio-2.0)', 248 ], 249 'conditions': [ 250 ['linux_link_gsettings==0 and OS=="linux"', { 251 'libraries': [ 252 '-ldl', 253 ], 254 }], 255 ], 256 }, 257 'hard_dependency': 1, 258 'actions': [ 259 { 260 'variables': { 261 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libgio.h', 262 'output_cc': '<(INTERMEDIATE_DIR)/libgio_loader.cc', 263 'generator': '../../tools/generate_library_loader/generate_library_loader.py', 264 }, 265 'action_name': 'generate_libgio_loader', 266 'inputs': [ 267 '<(generator)', 268 ], 269 'outputs': [ 270 '<(output_h)', 271 '<(output_cc)', 272 ], 273 'action': ['python', 274 '<(generator)', 275 '--name', 'LibGioLoader', 276 '--output-h', '<(output_h)', 277 '--output-cc', '<(output_cc)', 278 '--header', '<gio/gio.h>', 279 '--link-directly=<(linux_link_gsettings)', 280 'g_settings_new', 281 'g_settings_get_child', 282 'g_settings_get_string', 283 'g_settings_get_boolean', 284 'g_settings_get_int', 285 'g_settings_get_strv', 286 'g_settings_list_schemas', 287 ], 288 'message': 'Generating libgio library loader', 289 'process_outputs_as_sources': 1, 290 }, 291 ], 292 }], 293 ], 294 }, 295 { 296 'target_name': 'glib', 297 'type': 'none', 298 'toolsets': ['host', 'target'], 299 'variables': { 300 'glib_packages': 'glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0', 301 }, 302 'conditions': [ 303 ['_toolset=="target"', { 304 'direct_dependent_settings': { 305 'cflags': [ 306 '<!@(<(pkg-config) --cflags <(glib_packages))', 307 ], 308 }, 309 'link_settings': { 310 'ldflags': [ 311 '<!@(<(pkg-config) --libs-only-L --libs-only-other <(glib_packages))', 312 ], 313 'libraries': [ 314 '<!@(<(pkg-config) --libs-only-l <(glib_packages))', 315 ], 316 }, 317 }, { 318 'direct_dependent_settings': { 319 'cflags': [ 320 '<!@(pkg-config --cflags <(glib_packages))', 321 ], 322 }, 323 'link_settings': { 324 'ldflags': [ 325 '<!@(pkg-config --libs-only-L --libs-only-other <(glib_packages))', 326 ], 327 'libraries': [ 328 '<!@(pkg-config --libs-only-l <(glib_packages))', 329 ], 330 }, 331 }], 332 ['use_x11==1', { 333 'link_settings': { 334 'libraries': [ '-lXtst' ] 335 } 336 }], 337 ], 338 }, 339 { 340 'target_name': 'gnome_keyring', 341 'type': 'none', 342 'conditions': [ 343 ['use_gnome_keyring==1', { 344 'direct_dependent_settings': { 345 'cflags': [ 346 '<!@(<(pkg-config) --cflags gnome-keyring-1)', 347 ], 348 'defines': [ 349 'USE_GNOME_KEYRING', 350 ], 351 'conditions': [ 352 ['linux_link_gnome_keyring==0', { 353 'defines': ['DLOPEN_GNOME_KEYRING'], 354 }], 355 ], 356 }, 357 'conditions': [ 358 ['linux_link_gnome_keyring!=0', { 359 'link_settings': { 360 'ldflags': [ 361 '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)', 362 ], 363 'libraries': [ 364 '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)', 365 ], 366 }, 367 }, { 368 'conditions': [ 369 ['OS=="linux"', { 370 'link_settings': { 371 'libraries': [ 372 '-ldl', 373 ], 374 }, 375 }], 376 ], 377 }], 378 ], 379 }], 380 ], 381 }, 382 { 383 # The unit tests use a few convenience functions from the GNOME 384 # Keyring library directly. We ignore linux_link_gnome_keyring and 385 # link directly in this version of the target to allow this. 386 # *** Do not use this target in the main binary! *** 387 'target_name': 'gnome_keyring_direct', 388 'type': 'none', 389 'conditions': [ 390 ['use_gnome_keyring==1', { 391 'direct_dependent_settings': { 392 'cflags': [ 393 '<!@(<(pkg-config) --cflags gnome-keyring-1)', 394 ], 395 'defines': [ 396 'USE_GNOME_KEYRING', 397 ], 398 'conditions': [ 399 ['linux_link_gnome_keyring==0', { 400 'defines': ['DLOPEN_GNOME_KEYRING'], 401 }], 402 ], 403 }, 404 'link_settings': { 405 'ldflags': [ 406 '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)', 407 ], 408 'libraries': [ 409 '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)', 410 ], 411 }, 412 }], 413 ], 414 }, 415 { 416 'target_name': 'libbrlapi', 417 'type': 'static_library', 418 'dependencies': [ 419 '../../base/base.gyp:base', 420 ], 421 'all_dependent_settings': { 422 'include_dirs': [ 423 '<(SHARED_INTERMEDIATE_DIR)', 424 ], 425 'defines': [ 426 'USE_BRLAPI', 427 ], 428 'conditions': [ 429 ['linux_link_libbrlapi==1', { 430 'link_settings': { 431 'libraries': [ 432 '-lbrlapi', 433 ], 434 } 435 }], 436 ], 437 }, 438 'hard_dependency': 1, 439 'actions': [ 440 { 441 'variables': { 442 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libbrlapi.h', 443 'output_cc': '<(INTERMEDIATE_DIR)/libbrlapi_loader.cc', 444 'generator': '../../tools/generate_library_loader/generate_library_loader.py', 445 }, 446 'action_name': 'generate_brlapi_loader', 447 'inputs': [ 448 '<(generator)', 449 ], 450 'outputs': [ 451 '<(output_h)', 452 '<(output_cc)', 453 ], 454 'action': ['python', 455 '<(generator)', 456 '--name', 'LibBrlapiLoader', 457 '--output-h', '<(output_h)', 458 '--output-cc', '<(output_cc)', 459 '--header', '<brlapi.h>', 460 '--link-directly=<(linux_link_libbrlapi)', 461 'brlapi_getHandleSize', 462 'brlapi_error_location', 463 'brlapi_expandKeyCode', 464 'brlapi_strerror', 465 'brlapi__acceptKeys', 466 'brlapi__openConnection', 467 'brlapi__closeConnection', 468 'brlapi__getDisplaySize', 469 'brlapi__enterTtyModeWithPath', 470 'brlapi__leaveTtyMode', 471 'brlapi__writeDots', 472 'brlapi__readKey', 473 ], 474 'message': 'Generating libbrlapi library loader', 475 'process_outputs_as_sources': 1, 476 }, 477 ], 478 }, 479 { 480 'target_name': 'libcap', 481 'type': 'none', 482 'link_settings': { 483 'libraries': [ 484 '-lcap', 485 ], 486 }, 487 }, 488 { 489 'target_name': 'libgcrypt', 490 'type': 'none', 491 'conditions': [ 492 ['_toolset=="target" and use_cups==1', { 493 'direct_dependent_settings': { 494 'cflags': [ 495 '<!@(libgcrypt-config --cflags)', 496 ], 497 }, 498 'link_settings': { 499 'libraries': [ 500 '<!@(libgcrypt-config --libs)', 501 ], 502 }, 503 }], 504 ], 505 }, 506 { 507 'target_name': 'libpci', 508 'type': 'static_library', 509 'cflags': [ 510 '<!@(<(pkg-config) --cflags libpci)', 511 ], 512 'direct_dependent_settings': { 513 'include_dirs': [ 514 '<(SHARED_INTERMEDIATE_DIR)', 515 ], 516 'conditions': [ 517 ['linux_link_libpci==1', { 518 'link_settings': { 519 'ldflags': [ 520 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpci)', 521 ], 522 'libraries': [ 523 '<!@(<(pkg-config) --libs-only-l libpci)', 524 ], 525 } 526 }], 527 ], 528 }, 529 'include_dirs': [ 530 '../..', 531 ], 532 'hard_dependency': 1, 533 'actions': [ 534 { 535 'variables': { 536 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libpci.h', 537 'output_cc': '<(INTERMEDIATE_DIR)/libpci_loader.cc', 538 'generator': '../../tools/generate_library_loader/generate_library_loader.py', 539 }, 540 'action_name': 'generate_libpci_loader', 541 'inputs': [ 542 '<(generator)', 543 ], 544 'outputs': [ 545 '<(output_h)', 546 '<(output_cc)', 547 ], 548 'action': ['python', 549 '<(generator)', 550 '--name', 'LibPciLoader', 551 '--output-h', '<(output_h)', 552 '--output-cc', '<(output_cc)', 553 '--header', '<pci/pci.h>', 554 # TODO(phajdan.jr): Report problem to pciutils project 555 # and get it fixed so that we don't need --use-extern-c. 556 '--use-extern-c', 557 '--link-directly=<(linux_link_libpci)', 558 'pci_alloc', 559 'pci_init', 560 'pci_cleanup', 561 'pci_scan_bus', 562 'pci_fill_info', 563 'pci_lookup_name', 564 ], 565 'message': 'Generating libpci library loader', 566 'process_outputs_as_sources': 1, 567 }, 568 ], 569 }, 570 { 571 'target_name': 'libresolv', 572 'type': 'none', 573 'link_settings': { 574 'libraries': [ 575 '-lresolv', 576 ], 577 }, 578 }, 579 { 580 'target_name': 'libspeechd', 581 'type': 'static_library', 582 'direct_dependent_settings': { 583 'include_dirs': [ 584 '<(SHARED_INTERMEDIATE_DIR)', 585 ], 586 'conditions': [ 587 ['linux_link_libspeechd==1', { 588 'link_settings': { 589 'libraries': [ 590 '-lspeechd', 591 ], 592 } 593 }], 594 ], 595 }, 596 'include_dirs': [ 597 '../..', 598 ], 599 'hard_dependency': 1, 600 'actions': [ 601 { 602 'variables': { 603 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libspeechd.h', 604 'output_cc': '<(INTERMEDIATE_DIR)/libspeechd_loader.cc', 605 'generator': '../../tools/generate_library_loader/generate_library_loader.py', 606 607 # speech-dispatcher >= 0.8 installs libspeechd.h into 608 # speech-dispatcher/libspeechd.h, whereas speech-dispatcher < 0.8 609 # puts libspeechd.h in the top-level include directory. 610 # Since we need to support both cases for now, we ship a copy of 611 # libspeechd.h in third_party/speech-dispatcher. If the user 612 # prefers to link against the speech-dispatcher directly, the 613 # `libspeechd_h_prefix' variable can be passed to gyp with a value 614 # such as "speech-dispatcher/" that will be prepended to 615 # "libspeechd.h" in the #include directive. 616 # TODO(phaldan.jr): Once we do not need to support 617 # speech-dispatcher < 0.8 we can get rid of all this (including 618 # third_party/speech-dispatcher) and just include 619 # speech-dispatcher/libspeechd.h unconditionally. 620 'libspeechd_h_prefix%': '', 621 }, 622 'action_name': 'generate_libspeechd_loader', 623 'inputs': [ 624 '<(generator)', 625 ], 626 'outputs': [ 627 '<(output_h)', 628 '<(output_cc)', 629 ], 630 'action': ['python', 631 '<(generator)', 632 '--name', 'LibSpeechdLoader', 633 '--output-h', '<(output_h)', 634 '--output-cc', '<(output_cc)', 635 '--header', '<<(libspeechd_h_prefix)libspeechd.h>', 636 '--bundled-header', 637 '"third_party/speech-dispatcher/libspeechd.h"', 638 '--link-directly=<(linux_link_libspeechd)', 639 'spd_open', 640 'spd_say', 641 'spd_stop', 642 'spd_close', 643 'spd_pause', 644 'spd_resume', 645 'spd_set_notification_on', 646 'spd_set_voice_rate', 647 'spd_set_voice_pitch', 648 'spd_list_synthesis_voices', 649 'spd_set_synthesis_voice', 650 'spd_list_modules', 651 'spd_set_output_module', 652 ], 653 'message': 'Generating libspeechd library loader', 654 'process_outputs_as_sources': 1, 655 }, 656 ], 657 }, 658 { 659 'target_name': 'pangocairo', 660 'type': 'none', 661 'toolsets': ['host', 'target'], 662 'conditions': [ 663 ['_toolset=="target"', { 664 'direct_dependent_settings': { 665 'cflags': [ 666 '<!@(<(pkg-config) --cflags pangocairo pangoft2)', 667 ], 668 }, 669 'link_settings': { 670 'ldflags': [ 671 '<!@(<(pkg-config) --libs-only-L --libs-only-other pangocairo pangoft2)', 672 ], 673 'libraries': [ 674 '<!@(<(pkg-config) --libs-only-l pangocairo pangoft2)', 675 ], 676 }, 677 }, { 678 'direct_dependent_settings': { 679 'cflags': [ 680 '<!@(pkg-config --cflags pangocairo pangoft2)', 681 ], 682 }, 683 'link_settings': { 684 'ldflags': [ 685 '<!@(pkg-config --libs-only-L --libs-only-other pangocairo pangoft2)', 686 ], 687 'libraries': [ 688 '<!@(pkg-config --libs-only-l pangocairo pangoft2)', 689 ], 690 }, 691 }], 692 ], 693 }, 694 { 695 'target_name': 'ssl', 696 'type': 'none', 697 'conditions': [ 698 ['_toolset=="target"', { 699 'conditions': [ 700 ['use_openssl==1', { 701 'dependencies': [ 702 '../../third_party/openssl/openssl.gyp:openssl', 703 ], 704 }], 705 ['use_openssl==0 and use_system_ssl==0', { 706 'dependencies': [ 707 '../../net/third_party/nss/ssl.gyp:libssl', 708 ], 709 'direct_dependent_settings': { 710 'include_dirs+': [ 711 # We need for our local copies of the libssl3 headers to come 712 # before other includes, as we are shadowing system headers. 713 '<(DEPTH)/net/third_party/nss/ssl', 714 ], 715 'cflags': [ 716 '<!@(<(pkg-config) --cflags nss)', 717 ], 718 }, 719 'link_settings': { 720 'ldflags': [ 721 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', 722 ], 723 'libraries': [ 724 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', 725 ], 726 }, 727 }], 728 ['use_openssl==0 and use_system_ssl==1', { 729 'direct_dependent_settings': { 730 'cflags': [ 731 '<!@(<(pkg-config) --cflags nss)', 732 ], 733 'defines': [ 734 'USE_SYSTEM_SSL', 735 ], 736 }, 737 'link_settings': { 738 'ldflags': [ 739 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', 740 ], 741 'libraries': [ 742 '<!@(<(pkg-config) --libs-only-l nss)', 743 ], 744 }, 745 }], 746 ['use_openssl==0 and clang==1', { 747 'direct_dependent_settings': { 748 'cflags': [ 749 # There is a broken header guard in /usr/include/nss/secmod.h: 750 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 751 '-Wno-header-guard', 752 ], 753 }, 754 }], 755 ] 756 }], 757 ], 758 }, 759 { 760 'target_name': 'udev', 761 'type': 'none', 762 'conditions': [ 763 # libudev is not available on *BSD 764 ['_toolset=="target" and os_bsd!=1', { 765 'direct_dependent_settings': { 766 'cflags': [ 767 '<!@(<(pkg-config) --cflags libudev)' 768 ], 769 }, 770 'link_settings': { 771 'ldflags': [ 772 '<!@(<(pkg-config) --libs-only-L --libs-only-other libudev)', 773 ], 774 'libraries': [ 775 '<!@(<(pkg-config) --libs-only-l libudev)', 776 ], 777 }, 778 }], 779 ], 780 }, 781 { 782 'target_name': 'x11', 783 'type': 'none', 784 'toolsets': ['host', 'target'], 785 'conditions': [ 786 ['_toolset=="target"', { 787 'direct_dependent_settings': { 788 'cflags': [ 789 '<!@(<(pkg-config) --cflags x11)', 790 ], 791 }, 792 'link_settings': { 793 'ldflags': [ 794 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', 795 ], 796 'libraries': [ 797 '<!@(<(pkg-config) --libs-only-l x11 xi)', 798 ], 799 }, 800 }, { 801 'direct_dependent_settings': { 802 'cflags': [ 803 '<!@(pkg-config --cflags x11)', 804 ], 805 }, 806 'link_settings': { 807 'ldflags': [ 808 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)', 809 ], 810 'libraries': [ 811 '<!@(pkg-config --libs-only-l x11 xi)', 812 ], 813 }, 814 }], 815 ], 816 }, 817 { 818 'target_name': 'xext', 819 'type': 'none', 820 'conditions': [ 821 ['_toolset=="target"', { 822 'direct_dependent_settings': { 823 'cflags': [ 824 '<!@(<(pkg-config) --cflags xext)', 825 ], 826 }, 827 'link_settings': { 828 'ldflags': [ 829 '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)', 830 ], 831 'libraries': [ 832 '<!@(<(pkg-config) --libs-only-l xext)', 833 ], 834 }, 835 }], 836 ], 837 }, 838 { 839 'target_name': 'xfixes', 840 'type': 'none', 841 'conditions': [ 842 ['_toolset=="target"', { 843 'direct_dependent_settings': { 844 'cflags': [ 845 '<!@(<(pkg-config) --cflags xfixes)', 846 ], 847 }, 848 'link_settings': { 849 'ldflags': [ 850 '<!@(<(pkg-config) --libs-only-L --libs-only-other xfixes)', 851 ], 852 'libraries': [ 853 '<!@(<(pkg-config) --libs-only-l xfixes)', 854 ], 855 }, 856 }], 857 ], 858 }, 859 { 860 'target_name': 'xrandr', 861 'type': 'none', 862 'toolsets': ['host', 'target'], 863 'conditions': [ 864 ['_toolset=="target"', { 865 'direct_dependent_settings': { 866 'cflags': [ 867 '<!@(<(pkg-config) --cflags xrandr)', 868 ], 869 }, 870 'link_settings': { 871 'ldflags': [ 872 '<!@(<(pkg-config) --libs-only-L --libs-only-other xrandr)', 873 ], 874 'libraries': [ 875 '<!@(<(pkg-config) --libs-only-l xrandr)', 876 ], 877 }, 878 }, { 879 'direct_dependent_settings': { 880 'cflags': [ 881 '<!@(pkg-config --cflags xrandr)', 882 ], 883 }, 884 'link_settings': { 885 'ldflags': [ 886 '<!@(pkg-config --libs-only-L --libs-only-other xrandr)', 887 ], 888 'libraries': [ 889 '<!@(pkg-config --libs-only-l xrandr)', 890 ], 891 }, 892 }], 893 ], 894 }, 895 ], 896} 897