| OLD | NEW |
| (Empty) |
| 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 # If any of the linux_link_FOO below are set to 1, then the corresponding | |
| 8 # target will be linked against the FOO library (either dynamically or | |
| 9 # statically, depending on the pkg-config files), as opposed to loading the | |
| 10 # FOO library dynamically with dlopen. | |
| 11 'linux_link_libgps%': 0, | |
| 12 'linux_link_libpci%': 0, | |
| 13 'linux_link_libspeechd%': 0, | |
| 14 'linux_link_libbrlapi%': 0, | |
| 15 | |
| 16 # Used below for the various libraries. In this scope for sharing with GN. | |
| 17 'libbrlapi_functions': [ | |
| 18 'brlapi_getHandleSize', | |
| 19 'brlapi_error_location', | |
| 20 'brlapi_strerror', | |
| 21 'brlapi__acceptKeys', | |
| 22 'brlapi__openConnection', | |
| 23 'brlapi__closeConnection', | |
| 24 'brlapi__getDisplaySize', | |
| 25 'brlapi__enterTtyModeWithPath', | |
| 26 'brlapi__leaveTtyMode', | |
| 27 'brlapi__writeDots', | |
| 28 'brlapi__readKey', | |
| 29 ], | |
| 30 'libgio_functions': [ | |
| 31 'g_settings_new', | |
| 32 'g_settings_get_child', | |
| 33 'g_settings_get_string', | |
| 34 'g_settings_get_boolean', | |
| 35 'g_settings_get_int', | |
| 36 'g_settings_get_strv', | |
| 37 'g_settings_list_schemas', | |
| 38 ], | |
| 39 'libpci_functions': [ | |
| 40 'pci_alloc', | |
| 41 'pci_init', | |
| 42 'pci_cleanup', | |
| 43 'pci_scan_bus', | |
| 44 'pci_fill_info', | |
| 45 'pci_lookup_name', | |
| 46 ], | |
| 47 'libudev_functions': [ | |
| 48 'udev_device_get_action', | |
| 49 'udev_device_get_devnode', | |
| 50 'udev_device_get_parent', | |
| 51 'udev_device_get_parent_with_subsystem_devtype', | |
| 52 'udev_device_get_property_value', | |
| 53 'udev_device_get_subsystem', | |
| 54 'udev_device_get_sysattr_value', | |
| 55 'udev_device_get_sysname', | |
| 56 'udev_device_get_syspath', | |
| 57 'udev_device_new_from_devnum', | |
| 58 'udev_device_new_from_subsystem_sysname', | |
| 59 'udev_device_new_from_syspath', | |
| 60 'udev_device_unref', | |
| 61 'udev_enumerate_add_match_subsystem', | |
| 62 'udev_enumerate_get_list_entry', | |
| 63 'udev_enumerate_new', | |
| 64 'udev_enumerate_scan_devices', | |
| 65 'udev_enumerate_unref', | |
| 66 'udev_list_entry_get_next', | |
| 67 'udev_list_entry_get_name', | |
| 68 'udev_monitor_enable_receiving', | |
| 69 'udev_monitor_filter_add_match_subsystem_devtype', | |
| 70 'udev_monitor_get_fd', | |
| 71 'udev_monitor_new_from_netlink', | |
| 72 'udev_monitor_receive_device', | |
| 73 'udev_monitor_unref', | |
| 74 'udev_new', | |
| 75 'udev_set_log_fn', | |
| 76 'udev_set_log_priority', | |
| 77 'udev_unref', | |
| 78 ], | |
| 79 }, | |
| 80 'conditions': [ | |
| 81 [ 'use_x11==1 or ozone_platform_ozonex==1', { | |
| 82 # Hide X11 and related dependencies when use_x11=0 | |
| 83 'targets': [ | |
| 84 { | |
| 85 'target_name': 'x11', | |
| 86 'type': 'none', | |
| 87 'toolsets': ['host', 'target'], | |
| 88 'conditions': [ | |
| 89 ['_toolset=="target"', { | |
| 90 'direct_dependent_settings': { | |
| 91 'cflags': [ | |
| 92 '<!@(<(pkg-config) --cflags x11)', | |
| 93 ], | |
| 94 }, | |
| 95 'link_settings': { | |
| 96 'ldflags': [ | |
| 97 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', | |
| 98 ], | |
| 99 'libraries': [ | |
| 100 '<!@(<(pkg-config) --libs-only-l x11 xi)', | |
| 101 ], | |
| 102 }, | |
| 103 }, { | |
| 104 'direct_dependent_settings': { | |
| 105 'cflags': [ | |
| 106 '<!@(pkg-config --cflags x11)', | |
| 107 ], | |
| 108 }, | |
| 109 'link_settings': { | |
| 110 'ldflags': [ | |
| 111 '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)', | |
| 112 ], | |
| 113 'libraries': [ | |
| 114 '<!@(pkg-config --libs-only-l x11 xi)', | |
| 115 ], | |
| 116 }, | |
| 117 }], | |
| 118 ], | |
| 119 }, | |
| 120 { | |
| 121 'target_name': 'xcomposite', | |
| 122 'type': 'none', | |
| 123 'direct_dependent_settings': { | |
| 124 'cflags': [ | |
| 125 '<!@(<(pkg-config) --cflags xcomposite)', | |
| 126 ], | |
| 127 }, | |
| 128 'link_settings': { | |
| 129 'ldflags': [ | |
| 130 '<!@(<(pkg-config) --libs-only-L --libs-only-other xcomposite)', | |
| 131 ], | |
| 132 'libraries': [ | |
| 133 '<!@(<(pkg-config) --libs-only-l xcomposite)', | |
| 134 ], | |
| 135 }, | |
| 136 }, | |
| 137 { | |
| 138 'target_name': 'xdamage', | |
| 139 'type': 'none', | |
| 140 'direct_dependent_settings': { | |
| 141 'cflags': [ | |
| 142 '<!@(<(pkg-config) --cflags xdamage)', | |
| 143 ], | |
| 144 }, | |
| 145 'link_settings': { | |
| 146 'ldflags': [ | |
| 147 '<!@(<(pkg-config) --libs-only-L --libs-only-other xdamage)', | |
| 148 ], | |
| 149 'libraries': [ | |
| 150 '<!@(<(pkg-config) --libs-only-l xdamage)', | |
| 151 ], | |
| 152 }, | |
| 153 }, | |
| 154 { | |
| 155 'target_name': 'xext', | |
| 156 'type': 'none', | |
| 157 'direct_dependent_settings': { | |
| 158 'cflags': [ | |
| 159 '<!@(<(pkg-config) --cflags xext)', | |
| 160 ], | |
| 161 }, | |
| 162 'link_settings': { | |
| 163 'ldflags': [ | |
| 164 '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)', | |
| 165 ], | |
| 166 'libraries': [ | |
| 167 '<!@(<(pkg-config) --libs-only-l xext)', | |
| 168 ], | |
| 169 }, | |
| 170 }, | |
| 171 ], # targets | |
| 172 }], | |
| 173 ['use_evdev_gestures==1', { | |
| 174 'targets': [ | |
| 175 { | |
| 176 'target_name': 'libevdev-cros', | |
| 177 'type': 'none', | |
| 178 'direct_dependent_settings': { | |
| 179 'cflags': [ | |
| 180 '<!@(<(pkg-config) --cflags libevdev-cros)' | |
| 181 ], | |
| 182 }, | |
| 183 'link_settings': { | |
| 184 'ldflags': [ | |
| 185 '<!@(<(pkg-config) --libs-only-L --libs-only-other libevdev-cros)'
, | |
| 186 ], | |
| 187 'libraries': [ | |
| 188 '<!@(<(pkg-config) --libs-only-l libevdev-cros)', | |
| 189 ], | |
| 190 }, | |
| 191 }, | |
| 192 { | |
| 193 'target_name': 'libgestures', | |
| 194 'type': 'none', | |
| 195 'direct_dependent_settings': { | |
| 196 'cflags': [ | |
| 197 '<!@(<(pkg-config) --cflags libgestures)' | |
| 198 ], | |
| 199 }, | |
| 200 'link_settings': { | |
| 201 'ldflags': [ | |
| 202 '<!@(<(pkg-config) --libs-only-L --libs-only-other libgestures)', | |
| 203 ], | |
| 204 'libraries': [ | |
| 205 '<!@(<(pkg-config) --libs-only-l libgestures)', | |
| 206 ], | |
| 207 }, | |
| 208 }, | |
| 209 ], | |
| 210 }], | |
| 211 ['use_xkbcommon==1', { | |
| 212 'targets': [ | |
| 213 { | |
| 214 'target_name': 'xkbcommon', | |
| 215 'type': 'none', | |
| 216 'direct_dependent_settings': { | |
| 217 'cflags': [ | |
| 218 '<!@(<(pkg-config) --cflags xkbcommon)' | |
| 219 ], | |
| 220 }, | |
| 221 'link_settings': { | |
| 222 'ldflags': [ | |
| 223 '<!@(<(pkg-config) --libs-only-L --libs-only-other xkbcommon)', | |
| 224 ], | |
| 225 'libraries': [ | |
| 226 '<!@(<(pkg-config) --libs-only-l xkbcommon)', | |
| 227 ], | |
| 228 }, | |
| 229 }, | |
| 230 ], | |
| 231 }], | |
| 232 ['ozone_platform_gbm==1', { | |
| 233 'targets': [ | |
| 234 { | |
| 235 'target_name': 'gbm', | |
| 236 'type': 'none', | |
| 237 'direct_dependent_settings': { | |
| 238 'cflags': [ | |
| 239 '<!@(<(pkg-config) --cflags gbm)', | |
| 240 ], | |
| 241 }, | |
| 242 'link_settings': { | |
| 243 'ldflags': [ | |
| 244 '<!@(<(pkg-config) --libs-only-L --libs-only-other gbm)', | |
| 245 ], | |
| 246 'libraries': [ | |
| 247 '<!@(<(pkg-config) --libs-only-l gbm)', | |
| 248 ], | |
| 249 }, | |
| 250 }, | |
| 251 ], | |
| 252 }], | |
| 253 ['ozone_platform_dri==1 or ozone_platform_drm==1 or ozone_platform_gbm==1',
{ | |
| 254 'targets': [ | |
| 255 { | |
| 256 'target_name': 'libdrm', | |
| 257 'type': 'none', | |
| 258 'direct_dependent_settings': { | |
| 259 'cflags': [ | |
| 260 '<!@(<(pkg-config) --cflags libdrm)', | |
| 261 ], | |
| 262 }, | |
| 263 'link_settings': { | |
| 264 'libraries': [ | |
| 265 '<!@(<(pkg-config) --libs-only-l libdrm)', | |
| 266 ], | |
| 267 }, | |
| 268 }, | |
| 269 ], | |
| 270 }], | |
| 271 ['use_udev==1', { | |
| 272 'targets': [ | |
| 273 { | |
| 274 'target_name': 'udev', | |
| 275 'type': 'static_library', | |
| 276 'conditions': [ | |
| 277 ['_toolset=="target"', { | |
| 278 'include_dirs': [ | |
| 279 '../..', | |
| 280 ], | |
| 281 'hard_dependency': 1, | |
| 282 'actions': [ | |
| 283 { | |
| 284 'variables': { | |
| 285 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libu
dev0.h', | |
| 286 'output_cc': '<(INTERMEDIATE_DIR)/libudev0_loader.cc', | |
| 287 'generator': '../../tools/generate_library_loader/generate_l
ibrary_loader.py', | |
| 288 }, | |
| 289 'action_name': 'generate_libudev0_loader', | |
| 290 'inputs': [ | |
| 291 '<(generator)', | |
| 292 ], | |
| 293 'outputs': [ | |
| 294 '<(output_h)', | |
| 295 '<(output_cc)', | |
| 296 ], | |
| 297 'action': ['python', | |
| 298 '<(generator)', | |
| 299 '--name', 'LibUdev0Loader', | |
| 300 '--output-h', '<(output_h)', | |
| 301 '--output-cc', '<(output_cc)', | |
| 302 '--header', '"third_party/libudev/libudev0.h"', | |
| 303 '--link-directly=0', | |
| 304 '<@(libudev_functions)', | |
| 305 ], | |
| 306 'message': 'Generating libudev0 library loader', | |
| 307 'process_outputs_as_sources': 1, | |
| 308 }, | |
| 309 { | |
| 310 'variables': { | |
| 311 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libu
dev1.h', | |
| 312 'output_cc': '<(INTERMEDIATE_DIR)/libudev1_loader.cc', | |
| 313 'generator': '../../tools/generate_library_loader/generate_l
ibrary_loader.py', | |
| 314 }, | |
| 315 'action_name': 'generate_libudev1_loader', | |
| 316 'inputs': [ | |
| 317 '<(generator)', | |
| 318 ], | |
| 319 'outputs': [ | |
| 320 '<(output_h)', | |
| 321 '<(output_cc)', | |
| 322 ], | |
| 323 'action': ['python', | |
| 324 '<(generator)', | |
| 325 '--name', 'LibUdev1Loader', | |
| 326 '--output-h', '<(output_h)', | |
| 327 '--output-cc', '<(output_cc)', | |
| 328 '--header', '"third_party/libudev/libudev1.h"', | |
| 329 '--link-directly=0', | |
| 330 '<@(libudev_functions)', | |
| 331 ], | |
| 332 'message': 'Generating libudev1 library loader', | |
| 333 'process_outputs_as_sources': 1, | |
| 334 }, | |
| 335 ], | |
| 336 }], | |
| 337 ], | |
| 338 }, | |
| 339 ], | |
| 340 }], | |
| 341 ['use_libpci==1', { | |
| 342 'targets': [ | |
| 343 { | |
| 344 'target_name': 'libpci', | |
| 345 'type': 'static_library', | |
| 346 'cflags': [ | |
| 347 '<!@(<(pkg-config) --cflags libpci)', | |
| 348 ], | |
| 349 'direct_dependent_settings': { | |
| 350 'include_dirs': [ | |
| 351 '<(SHARED_INTERMEDIATE_DIR)', | |
| 352 ], | |
| 353 'conditions': [ | |
| 354 ['linux_link_libpci==1', { | |
| 355 'link_settings': { | |
| 356 'ldflags': [ | |
| 357 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpci)', | |
| 358 ], | |
| 359 'libraries': [ | |
| 360 '<!@(<(pkg-config) --libs-only-l libpci)', | |
| 361 ], | |
| 362 } | |
| 363 }], | |
| 364 ], | |
| 365 }, | |
| 366 'include_dirs': [ | |
| 367 '../..', | |
| 368 ], | |
| 369 'hard_dependency': 1, | |
| 370 'actions': [ | |
| 371 { | |
| 372 'variables': { | |
| 373 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libpci.h
', | |
| 374 'output_cc': '<(INTERMEDIATE_DIR)/libpci_loader.cc', | |
| 375 'generator': '../../tools/generate_library_loader/generate_libra
ry_loader.py', | |
| 376 }, | |
| 377 'action_name': 'generate_libpci_loader', | |
| 378 'inputs': [ | |
| 379 '<(generator)', | |
| 380 ], | |
| 381 'outputs': [ | |
| 382 '<(output_h)', | |
| 383 '<(output_cc)', | |
| 384 ], | |
| 385 'action': ['python', | |
| 386 '<(generator)', | |
| 387 '--name', 'LibPciLoader', | |
| 388 '--output-h', '<(output_h)', | |
| 389 '--output-cc', '<(output_cc)', | |
| 390 '--header', '<pci/pci.h>', | |
| 391 # TODO(phajdan.jr): Report problem to pciutils project | |
| 392 # and get it fixed so that we don't need --use-extern-c
. | |
| 393 '--use-extern-c', | |
| 394 '--link-directly=<(linux_link_libpci)', | |
| 395 '<@(libpci_functions)', | |
| 396 ], | |
| 397 'message': 'Generating libpci library loader', | |
| 398 'process_outputs_as_sources': 1, | |
| 399 }, | |
| 400 ], | |
| 401 }, | |
| 402 ], | |
| 403 }], | |
| 404 ], # conditions | |
| 405 'targets': [ | |
| 406 { | |
| 407 'target_name': 'dbus', | |
| 408 'type': 'none', | |
| 409 'direct_dependent_settings': { | |
| 410 'cflags': [ | |
| 411 '<!@(<(pkg-config) --cflags dbus-1)', | |
| 412 ], | |
| 413 }, | |
| 414 'link_settings': { | |
| 415 'ldflags': [ | |
| 416 '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-1)', | |
| 417 ], | |
| 418 'libraries': [ | |
| 419 '<!@(<(pkg-config) --libs-only-l dbus-1)', | |
| 420 ], | |
| 421 }, | |
| 422 }, | |
| 423 { | |
| 424 'target_name': 'fontconfig', | |
| 425 'type': 'none', | |
| 426 'conditions': [ | |
| 427 ['_toolset=="target"', { | |
| 428 'conditions': [ | |
| 429 ['use_system_fontconfig==1', { | |
| 430 'direct_dependent_settings': { | |
| 431 'cflags': [ | |
| 432 '<!@(<(pkg-config) --cflags fontconfig)', | |
| 433 ], | |
| 434 }, | |
| 435 'link_settings': { | |
| 436 'ldflags': [ | |
| 437 '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)
', | |
| 438 ], | |
| 439 'libraries': [ | |
| 440 '<!@(<(pkg-config) --libs-only-l fontconfig)', | |
| 441 ], | |
| 442 }, | |
| 443 }, { # use_system_fontconfig==0 | |
| 444 'dependencies': [ | |
| 445 '../../third_party/fontconfig/fontconfig.gyp:fontconfig', | |
| 446 ], | |
| 447 'export_dependent_settings' : [ | |
| 448 '../../third_party/fontconfig/fontconfig.gyp:fontconfig', | |
| 449 ], | |
| 450 }], | |
| 451 ], | |
| 452 }], | |
| 453 ], | |
| 454 }, | |
| 455 { | |
| 456 'target_name': 'freetype2', | |
| 457 'type': 'none', | |
| 458 'conditions': [ | |
| 459 ['_toolset=="target"', { | |
| 460 'direct_dependent_settings': { | |
| 461 'cflags': [ | |
| 462 '<!@(<(pkg-config) --cflags freetype2)', | |
| 463 ], | |
| 464 }, | |
| 465 'link_settings': { | |
| 466 'ldflags': [ | |
| 467 '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)', | |
| 468 ], | |
| 469 'libraries': [ | |
| 470 '<!@(<(pkg-config) --libs-only-l freetype2)', | |
| 471 ], | |
| 472 }, | |
| 473 }], | |
| 474 ], | |
| 475 }, | |
| 476 { | |
| 477 'target_name': 'gio', | |
| 478 'type': 'static_library', | |
| 479 'conditions': [ | |
| 480 ['use_gio==1 and _toolset=="target"', { | |
| 481 'cflags': [ | |
| 482 '<!@(<(pkg-config) --cflags gio-2.0)', | |
| 483 ], | |
| 484 'variables': { | |
| 485 'gio_warning_define': [ | |
| 486 # glib >=2.40 deprecate g_settings_list_schemas in favor of | |
| 487 # g_settings_schema_source_list_schemas. This function is not | |
| 488 # available on earlier versions that we still need to support | |
| 489 # (specifically, 2.32), so disable the warning. | |
| 490 # TODO(mgiuca): Remove this suppression (and variable) when we | |
| 491 # drop support for Ubuntu 13.10 (saucy) and earlier. Update the | |
| 492 # code to use g_settings_schema_source_list_schemas instead. | |
| 493 'GLIB_DISABLE_DEPRECATION_WARNINGS', | |
| 494 ], | |
| 495 }, | |
| 496 'defines': [ | |
| 497 '<(gio_warning_define)', | |
| 498 ], | |
| 499 'direct_dependent_settings': { | |
| 500 'cflags': [ | |
| 501 '<!@(<(pkg-config) --cflags gio-2.0)', | |
| 502 ], | |
| 503 'defines': [ | |
| 504 'USE_GIO', | |
| 505 '<(gio_warning_define)', | |
| 506 ], | |
| 507 'include_dirs': [ | |
| 508 '<(SHARED_INTERMEDIATE_DIR)', | |
| 509 ], | |
| 510 }, | |
| 511 'include_dirs': [ | |
| 512 '../..', | |
| 513 ], | |
| 514 'link_settings': { | |
| 515 'ldflags': [ | |
| 516 '<!@(<(pkg-config) --libs-only-L --libs-only-other gio-2.0)', | |
| 517 ], | |
| 518 'libraries': [ | |
| 519 '<!@(<(pkg-config) --libs-only-l gio-2.0)', | |
| 520 ], | |
| 521 'conditions': [ | |
| 522 ['linux_link_gsettings==0 and OS=="linux"', { | |
| 523 'libraries': [ | |
| 524 '-ldl', | |
| 525 ], | |
| 526 }], | |
| 527 ], | |
| 528 }, | |
| 529 'hard_dependency': 1, | |
| 530 'actions': [ | |
| 531 { | |
| 532 'variables': { | |
| 533 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libgio.h
', | |
| 534 'output_cc': '<(INTERMEDIATE_DIR)/libgio_loader.cc', | |
| 535 'generator': '../../tools/generate_library_loader/generate_libra
ry_loader.py', | |
| 536 }, | |
| 537 'action_name': 'generate_libgio_loader', | |
| 538 'inputs': [ | |
| 539 '<(generator)', | |
| 540 ], | |
| 541 'outputs': [ | |
| 542 '<(output_h)', | |
| 543 '<(output_cc)', | |
| 544 ], | |
| 545 'action': ['python', | |
| 546 '<(generator)', | |
| 547 '--name', 'LibGioLoader', | |
| 548 '--output-h', '<(output_h)', | |
| 549 '--output-cc', '<(output_cc)', | |
| 550 '--header', '<gio/gio.h>', | |
| 551 '--link-directly=<(linux_link_gsettings)', | |
| 552 '<@(libgio_functions)', | |
| 553 ], | |
| 554 'message': 'Generating libgio library loader', | |
| 555 'process_outputs_as_sources': 1, | |
| 556 }, | |
| 557 ], | |
| 558 }], | |
| 559 ], | |
| 560 }, | |
| 561 { | |
| 562 'target_name': 'glib', | |
| 563 'type': 'none', | |
| 564 'toolsets': ['host', 'target'], | |
| 565 'variables': { | |
| 566 'glib_packages': 'glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0', | |
| 567 }, | |
| 568 'conditions': [ | |
| 569 ['_toolset=="target"', { | |
| 570 'direct_dependent_settings': { | |
| 571 'cflags': [ | |
| 572 '<!@(<(pkg-config) --cflags <(glib_packages))', | |
| 573 ], | |
| 574 }, | |
| 575 'link_settings': { | |
| 576 'ldflags': [ | |
| 577 '<!@(<(pkg-config) --libs-only-L --libs-only-other <(glib_packages
))', | |
| 578 ], | |
| 579 'libraries': [ | |
| 580 '<!@(<(pkg-config) --libs-only-l <(glib_packages))', | |
| 581 ], | |
| 582 }, | |
| 583 }, { | |
| 584 'direct_dependent_settings': { | |
| 585 'cflags': [ | |
| 586 '<!@(pkg-config --cflags <(glib_packages))', | |
| 587 ], | |
| 588 }, | |
| 589 'link_settings': { | |
| 590 'ldflags': [ | |
| 591 '<!@(pkg-config --libs-only-L --libs-only-other <(glib_packages))'
, | |
| 592 ], | |
| 593 'libraries': [ | |
| 594 '<!@(pkg-config --libs-only-l <(glib_packages))', | |
| 595 ], | |
| 596 }, | |
| 597 }], | |
| 598 ], | |
| 599 }, | |
| 600 { | |
| 601 'target_name': 'libcap', | |
| 602 'type': 'none', | |
| 603 'link_settings': { | |
| 604 'libraries': [ | |
| 605 '-lcap', | |
| 606 ], | |
| 607 }, | |
| 608 }, | |
| 609 { | |
| 610 'target_name': 'libresolv', | |
| 611 'type': 'none', | |
| 612 'link_settings': { | |
| 613 'libraries': [ | |
| 614 '-lresolv', | |
| 615 ], | |
| 616 }, | |
| 617 }, | |
| 618 { | |
| 619 # GN version: //third_party/speech-dispatcher | |
| 620 'target_name': 'libspeechd', | |
| 621 'type': 'static_library', | |
| 622 'direct_dependent_settings': { | |
| 623 'include_dirs': [ | |
| 624 '<(SHARED_INTERMEDIATE_DIR)', | |
| 625 ], | |
| 626 'conditions': [ | |
| 627 ['linux_link_libspeechd==1', { | |
| 628 'link_settings': { | |
| 629 'libraries': [ | |
| 630 '-lspeechd', | |
| 631 ], | |
| 632 } | |
| 633 }], | |
| 634 ], | |
| 635 }, | |
| 636 'include_dirs': [ | |
| 637 '../..', | |
| 638 ], | |
| 639 'hard_dependency': 1, | |
| 640 'actions': [ | |
| 641 { | |
| 642 'variables': { | |
| 643 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libspeechd.h
', | |
| 644 'output_cc': '<(INTERMEDIATE_DIR)/libspeechd_loader.cc', | |
| 645 'generator': '../../tools/generate_library_loader/generate_library_l
oader.py', | |
| 646 | |
| 647 # speech-dispatcher >= 0.8 installs libspeechd.h into | |
| 648 # speech-dispatcher/libspeechd.h, whereas speech-dispatcher < 0.8 | |
| 649 # puts libspeechd.h in the top-level include directory. | |
| 650 # Since we need to support both cases for now, we ship a copy of | |
| 651 # libspeechd.h in third_party/speech-dispatcher. If the user | |
| 652 # prefers to link against the speech-dispatcher directly, the | |
| 653 # `libspeechd_h_prefix' variable can be passed to gyp with a value | |
| 654 # such as "speech-dispatcher/" that will be prepended to | |
| 655 # "libspeechd.h" in the #include directive. | |
| 656 # TODO(phaldan.jr): Once we do not need to support | |
| 657 # speech-dispatcher < 0.8 we can get rid of all this (including | |
| 658 # third_party/speech-dispatcher) and just include | |
| 659 # speech-dispatcher/libspeechd.h unconditionally. | |
| 660 'libspeechd_h_prefix%': '', | |
| 661 }, | |
| 662 'action_name': 'generate_libspeechd_loader', | |
| 663 'inputs': [ | |
| 664 '<(generator)', | |
| 665 ], | |
| 666 'outputs': [ | |
| 667 '<(output_h)', | |
| 668 '<(output_cc)', | |
| 669 ], | |
| 670 'action': ['python', | |
| 671 '<(generator)', | |
| 672 '--name', 'LibSpeechdLoader', | |
| 673 '--output-h', '<(output_h)', | |
| 674 '--output-cc', '<(output_cc)', | |
| 675 '--header', '<<(libspeechd_h_prefix)libspeechd.h>', | |
| 676 '--bundled-header', | |
| 677 '"third_party/speech-dispatcher/libspeechd.h"', | |
| 678 '--link-directly=<(linux_link_libspeechd)', | |
| 679 'spd_open', | |
| 680 'spd_say', | |
| 681 'spd_stop', | |
| 682 'spd_close', | |
| 683 'spd_pause', | |
| 684 'spd_resume', | |
| 685 'spd_set_notification_on', | |
| 686 'spd_set_voice_rate', | |
| 687 'spd_set_voice_pitch', | |
| 688 'spd_list_synthesis_voices', | |
| 689 'spd_set_synthesis_voice', | |
| 690 'spd_list_modules', | |
| 691 'spd_set_output_module', | |
| 692 'spd_set_language', | |
| 693 ], | |
| 694 'message': 'Generating libspeechd library loader', | |
| 695 'process_outputs_as_sources': 1, | |
| 696 }, | |
| 697 ], | |
| 698 }, | |
| 699 { | |
| 700 'target_name': 'pangocairo', | |
| 701 'type': 'none', | |
| 702 'toolsets': ['host', 'target'], | |
| 703 'conditions': [ | |
| 704 ['use_pango==1 and use_cairo==1', { | |
| 705 'conditions': [ | |
| 706 ['_toolset=="target"', { | |
| 707 'direct_dependent_settings': { | |
| 708 'cflags': [ | |
| 709 '<!@(<(pkg-config) --cflags pangocairo pangoft2)', | |
| 710 ], | |
| 711 }, | |
| 712 'link_settings': { | |
| 713 'ldflags': [ | |
| 714 '<!@(<(pkg-config) --libs-only-L --libs-only-other pangocairo
pangoft2)', | |
| 715 ], | |
| 716 'libraries': [ | |
| 717 '<!@(<(pkg-config) --libs-only-l pangocairo pangoft2)', | |
| 718 ], | |
| 719 }, | |
| 720 }, { | |
| 721 'direct_dependent_settings': { | |
| 722 'cflags': [ | |
| 723 '<!@(pkg-config --cflags pangocairo pangoft2)', | |
| 724 ], | |
| 725 }, | |
| 726 'link_settings': { | |
| 727 'ldflags': [ | |
| 728 '<!@(pkg-config --libs-only-L --libs-only-other pangocairo pan
goft2)', | |
| 729 ], | |
| 730 'libraries': [ | |
| 731 '<!@(pkg-config --libs-only-l pangocairo pangoft2)', | |
| 732 ], | |
| 733 }, | |
| 734 }], | |
| 735 ], | |
| 736 }], | |
| 737 ], | |
| 738 }, | |
| 739 { | |
| 740 'target_name': 'ssl', | |
| 741 'type': 'none', | |
| 742 'conditions': [ | |
| 743 ['_toolset=="target"', { | |
| 744 'conditions': [ | |
| 745 ['use_openssl==1', { | |
| 746 'dependencies': [ | |
| 747 '../../third_party/boringssl/boringssl.gyp:boringssl', | |
| 748 ], | |
| 749 }, { | |
| 750 'dependencies': [ | |
| 751 '../../net/third_party/nss/ssl.gyp:libssl', | |
| 752 ], | |
| 753 'direct_dependent_settings': { | |
| 754 'include_dirs+': [ | |
| 755 # We need for our local copies of the libssl3 headers to come | |
| 756 # before other includes, as we are shadowing system headers. | |
| 757 '<(DEPTH)/net/third_party/nss/ssl', | |
| 758 ], | |
| 759 }, | |
| 760 }], | |
| 761 # Link in the system NSS if it is used for either the internal | |
| 762 # crypto library (use_openssl==0) or platform certificate | |
| 763 # library (use_nss_certs==1). | |
| 764 ['use_openssl==0 or use_nss_certs==1', { | |
| 765 'direct_dependent_settings': { | |
| 766 'cflags': [ | |
| 767 '<!@(<(pkg-config) --cflags nss)', | |
| 768 ], | |
| 769 }, | |
| 770 'link_settings': { | |
| 771 'ldflags': [ | |
| 772 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', | |
| 773 ], | |
| 774 'libraries': [ | |
| 775 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', | |
| 776 ], | |
| 777 }, | |
| 778 'conditions': [ | |
| 779 ['clang==1', { | |
| 780 'direct_dependent_settings': { | |
| 781 'cflags': [ | |
| 782 # There is a broken header guard in /usr/include/nss/secmo
d.h: | |
| 783 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 | |
| 784 '-Wno-header-guard', | |
| 785 ], | |
| 786 }, | |
| 787 }], | |
| 788 ], | |
| 789 }], | |
| 790 ] | |
| 791 }], | |
| 792 ], | |
| 793 }, | |
| 794 ], | |
| 795 } | |
| OLD | NEW |