media/webrtc/trunk/build/linux/system.gyp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/trunk/build/linux/system.gyp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,637 @@
     1.4 +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
     1.5 +# Use of this source code is governed by a BSD-style license that can be
     1.6 +# found in the LICENSE file.
     1.7 +
     1.8 +{
     1.9 +  'variables': {
    1.10 +    'conditions': [
    1.11 +      ['sysroot!=""', {
    1.12 +        'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
    1.13 +      }, {
    1.14 +        'pkg-config': 'pkg-config'
    1.15 +      }]
    1.16 +    ],
    1.17 +  },
    1.18 +  'conditions': [
    1.19 +    [ 'os_posix==1 and OS!="mac"', {
    1.20 +      'variables': {
    1.21 +        # We use our own copy of libssl3, although we still need to link against
    1.22 +        # the rest of NSS.
    1.23 +        'use_system_ssl%': 0,
    1.24 +      },
    1.25 +    }, {
    1.26 +      'variables': {
    1.27 +        'use_system_ssl%': 1,
    1.28 +      },
    1.29 +    }],
    1.30 +    [ 'chromeos==0', {
    1.31 +      # Hide GTK and related dependencies for Chrome OS, so they won't get
    1.32 +      # added back to Chrome OS. Don't try to use GTK on Chrome OS.
    1.33 +      'targets': [
    1.34 +        {
    1.35 +          'target_name': 'gtk',
    1.36 +          'type': 'none',
    1.37 +          'toolsets': ['host', 'target'],
    1.38 +          'variables': {
    1.39 +            # gtk requires gmodule, but it does not list it as a dependency
    1.40 +            # in some misconfigured systems.
    1.41 +            'gtk_packages': 'gmodule-2.0 gtk+-2.0 gthread-2.0',
    1.42 +          },
    1.43 +          'conditions': [
    1.44 +            ['_toolset=="target"', {
    1.45 +              'direct_dependent_settings': {
    1.46 +                'cflags': [
    1.47 +                  '<!@(<(pkg-config) --cflags <(gtk_packages))',
    1.48 +                ],
    1.49 +              },
    1.50 +              'link_settings': {
    1.51 +                'ldflags': [
    1.52 +                  '<!@(<(pkg-config) --libs-only-L --libs-only-other <(gtk_packages))',
    1.53 +                ],
    1.54 +                'libraries': [
    1.55 +                  '<!@(<(pkg-config) --libs-only-l <(gtk_packages))',
    1.56 +                ],
    1.57 +              },
    1.58 +            }, {
    1.59 +              'direct_dependent_settings': {
    1.60 +                'cflags': [
    1.61 +                  '<!@(pkg-config --cflags <(gtk_packages))',
    1.62 +                ],
    1.63 +              },
    1.64 +              'link_settings': {
    1.65 +                'ldflags': [
    1.66 +                  '<!@(pkg-config --libs-only-L --libs-only-other <(gtk_packages))',
    1.67 +                ],
    1.68 +                'libraries': [
    1.69 +                  '<!@(pkg-config --libs-only-l <(gtk_packages))',
    1.70 +                ],
    1.71 +              },
    1.72 +            }],
    1.73 +          ],
    1.74 +        },
    1.75 +        {
    1.76 +          'target_name': 'gtkprint',
    1.77 +          'type': 'none',
    1.78 +          'conditions': [
    1.79 +            ['_toolset=="target"', {
    1.80 +              'direct_dependent_settings': {
    1.81 +                'cflags': [
    1.82 +                  '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)',
    1.83 +                ],
    1.84 +              },
    1.85 +              'link_settings': {
    1.86 +                'ldflags': [
    1.87 +                  '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-print-2.0)',
    1.88 +                ],
    1.89 +                'libraries': [
    1.90 +                  '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)',
    1.91 +                ],
    1.92 +              },
    1.93 +            }],
    1.94 +          ],
    1.95 +        },
    1.96 +        {
    1.97 +          'target_name': 'gdk',
    1.98 +          'type': 'none',
    1.99 +          'conditions': [
   1.100 +            ['_toolset=="target"', {
   1.101 +              'direct_dependent_settings': {
   1.102 +                'cflags': [
   1.103 +                  '<!@(<(pkg-config) --cflags gdk-2.0)',
   1.104 +                ],
   1.105 +              },
   1.106 +              'link_settings': {
   1.107 +                'ldflags': [
   1.108 +                  '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)',
   1.109 +                ],
   1.110 +                'libraries': [
   1.111 +                  '<!@(<(pkg-config) --libs-only-l gdk-2.0)',
   1.112 +                ],
   1.113 +              },
   1.114 +            }],
   1.115 +          ],
   1.116 +        },
   1.117 +      ],  # targets
   1.118 +    }, {  # chromeos==1
   1.119 +      'targets': [
   1.120 +        {
   1.121 +          # TODO(satorux): Remove this once dbus-glib clients are gone.
   1.122 +          'target_name': 'dbus-glib',
   1.123 +          'type': 'none',
   1.124 +          'direct_dependent_settings': {
   1.125 +            'cflags': [
   1.126 +              '<!@(<(pkg-config) --cflags dbus-glib-1)',
   1.127 +            ],
   1.128 +          },
   1.129 +          'link_settings': {
   1.130 +            'ldflags': [
   1.131 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-glib-1)',
   1.132 +            ],
   1.133 +            'libraries': [
   1.134 +              '<!@(<(pkg-config) --libs-only-l dbus-glib-1)',
   1.135 +            ],
   1.136 +          },
   1.137 +        },
   1.138 +      ],
   1.139 +    }]
   1.140 +  ],  # conditions
   1.141 +  'targets': [
   1.142 +    {
   1.143 +      'target_name': 'ssl',
   1.144 +      'type': 'none',
   1.145 +      'conditions': [
   1.146 +        ['_toolset=="target"', {
   1.147 +          'conditions': [
   1.148 +            ['use_openssl==1', {
   1.149 +              'dependencies': [
   1.150 +                '../../third_party/openssl/openssl.gyp:openssl',
   1.151 +              ],
   1.152 +            }],
   1.153 +            ['use_openssl==0 and use_system_ssl==0', {
   1.154 +              'dependencies': [
   1.155 +                '../../net/third_party/nss/ssl.gyp:libssl',
   1.156 +                '../../third_party/zlib/zlib.gyp:zlib',
   1.157 +              ],
   1.158 +              'direct_dependent_settings': {
   1.159 +                'include_dirs+': [
   1.160 +                  # We need for our local copies of the libssl3 headers to come
   1.161 +                  # before other includes, as we are shadowing system headers.
   1.162 +                  '<(DEPTH)/net/third_party/nss/ssl',
   1.163 +                ],
   1.164 +                'cflags': [
   1.165 +                  '<!@(<(pkg-config) --cflags nss)',
   1.166 +                ],
   1.167 +              },
   1.168 +              'link_settings': {
   1.169 +                'ldflags': [
   1.170 +                  '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
   1.171 +                ],
   1.172 +                'libraries': [
   1.173 +                  '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
   1.174 +                ],
   1.175 +              },
   1.176 +            }],
   1.177 +            ['use_openssl==0 and use_system_ssl==1', {
   1.178 +              'direct_dependent_settings': {
   1.179 +                'cflags': [
   1.180 +                  '<!@(<(pkg-config) --cflags nss)',
   1.181 +                ],
   1.182 +                'defines': [
   1.183 +                  'USE_SYSTEM_SSL',
   1.184 +                ],
   1.185 +              },
   1.186 +              'link_settings': {
   1.187 +                'ldflags': [
   1.188 +                  '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
   1.189 +                ],
   1.190 +                'libraries': [
   1.191 +                  '<!@(<(pkg-config) --libs-only-l nss)',
   1.192 +                ],
   1.193 +              },
   1.194 +            }],
   1.195 +          ]
   1.196 +        }],
   1.197 +      ],
   1.198 +    },
   1.199 +    {
   1.200 +      'target_name': 'freetype2',
   1.201 +      'type': 'none',
   1.202 +      'conditions': [
   1.203 +        ['_toolset=="target"', {
   1.204 +          'direct_dependent_settings': {
   1.205 +            'cflags': [
   1.206 +              '<!@(<(pkg-config) --cflags freetype2)',
   1.207 +            ],
   1.208 +          },
   1.209 +          'link_settings': {
   1.210 +            'ldflags': [
   1.211 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)',
   1.212 +            ],
   1.213 +            'libraries': [
   1.214 +              '<!@(<(pkg-config) --libs-only-l freetype2)',
   1.215 +            ],
   1.216 +          },
   1.217 +        }],
   1.218 +      ],
   1.219 +    },
   1.220 +    {
   1.221 +      'target_name': 'fontconfig',
   1.222 +      'type': 'none',
   1.223 +      'conditions': [
   1.224 +        ['_toolset=="target"', {
   1.225 +          'direct_dependent_settings': {
   1.226 +            'cflags': [
   1.227 +              '<!@(<(pkg-config) --cflags fontconfig)',
   1.228 +            ],
   1.229 +          },
   1.230 +          'link_settings': {
   1.231 +            'ldflags': [
   1.232 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)',
   1.233 +            ],
   1.234 +            'libraries': [
   1.235 +              '<!@(<(pkg-config) --libs-only-l fontconfig)',
   1.236 +            ],
   1.237 +          },
   1.238 +        }],
   1.239 +      ],
   1.240 +    },
   1.241 +    {
   1.242 +      'target_name': 'gconf',
   1.243 +      'type': 'none',
   1.244 +      'conditions': [
   1.245 +        ['use_gconf==1 and _toolset=="target"', {
   1.246 +          'direct_dependent_settings': {
   1.247 +            'cflags': [
   1.248 +              '<!@(<(pkg-config) --cflags gconf-2.0)',
   1.249 +            ],
   1.250 +            'defines': [
   1.251 +              'USE_GCONF',
   1.252 +            ],
   1.253 +          },
   1.254 +          'link_settings': {
   1.255 +            'ldflags': [
   1.256 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)',
   1.257 +            ],
   1.258 +            'libraries': [
   1.259 +              '<!@(<(pkg-config) --libs-only-l gconf-2.0)',
   1.260 +            ],
   1.261 +          },
   1.262 +        }],
   1.263 +      ],
   1.264 +    },
   1.265 +    {
   1.266 +      'target_name': 'gio',
   1.267 +      'type': 'none',
   1.268 +      'conditions': [
   1.269 +        ['use_gio==1 and _toolset=="target"', {
   1.270 +          'direct_dependent_settings': {
   1.271 +            'cflags': [
   1.272 +              '<!@(<(pkg-config) --cflags gio-2.0)',
   1.273 +            ],
   1.274 +            'defines': [
   1.275 +              'USE_GIO',
   1.276 +            ],
   1.277 +            'conditions': [
   1.278 +              ['linux_link_gsettings==0', {
   1.279 +                'defines': ['DLOPEN_GSETTINGS'],
   1.280 +              }],
   1.281 +            ],
   1.282 +          },
   1.283 +          'link_settings': {
   1.284 +            'ldflags': [
   1.285 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other gio-2.0)',
   1.286 +            ],
   1.287 +            'libraries': [
   1.288 +              '<!@(<(pkg-config) --libs-only-l gio-2.0)',
   1.289 +            ],
   1.290 +            'conditions': [
   1.291 +              ['linux_link_gsettings==0 and OS=="linux"', {
   1.292 +                'libraries': [
   1.293 +                  '-ldl',
   1.294 +                ],
   1.295 +              }],
   1.296 +            ],
   1.297 +          },
   1.298 +        }],
   1.299 +      ],
   1.300 +    },
   1.301 +    {
   1.302 +      'target_name': 'x11',
   1.303 +      'type': 'none',
   1.304 +      'toolsets': ['host', 'target'],
   1.305 +      'conditions': [
   1.306 +        ['_toolset=="target"', {
   1.307 +          'direct_dependent_settings': {
   1.308 +            'cflags': [
   1.309 +              '<!@(<(pkg-config) --cflags x11)',
   1.310 +            ],
   1.311 +          },
   1.312 +          'link_settings': {
   1.313 +            'ldflags': [
   1.314 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)',
   1.315 +            ],
   1.316 +            'libraries': [
   1.317 +              '<!@(<(pkg-config) --libs-only-l x11 xi)',
   1.318 +            ],
   1.319 +          },
   1.320 +        }, {
   1.321 +          'direct_dependent_settings': {
   1.322 +            'cflags': [
   1.323 +              '<!@(pkg-config --cflags x11)',
   1.324 +            ],
   1.325 +          },
   1.326 +          'link_settings': {
   1.327 +            'ldflags': [
   1.328 +              '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
   1.329 +            ],
   1.330 +            'libraries': [
   1.331 +              '<!@(pkg-config --libs-only-l x11 xi)',
   1.332 +            ],
   1.333 +          },
   1.334 +        }],
   1.335 +      ],
   1.336 +    },
   1.337 +    {
   1.338 +      'target_name': 'xext',
   1.339 +      'type': 'none',
   1.340 +      'conditions': [
   1.341 +        ['_toolset=="target"', {
   1.342 +          'direct_dependent_settings': {
   1.343 +            'cflags': [
   1.344 +              '<!@(<(pkg-config) --cflags xext)',
   1.345 +            ],
   1.346 +          },
   1.347 +          'link_settings': {
   1.348 +            'ldflags': [
   1.349 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)',
   1.350 +            ],
   1.351 +            'libraries': [
   1.352 +              '<!@(<(pkg-config) --libs-only-l xext)',
   1.353 +            ],
   1.354 +          },
   1.355 +        }],
   1.356 +      ],
   1.357 +    },
   1.358 +    {
   1.359 +      'target_name': 'xfixes',
   1.360 +      'type': 'none',
   1.361 +      'conditions': [
   1.362 +        ['_toolset=="target"', {
   1.363 +          'direct_dependent_settings': {
   1.364 +            'cflags': [
   1.365 +              '<!@(<(pkg-config) --cflags xfixes)',
   1.366 +            ],
   1.367 +          },
   1.368 +          'link_settings': {
   1.369 +            'ldflags': [
   1.370 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other xfixes)',
   1.371 +            ],
   1.372 +            'libraries': [
   1.373 +              '<!@(<(pkg-config) --libs-only-l xfixes)',
   1.374 +            ],
   1.375 +          },
   1.376 +        }],
   1.377 +      ],
   1.378 +    },
   1.379 +    {
   1.380 +      'target_name': 'libgcrypt',
   1.381 +      'type': 'none',
   1.382 +      'conditions': [
   1.383 +        ['_toolset=="target" and use_cups==1', {
   1.384 +          'direct_dependent_settings': {
   1.385 +            'cflags': [
   1.386 +              '<!@(libgcrypt-config --cflags)',
   1.387 +            ],
   1.388 +          },
   1.389 +          'link_settings': {
   1.390 +            'libraries': [
   1.391 +              '<!@(libgcrypt-config --libs)',
   1.392 +            ],
   1.393 +          },
   1.394 +        }],
   1.395 +      ],
   1.396 +    },
   1.397 +    {
   1.398 +      'target_name': 'selinux',
   1.399 +      'type': 'none',
   1.400 +      'conditions': [
   1.401 +        ['_toolset=="target"', {
   1.402 +          'link_settings': {
   1.403 +            'libraries': [
   1.404 +              '-lselinux',
   1.405 +            ],
   1.406 +          },
   1.407 +        }],
   1.408 +      ],
   1.409 +    },
   1.410 +    {
   1.411 +      'target_name': 'gnome_keyring',
   1.412 +      'type': 'none',
   1.413 +      'conditions': [
   1.414 +        ['use_gnome_keyring==1', {
   1.415 +          'direct_dependent_settings': {
   1.416 +            'cflags': [
   1.417 +              '<!@(<(pkg-config) --cflags gnome-keyring-1)',
   1.418 +            ],
   1.419 +            'defines': [
   1.420 +              'USE_GNOME_KEYRING',
   1.421 +            ],
   1.422 +            'conditions': [
   1.423 +              ['linux_link_gnome_keyring==0', {
   1.424 +                'defines': ['DLOPEN_GNOME_KEYRING'],
   1.425 +              }],
   1.426 +            ],
   1.427 +          },
   1.428 +          'conditions': [
   1.429 +            ['linux_link_gnome_keyring!=0', {
   1.430 +              'link_settings': {
   1.431 +                'ldflags': [
   1.432 +                  '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)',
   1.433 +                ],
   1.434 +                'libraries': [
   1.435 +                  '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)',
   1.436 +                ],
   1.437 +              },
   1.438 +            }, {
   1.439 +              'conditions': [
   1.440 +                ['OS=="linux"', {
   1.441 +                 'link_settings': {
   1.442 +                   'libraries': [
   1.443 +                     '-ldl',
   1.444 +                   ],
   1.445 +                 },
   1.446 +                }],
   1.447 +              ],
   1.448 +            }],
   1.449 +          ],
   1.450 +        }],
   1.451 +      ],
   1.452 +    },
   1.453 +    {
   1.454 +      # The unit tests use a few convenience functions from the GNOME
   1.455 +      # Keyring library directly. We ignore linux_link_gnome_keyring and
   1.456 +      # link directly in this version of the target to allow this.
   1.457 +      # *** Do not use this target in the main binary! ***
   1.458 +      'target_name': 'gnome_keyring_direct',
   1.459 +      'type': 'none',
   1.460 +      'conditions': [
   1.461 +        ['use_gnome_keyring==1', {
   1.462 +          'direct_dependent_settings': {
   1.463 +            'cflags': [
   1.464 +              '<!@(<(pkg-config) --cflags gnome-keyring-1)',
   1.465 +            ],
   1.466 +            'defines': [
   1.467 +              'USE_GNOME_KEYRING',
   1.468 +            ],
   1.469 +            'conditions': [
   1.470 +              ['linux_link_gnome_keyring==0', {
   1.471 +                'defines': ['DLOPEN_GNOME_KEYRING'],
   1.472 +              }],
   1.473 +            ],
   1.474 +          },
   1.475 +          'link_settings': {
   1.476 +            'ldflags': [
   1.477 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)',
   1.478 +            ],
   1.479 +            'libraries': [
   1.480 +              '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)',
   1.481 +            ],
   1.482 +          },
   1.483 +        }],
   1.484 +      ],
   1.485 +    },
   1.486 +    {
   1.487 +      'target_name': 'dbus',
   1.488 +      'type': 'none',
   1.489 +      'direct_dependent_settings': {
   1.490 +        'cflags': [
   1.491 +          '<!@(<(pkg-config) --cflags dbus-1)',
   1.492 +        ],
   1.493 +      },
   1.494 +      'link_settings': {
   1.495 +        'ldflags': [
   1.496 +          '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-1)',
   1.497 +        ],
   1.498 +        'libraries': [
   1.499 +          '<!@(<(pkg-config) --libs-only-l dbus-1)',
   1.500 +        ],
   1.501 +      },
   1.502 +    },
   1.503 +    {
   1.504 +      'target_name': 'glib',
   1.505 +      'type': 'none',
   1.506 +      'toolsets': ['host', 'target'],
   1.507 +      'variables': {
   1.508 +        'glib_packages': 'glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0',
   1.509 +      },
   1.510 +      'conditions': [
   1.511 +        ['_toolset=="target"', {
   1.512 +          'direct_dependent_settings': {
   1.513 +            'cflags': [
   1.514 +              '<!@(<(pkg-config) --cflags <(glib_packages))',
   1.515 +            ],
   1.516 +          },
   1.517 +          'link_settings': {
   1.518 +            'ldflags': [
   1.519 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other <(glib_packages))',
   1.520 +            ],
   1.521 +            'libraries': [
   1.522 +              '<!@(<(pkg-config) --libs-only-l <(glib_packages))',
   1.523 +            ],
   1.524 +          },
   1.525 +        }, {
   1.526 +          'direct_dependent_settings': {
   1.527 +            'cflags': [
   1.528 +              '<!@(pkg-config --cflags <(glib_packages))',
   1.529 +            ],
   1.530 +          },
   1.531 +          'link_settings': {
   1.532 +            'ldflags': [
   1.533 +              '<!@(pkg-config --libs-only-L --libs-only-other <(glib_packages))',
   1.534 +            ],
   1.535 +            'libraries': [
   1.536 +              '<!@(pkg-config --libs-only-l <(glib_packages))',
   1.537 +            ],
   1.538 +          },
   1.539 +        }],
   1.540 +        ['chromeos==1', {
   1.541 +          'link_settings': {
   1.542 +            'libraries': [ '-lXtst' ]
   1.543 +          }
   1.544 +        }],
   1.545 +      ],
   1.546 +    },
   1.547 +    {
   1.548 +      'target_name': 'pangocairo',
   1.549 +      'type': 'none',
   1.550 +      'toolsets': ['host', 'target'],
   1.551 +      'conditions': [
   1.552 +        ['_toolset=="target"', {
   1.553 +          'direct_dependent_settings': {
   1.554 +            'cflags': [
   1.555 +              '<!@(<(pkg-config) --cflags pangocairo)',
   1.556 +            ],
   1.557 +          },
   1.558 +          'link_settings': {
   1.559 +            'ldflags': [
   1.560 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other pangocairo)',
   1.561 +            ],
   1.562 +            'libraries': [
   1.563 +              '<!@(<(pkg-config) --libs-only-l pangocairo)',
   1.564 +            ],
   1.565 +          },
   1.566 +        }, {
   1.567 +          'direct_dependent_settings': {
   1.568 +            'cflags': [
   1.569 +              '<!@(pkg-config --cflags pangocairo)',
   1.570 +            ],
   1.571 +          },
   1.572 +          'link_settings': {
   1.573 +            'ldflags': [
   1.574 +              '<!@(pkg-config --libs-only-L --libs-only-other pangocairo)',
   1.575 +            ],
   1.576 +            'libraries': [
   1.577 +              '<!@(pkg-config --libs-only-l pangocairo)',
   1.578 +            ],
   1.579 +          },
   1.580 +        }],
   1.581 +      ],
   1.582 +    },
   1.583 +    {
   1.584 +      'target_name': 'libresolv',
   1.585 +      'type': 'none',
   1.586 +      'link_settings': {
   1.587 +        'libraries': [
   1.588 +          '-lresolv',
   1.589 +        ],
   1.590 +      },
   1.591 +    },
   1.592 +    {
   1.593 +      'target_name': 'ibus',
   1.594 +      'type': 'none',
   1.595 +      'conditions': [
   1.596 +        ['use_ibus==1', {
   1.597 +          'variables': {
   1.598 +            'ibus_min_version': '1.3.99.20110425',
   1.599 +          },
   1.600 +          'direct_dependent_settings': {
   1.601 +            'defines': ['HAVE_IBUS=1'],
   1.602 +            'cflags': [
   1.603 +              '<!@(<(pkg-config) --cflags "ibus-1.0 >= <(ibus_min_version)")',
   1.604 +            ],
   1.605 +          },
   1.606 +          'link_settings': {
   1.607 +            'ldflags': [
   1.608 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other "ibus-1.0 >= <(ibus_min_version)")',
   1.609 +            ],
   1.610 +            'libraries': [
   1.611 +              '<!@(<(pkg-config) --libs-only-l "ibus-1.0 >= <(ibus_min_version)")',
   1.612 +            ],
   1.613 +          },
   1.614 +        }],
   1.615 +      ],
   1.616 +    },
   1.617 +    {
   1.618 +      'target_name': 'udev',
   1.619 +      'type': 'none',
   1.620 +      'conditions': [
   1.621 +        # libudev is not available on *BSD
   1.622 +        ['_toolset=="target" and os_bsd!=1', {
   1.623 +          'direct_dependent_settings': {
   1.624 +            'cflags': [
   1.625 +              '<!@(<(pkg-config) --cflags libudev)'
   1.626 +            ],
   1.627 +          },
   1.628 +          'link_settings': {
   1.629 +            'ldflags': [
   1.630 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other libudev)',
   1.631 +            ],
   1.632 +            'libraries': [
   1.633 +              '<!@(<(pkg-config) --libs-only-l libudev)',
   1.634 +            ],
   1.635 +          },
   1.636 +        }],
   1.637 +      ],
   1.638 +    },
   1.639 +  ],
   1.640 +}

mercurial