Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
michael@0 | 2 | # Use of this source code is governed by a BSD-style license that can be |
michael@0 | 3 | # found in the LICENSE file. |
michael@0 | 4 | |
michael@0 | 5 | { |
michael@0 | 6 | 'variables': { |
michael@0 | 7 | 'conditions': [ |
michael@0 | 8 | ['sysroot!=""', { |
michael@0 | 9 | 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', |
michael@0 | 10 | }, { |
michael@0 | 11 | 'pkg-config': 'pkg-config' |
michael@0 | 12 | }] |
michael@0 | 13 | ], |
michael@0 | 14 | }, |
michael@0 | 15 | 'conditions': [ |
michael@0 | 16 | [ 'os_posix==1 and OS!="mac"', { |
michael@0 | 17 | 'variables': { |
michael@0 | 18 | # We use our own copy of libssl3, although we still need to link against |
michael@0 | 19 | # the rest of NSS. |
michael@0 | 20 | 'use_system_ssl%': 0, |
michael@0 | 21 | }, |
michael@0 | 22 | }, { |
michael@0 | 23 | 'variables': { |
michael@0 | 24 | 'use_system_ssl%': 1, |
michael@0 | 25 | }, |
michael@0 | 26 | }], |
michael@0 | 27 | [ 'chromeos==0', { |
michael@0 | 28 | # Hide GTK and related dependencies for Chrome OS, so they won't get |
michael@0 | 29 | # added back to Chrome OS. Don't try to use GTK on Chrome OS. |
michael@0 | 30 | 'targets': [ |
michael@0 | 31 | { |
michael@0 | 32 | 'target_name': 'gtk', |
michael@0 | 33 | 'type': 'none', |
michael@0 | 34 | 'toolsets': ['host', 'target'], |
michael@0 | 35 | 'variables': { |
michael@0 | 36 | # gtk requires gmodule, but it does not list it as a dependency |
michael@0 | 37 | # in some misconfigured systems. |
michael@0 | 38 | 'gtk_packages': 'gmodule-2.0 gtk+-2.0 gthread-2.0', |
michael@0 | 39 | }, |
michael@0 | 40 | 'conditions': [ |
michael@0 | 41 | ['_toolset=="target"', { |
michael@0 | 42 | 'direct_dependent_settings': { |
michael@0 | 43 | 'cflags': [ |
michael@0 | 44 | '<!@(<(pkg-config) --cflags <(gtk_packages))', |
michael@0 | 45 | ], |
michael@0 | 46 | }, |
michael@0 | 47 | 'link_settings': { |
michael@0 | 48 | 'ldflags': [ |
michael@0 | 49 | '<!@(<(pkg-config) --libs-only-L --libs-only-other <(gtk_packages))', |
michael@0 | 50 | ], |
michael@0 | 51 | 'libraries': [ |
michael@0 | 52 | '<!@(<(pkg-config) --libs-only-l <(gtk_packages))', |
michael@0 | 53 | ], |
michael@0 | 54 | }, |
michael@0 | 55 | }, { |
michael@0 | 56 | 'direct_dependent_settings': { |
michael@0 | 57 | 'cflags': [ |
michael@0 | 58 | '<!@(pkg-config --cflags <(gtk_packages))', |
michael@0 | 59 | ], |
michael@0 | 60 | }, |
michael@0 | 61 | 'link_settings': { |
michael@0 | 62 | 'ldflags': [ |
michael@0 | 63 | '<!@(pkg-config --libs-only-L --libs-only-other <(gtk_packages))', |
michael@0 | 64 | ], |
michael@0 | 65 | 'libraries': [ |
michael@0 | 66 | '<!@(pkg-config --libs-only-l <(gtk_packages))', |
michael@0 | 67 | ], |
michael@0 | 68 | }, |
michael@0 | 69 | }], |
michael@0 | 70 | ], |
michael@0 | 71 | }, |
michael@0 | 72 | { |
michael@0 | 73 | 'target_name': 'gtkprint', |
michael@0 | 74 | 'type': 'none', |
michael@0 | 75 | 'conditions': [ |
michael@0 | 76 | ['_toolset=="target"', { |
michael@0 | 77 | 'direct_dependent_settings': { |
michael@0 | 78 | 'cflags': [ |
michael@0 | 79 | '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)', |
michael@0 | 80 | ], |
michael@0 | 81 | }, |
michael@0 | 82 | 'link_settings': { |
michael@0 | 83 | 'ldflags': [ |
michael@0 | 84 | '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-print-2.0)', |
michael@0 | 85 | ], |
michael@0 | 86 | 'libraries': [ |
michael@0 | 87 | '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)', |
michael@0 | 88 | ], |
michael@0 | 89 | }, |
michael@0 | 90 | }], |
michael@0 | 91 | ], |
michael@0 | 92 | }, |
michael@0 | 93 | { |
michael@0 | 94 | 'target_name': 'gdk', |
michael@0 | 95 | 'type': 'none', |
michael@0 | 96 | 'conditions': [ |
michael@0 | 97 | ['_toolset=="target"', { |
michael@0 | 98 | 'direct_dependent_settings': { |
michael@0 | 99 | 'cflags': [ |
michael@0 | 100 | '<!@(<(pkg-config) --cflags gdk-2.0)', |
michael@0 | 101 | ], |
michael@0 | 102 | }, |
michael@0 | 103 | 'link_settings': { |
michael@0 | 104 | 'ldflags': [ |
michael@0 | 105 | '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)', |
michael@0 | 106 | ], |
michael@0 | 107 | 'libraries': [ |
michael@0 | 108 | '<!@(<(pkg-config) --libs-only-l gdk-2.0)', |
michael@0 | 109 | ], |
michael@0 | 110 | }, |
michael@0 | 111 | }], |
michael@0 | 112 | ], |
michael@0 | 113 | }, |
michael@0 | 114 | ], # targets |
michael@0 | 115 | }, { # chromeos==1 |
michael@0 | 116 | 'targets': [ |
michael@0 | 117 | { |
michael@0 | 118 | # TODO(satorux): Remove this once dbus-glib clients are gone. |
michael@0 | 119 | 'target_name': 'dbus-glib', |
michael@0 | 120 | 'type': 'none', |
michael@0 | 121 | 'direct_dependent_settings': { |
michael@0 | 122 | 'cflags': [ |
michael@0 | 123 | '<!@(<(pkg-config) --cflags dbus-glib-1)', |
michael@0 | 124 | ], |
michael@0 | 125 | }, |
michael@0 | 126 | 'link_settings': { |
michael@0 | 127 | 'ldflags': [ |
michael@0 | 128 | '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-glib-1)', |
michael@0 | 129 | ], |
michael@0 | 130 | 'libraries': [ |
michael@0 | 131 | '<!@(<(pkg-config) --libs-only-l dbus-glib-1)', |
michael@0 | 132 | ], |
michael@0 | 133 | }, |
michael@0 | 134 | }, |
michael@0 | 135 | ], |
michael@0 | 136 | }] |
michael@0 | 137 | ], # conditions |
michael@0 | 138 | 'targets': [ |
michael@0 | 139 | { |
michael@0 | 140 | 'target_name': 'ssl', |
michael@0 | 141 | 'type': 'none', |
michael@0 | 142 | 'conditions': [ |
michael@0 | 143 | ['_toolset=="target"', { |
michael@0 | 144 | 'conditions': [ |
michael@0 | 145 | ['use_openssl==1', { |
michael@0 | 146 | 'dependencies': [ |
michael@0 | 147 | '../../third_party/openssl/openssl.gyp:openssl', |
michael@0 | 148 | ], |
michael@0 | 149 | }], |
michael@0 | 150 | ['use_openssl==0 and use_system_ssl==0', { |
michael@0 | 151 | 'dependencies': [ |
michael@0 | 152 | '../../net/third_party/nss/ssl.gyp:libssl', |
michael@0 | 153 | '../../third_party/zlib/zlib.gyp:zlib', |
michael@0 | 154 | ], |
michael@0 | 155 | 'direct_dependent_settings': { |
michael@0 | 156 | 'include_dirs+': [ |
michael@0 | 157 | # We need for our local copies of the libssl3 headers to come |
michael@0 | 158 | # before other includes, as we are shadowing system headers. |
michael@0 | 159 | '<(DEPTH)/net/third_party/nss/ssl', |
michael@0 | 160 | ], |
michael@0 | 161 | 'cflags': [ |
michael@0 | 162 | '<!@(<(pkg-config) --cflags nss)', |
michael@0 | 163 | ], |
michael@0 | 164 | }, |
michael@0 | 165 | 'link_settings': { |
michael@0 | 166 | 'ldflags': [ |
michael@0 | 167 | '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', |
michael@0 | 168 | ], |
michael@0 | 169 | 'libraries': [ |
michael@0 | 170 | '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', |
michael@0 | 171 | ], |
michael@0 | 172 | }, |
michael@0 | 173 | }], |
michael@0 | 174 | ['use_openssl==0 and use_system_ssl==1', { |
michael@0 | 175 | 'direct_dependent_settings': { |
michael@0 | 176 | 'cflags': [ |
michael@0 | 177 | '<!@(<(pkg-config) --cflags nss)', |
michael@0 | 178 | ], |
michael@0 | 179 | 'defines': [ |
michael@0 | 180 | 'USE_SYSTEM_SSL', |
michael@0 | 181 | ], |
michael@0 | 182 | }, |
michael@0 | 183 | 'link_settings': { |
michael@0 | 184 | 'ldflags': [ |
michael@0 | 185 | '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', |
michael@0 | 186 | ], |
michael@0 | 187 | 'libraries': [ |
michael@0 | 188 | '<!@(<(pkg-config) --libs-only-l nss)', |
michael@0 | 189 | ], |
michael@0 | 190 | }, |
michael@0 | 191 | }], |
michael@0 | 192 | ] |
michael@0 | 193 | }], |
michael@0 | 194 | ], |
michael@0 | 195 | }, |
michael@0 | 196 | { |
michael@0 | 197 | 'target_name': 'freetype2', |
michael@0 | 198 | 'type': 'none', |
michael@0 | 199 | 'conditions': [ |
michael@0 | 200 | ['_toolset=="target"', { |
michael@0 | 201 | 'direct_dependent_settings': { |
michael@0 | 202 | 'cflags': [ |
michael@0 | 203 | '<!@(<(pkg-config) --cflags freetype2)', |
michael@0 | 204 | ], |
michael@0 | 205 | }, |
michael@0 | 206 | 'link_settings': { |
michael@0 | 207 | 'ldflags': [ |
michael@0 | 208 | '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)', |
michael@0 | 209 | ], |
michael@0 | 210 | 'libraries': [ |
michael@0 | 211 | '<!@(<(pkg-config) --libs-only-l freetype2)', |
michael@0 | 212 | ], |
michael@0 | 213 | }, |
michael@0 | 214 | }], |
michael@0 | 215 | ], |
michael@0 | 216 | }, |
michael@0 | 217 | { |
michael@0 | 218 | 'target_name': 'fontconfig', |
michael@0 | 219 | 'type': 'none', |
michael@0 | 220 | 'conditions': [ |
michael@0 | 221 | ['_toolset=="target"', { |
michael@0 | 222 | 'direct_dependent_settings': { |
michael@0 | 223 | 'cflags': [ |
michael@0 | 224 | '<!@(<(pkg-config) --cflags fontconfig)', |
michael@0 | 225 | ], |
michael@0 | 226 | }, |
michael@0 | 227 | 'link_settings': { |
michael@0 | 228 | 'ldflags': [ |
michael@0 | 229 | '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)', |
michael@0 | 230 | ], |
michael@0 | 231 | 'libraries': [ |
michael@0 | 232 | '<!@(<(pkg-config) --libs-only-l fontconfig)', |
michael@0 | 233 | ], |
michael@0 | 234 | }, |
michael@0 | 235 | }], |
michael@0 | 236 | ], |
michael@0 | 237 | }, |
michael@0 | 238 | { |
michael@0 | 239 | 'target_name': 'gconf', |
michael@0 | 240 | 'type': 'none', |
michael@0 | 241 | 'conditions': [ |
michael@0 | 242 | ['use_gconf==1 and _toolset=="target"', { |
michael@0 | 243 | 'direct_dependent_settings': { |
michael@0 | 244 | 'cflags': [ |
michael@0 | 245 | '<!@(<(pkg-config) --cflags gconf-2.0)', |
michael@0 | 246 | ], |
michael@0 | 247 | 'defines': [ |
michael@0 | 248 | 'USE_GCONF', |
michael@0 | 249 | ], |
michael@0 | 250 | }, |
michael@0 | 251 | 'link_settings': { |
michael@0 | 252 | 'ldflags': [ |
michael@0 | 253 | '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)', |
michael@0 | 254 | ], |
michael@0 | 255 | 'libraries': [ |
michael@0 | 256 | '<!@(<(pkg-config) --libs-only-l gconf-2.0)', |
michael@0 | 257 | ], |
michael@0 | 258 | }, |
michael@0 | 259 | }], |
michael@0 | 260 | ], |
michael@0 | 261 | }, |
michael@0 | 262 | { |
michael@0 | 263 | 'target_name': 'gio', |
michael@0 | 264 | 'type': 'none', |
michael@0 | 265 | 'conditions': [ |
michael@0 | 266 | ['use_gio==1 and _toolset=="target"', { |
michael@0 | 267 | 'direct_dependent_settings': { |
michael@0 | 268 | 'cflags': [ |
michael@0 | 269 | '<!@(<(pkg-config) --cflags gio-2.0)', |
michael@0 | 270 | ], |
michael@0 | 271 | 'defines': [ |
michael@0 | 272 | 'USE_GIO', |
michael@0 | 273 | ], |
michael@0 | 274 | 'conditions': [ |
michael@0 | 275 | ['linux_link_gsettings==0', { |
michael@0 | 276 | 'defines': ['DLOPEN_GSETTINGS'], |
michael@0 | 277 | }], |
michael@0 | 278 | ], |
michael@0 | 279 | }, |
michael@0 | 280 | 'link_settings': { |
michael@0 | 281 | 'ldflags': [ |
michael@0 | 282 | '<!@(<(pkg-config) --libs-only-L --libs-only-other gio-2.0)', |
michael@0 | 283 | ], |
michael@0 | 284 | 'libraries': [ |
michael@0 | 285 | '<!@(<(pkg-config) --libs-only-l gio-2.0)', |
michael@0 | 286 | ], |
michael@0 | 287 | 'conditions': [ |
michael@0 | 288 | ['linux_link_gsettings==0 and OS=="linux"', { |
michael@0 | 289 | 'libraries': [ |
michael@0 | 290 | '-ldl', |
michael@0 | 291 | ], |
michael@0 | 292 | }], |
michael@0 | 293 | ], |
michael@0 | 294 | }, |
michael@0 | 295 | }], |
michael@0 | 296 | ], |
michael@0 | 297 | }, |
michael@0 | 298 | { |
michael@0 | 299 | 'target_name': 'x11', |
michael@0 | 300 | 'type': 'none', |
michael@0 | 301 | 'toolsets': ['host', 'target'], |
michael@0 | 302 | 'conditions': [ |
michael@0 | 303 | ['_toolset=="target"', { |
michael@0 | 304 | 'direct_dependent_settings': { |
michael@0 | 305 | 'cflags': [ |
michael@0 | 306 | '<!@(<(pkg-config) --cflags x11)', |
michael@0 | 307 | ], |
michael@0 | 308 | }, |
michael@0 | 309 | 'link_settings': { |
michael@0 | 310 | 'ldflags': [ |
michael@0 | 311 | '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', |
michael@0 | 312 | ], |
michael@0 | 313 | 'libraries': [ |
michael@0 | 314 | '<!@(<(pkg-config) --libs-only-l x11 xi)', |
michael@0 | 315 | ], |
michael@0 | 316 | }, |
michael@0 | 317 | }, { |
michael@0 | 318 | 'direct_dependent_settings': { |
michael@0 | 319 | 'cflags': [ |
michael@0 | 320 | '<!@(pkg-config --cflags x11)', |
michael@0 | 321 | ], |
michael@0 | 322 | }, |
michael@0 | 323 | 'link_settings': { |
michael@0 | 324 | 'ldflags': [ |
michael@0 | 325 | '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)', |
michael@0 | 326 | ], |
michael@0 | 327 | 'libraries': [ |
michael@0 | 328 | '<!@(pkg-config --libs-only-l x11 xi)', |
michael@0 | 329 | ], |
michael@0 | 330 | }, |
michael@0 | 331 | }], |
michael@0 | 332 | ], |
michael@0 | 333 | }, |
michael@0 | 334 | { |
michael@0 | 335 | 'target_name': 'xext', |
michael@0 | 336 | 'type': 'none', |
michael@0 | 337 | 'conditions': [ |
michael@0 | 338 | ['_toolset=="target"', { |
michael@0 | 339 | 'direct_dependent_settings': { |
michael@0 | 340 | 'cflags': [ |
michael@0 | 341 | '<!@(<(pkg-config) --cflags xext)', |
michael@0 | 342 | ], |
michael@0 | 343 | }, |
michael@0 | 344 | 'link_settings': { |
michael@0 | 345 | 'ldflags': [ |
michael@0 | 346 | '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)', |
michael@0 | 347 | ], |
michael@0 | 348 | 'libraries': [ |
michael@0 | 349 | '<!@(<(pkg-config) --libs-only-l xext)', |
michael@0 | 350 | ], |
michael@0 | 351 | }, |
michael@0 | 352 | }], |
michael@0 | 353 | ], |
michael@0 | 354 | }, |
michael@0 | 355 | { |
michael@0 | 356 | 'target_name': 'xfixes', |
michael@0 | 357 | 'type': 'none', |
michael@0 | 358 | 'conditions': [ |
michael@0 | 359 | ['_toolset=="target"', { |
michael@0 | 360 | 'direct_dependent_settings': { |
michael@0 | 361 | 'cflags': [ |
michael@0 | 362 | '<!@(<(pkg-config) --cflags xfixes)', |
michael@0 | 363 | ], |
michael@0 | 364 | }, |
michael@0 | 365 | 'link_settings': { |
michael@0 | 366 | 'ldflags': [ |
michael@0 | 367 | '<!@(<(pkg-config) --libs-only-L --libs-only-other xfixes)', |
michael@0 | 368 | ], |
michael@0 | 369 | 'libraries': [ |
michael@0 | 370 | '<!@(<(pkg-config) --libs-only-l xfixes)', |
michael@0 | 371 | ], |
michael@0 | 372 | }, |
michael@0 | 373 | }], |
michael@0 | 374 | ], |
michael@0 | 375 | }, |
michael@0 | 376 | { |
michael@0 | 377 | 'target_name': 'libgcrypt', |
michael@0 | 378 | 'type': 'none', |
michael@0 | 379 | 'conditions': [ |
michael@0 | 380 | ['_toolset=="target" and use_cups==1', { |
michael@0 | 381 | 'direct_dependent_settings': { |
michael@0 | 382 | 'cflags': [ |
michael@0 | 383 | '<!@(libgcrypt-config --cflags)', |
michael@0 | 384 | ], |
michael@0 | 385 | }, |
michael@0 | 386 | 'link_settings': { |
michael@0 | 387 | 'libraries': [ |
michael@0 | 388 | '<!@(libgcrypt-config --libs)', |
michael@0 | 389 | ], |
michael@0 | 390 | }, |
michael@0 | 391 | }], |
michael@0 | 392 | ], |
michael@0 | 393 | }, |
michael@0 | 394 | { |
michael@0 | 395 | 'target_name': 'selinux', |
michael@0 | 396 | 'type': 'none', |
michael@0 | 397 | 'conditions': [ |
michael@0 | 398 | ['_toolset=="target"', { |
michael@0 | 399 | 'link_settings': { |
michael@0 | 400 | 'libraries': [ |
michael@0 | 401 | '-lselinux', |
michael@0 | 402 | ], |
michael@0 | 403 | }, |
michael@0 | 404 | }], |
michael@0 | 405 | ], |
michael@0 | 406 | }, |
michael@0 | 407 | { |
michael@0 | 408 | 'target_name': 'gnome_keyring', |
michael@0 | 409 | 'type': 'none', |
michael@0 | 410 | 'conditions': [ |
michael@0 | 411 | ['use_gnome_keyring==1', { |
michael@0 | 412 | 'direct_dependent_settings': { |
michael@0 | 413 | 'cflags': [ |
michael@0 | 414 | '<!@(<(pkg-config) --cflags gnome-keyring-1)', |
michael@0 | 415 | ], |
michael@0 | 416 | 'defines': [ |
michael@0 | 417 | 'USE_GNOME_KEYRING', |
michael@0 | 418 | ], |
michael@0 | 419 | 'conditions': [ |
michael@0 | 420 | ['linux_link_gnome_keyring==0', { |
michael@0 | 421 | 'defines': ['DLOPEN_GNOME_KEYRING'], |
michael@0 | 422 | }], |
michael@0 | 423 | ], |
michael@0 | 424 | }, |
michael@0 | 425 | 'conditions': [ |
michael@0 | 426 | ['linux_link_gnome_keyring!=0', { |
michael@0 | 427 | 'link_settings': { |
michael@0 | 428 | 'ldflags': [ |
michael@0 | 429 | '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)', |
michael@0 | 430 | ], |
michael@0 | 431 | 'libraries': [ |
michael@0 | 432 | '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)', |
michael@0 | 433 | ], |
michael@0 | 434 | }, |
michael@0 | 435 | }, { |
michael@0 | 436 | 'conditions': [ |
michael@0 | 437 | ['OS=="linux"', { |
michael@0 | 438 | 'link_settings': { |
michael@0 | 439 | 'libraries': [ |
michael@0 | 440 | '-ldl', |
michael@0 | 441 | ], |
michael@0 | 442 | }, |
michael@0 | 443 | }], |
michael@0 | 444 | ], |
michael@0 | 445 | }], |
michael@0 | 446 | ], |
michael@0 | 447 | }], |
michael@0 | 448 | ], |
michael@0 | 449 | }, |
michael@0 | 450 | { |
michael@0 | 451 | # The unit tests use a few convenience functions from the GNOME |
michael@0 | 452 | # Keyring library directly. We ignore linux_link_gnome_keyring and |
michael@0 | 453 | # link directly in this version of the target to allow this. |
michael@0 | 454 | # *** Do not use this target in the main binary! *** |
michael@0 | 455 | 'target_name': 'gnome_keyring_direct', |
michael@0 | 456 | 'type': 'none', |
michael@0 | 457 | 'conditions': [ |
michael@0 | 458 | ['use_gnome_keyring==1', { |
michael@0 | 459 | 'direct_dependent_settings': { |
michael@0 | 460 | 'cflags': [ |
michael@0 | 461 | '<!@(<(pkg-config) --cflags gnome-keyring-1)', |
michael@0 | 462 | ], |
michael@0 | 463 | 'defines': [ |
michael@0 | 464 | 'USE_GNOME_KEYRING', |
michael@0 | 465 | ], |
michael@0 | 466 | 'conditions': [ |
michael@0 | 467 | ['linux_link_gnome_keyring==0', { |
michael@0 | 468 | 'defines': ['DLOPEN_GNOME_KEYRING'], |
michael@0 | 469 | }], |
michael@0 | 470 | ], |
michael@0 | 471 | }, |
michael@0 | 472 | 'link_settings': { |
michael@0 | 473 | 'ldflags': [ |
michael@0 | 474 | '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)', |
michael@0 | 475 | ], |
michael@0 | 476 | 'libraries': [ |
michael@0 | 477 | '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)', |
michael@0 | 478 | ], |
michael@0 | 479 | }, |
michael@0 | 480 | }], |
michael@0 | 481 | ], |
michael@0 | 482 | }, |
michael@0 | 483 | { |
michael@0 | 484 | 'target_name': 'dbus', |
michael@0 | 485 | 'type': 'none', |
michael@0 | 486 | 'direct_dependent_settings': { |
michael@0 | 487 | 'cflags': [ |
michael@0 | 488 | '<!@(<(pkg-config) --cflags dbus-1)', |
michael@0 | 489 | ], |
michael@0 | 490 | }, |
michael@0 | 491 | 'link_settings': { |
michael@0 | 492 | 'ldflags': [ |
michael@0 | 493 | '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-1)', |
michael@0 | 494 | ], |
michael@0 | 495 | 'libraries': [ |
michael@0 | 496 | '<!@(<(pkg-config) --libs-only-l dbus-1)', |
michael@0 | 497 | ], |
michael@0 | 498 | }, |
michael@0 | 499 | }, |
michael@0 | 500 | { |
michael@0 | 501 | 'target_name': 'glib', |
michael@0 | 502 | 'type': 'none', |
michael@0 | 503 | 'toolsets': ['host', 'target'], |
michael@0 | 504 | 'variables': { |
michael@0 | 505 | 'glib_packages': 'glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0', |
michael@0 | 506 | }, |
michael@0 | 507 | 'conditions': [ |
michael@0 | 508 | ['_toolset=="target"', { |
michael@0 | 509 | 'direct_dependent_settings': { |
michael@0 | 510 | 'cflags': [ |
michael@0 | 511 | '<!@(<(pkg-config) --cflags <(glib_packages))', |
michael@0 | 512 | ], |
michael@0 | 513 | }, |
michael@0 | 514 | 'link_settings': { |
michael@0 | 515 | 'ldflags': [ |
michael@0 | 516 | '<!@(<(pkg-config) --libs-only-L --libs-only-other <(glib_packages))', |
michael@0 | 517 | ], |
michael@0 | 518 | 'libraries': [ |
michael@0 | 519 | '<!@(<(pkg-config) --libs-only-l <(glib_packages))', |
michael@0 | 520 | ], |
michael@0 | 521 | }, |
michael@0 | 522 | }, { |
michael@0 | 523 | 'direct_dependent_settings': { |
michael@0 | 524 | 'cflags': [ |
michael@0 | 525 | '<!@(pkg-config --cflags <(glib_packages))', |
michael@0 | 526 | ], |
michael@0 | 527 | }, |
michael@0 | 528 | 'link_settings': { |
michael@0 | 529 | 'ldflags': [ |
michael@0 | 530 | '<!@(pkg-config --libs-only-L --libs-only-other <(glib_packages))', |
michael@0 | 531 | ], |
michael@0 | 532 | 'libraries': [ |
michael@0 | 533 | '<!@(pkg-config --libs-only-l <(glib_packages))', |
michael@0 | 534 | ], |
michael@0 | 535 | }, |
michael@0 | 536 | }], |
michael@0 | 537 | ['chromeos==1', { |
michael@0 | 538 | 'link_settings': { |
michael@0 | 539 | 'libraries': [ '-lXtst' ] |
michael@0 | 540 | } |
michael@0 | 541 | }], |
michael@0 | 542 | ], |
michael@0 | 543 | }, |
michael@0 | 544 | { |
michael@0 | 545 | 'target_name': 'pangocairo', |
michael@0 | 546 | 'type': 'none', |
michael@0 | 547 | 'toolsets': ['host', 'target'], |
michael@0 | 548 | 'conditions': [ |
michael@0 | 549 | ['_toolset=="target"', { |
michael@0 | 550 | 'direct_dependent_settings': { |
michael@0 | 551 | 'cflags': [ |
michael@0 | 552 | '<!@(<(pkg-config) --cflags pangocairo)', |
michael@0 | 553 | ], |
michael@0 | 554 | }, |
michael@0 | 555 | 'link_settings': { |
michael@0 | 556 | 'ldflags': [ |
michael@0 | 557 | '<!@(<(pkg-config) --libs-only-L --libs-only-other pangocairo)', |
michael@0 | 558 | ], |
michael@0 | 559 | 'libraries': [ |
michael@0 | 560 | '<!@(<(pkg-config) --libs-only-l pangocairo)', |
michael@0 | 561 | ], |
michael@0 | 562 | }, |
michael@0 | 563 | }, { |
michael@0 | 564 | 'direct_dependent_settings': { |
michael@0 | 565 | 'cflags': [ |
michael@0 | 566 | '<!@(pkg-config --cflags pangocairo)', |
michael@0 | 567 | ], |
michael@0 | 568 | }, |
michael@0 | 569 | 'link_settings': { |
michael@0 | 570 | 'ldflags': [ |
michael@0 | 571 | '<!@(pkg-config --libs-only-L --libs-only-other pangocairo)', |
michael@0 | 572 | ], |
michael@0 | 573 | 'libraries': [ |
michael@0 | 574 | '<!@(pkg-config --libs-only-l pangocairo)', |
michael@0 | 575 | ], |
michael@0 | 576 | }, |
michael@0 | 577 | }], |
michael@0 | 578 | ], |
michael@0 | 579 | }, |
michael@0 | 580 | { |
michael@0 | 581 | 'target_name': 'libresolv', |
michael@0 | 582 | 'type': 'none', |
michael@0 | 583 | 'link_settings': { |
michael@0 | 584 | 'libraries': [ |
michael@0 | 585 | '-lresolv', |
michael@0 | 586 | ], |
michael@0 | 587 | }, |
michael@0 | 588 | }, |
michael@0 | 589 | { |
michael@0 | 590 | 'target_name': 'ibus', |
michael@0 | 591 | 'type': 'none', |
michael@0 | 592 | 'conditions': [ |
michael@0 | 593 | ['use_ibus==1', { |
michael@0 | 594 | 'variables': { |
michael@0 | 595 | 'ibus_min_version': '1.3.99.20110425', |
michael@0 | 596 | }, |
michael@0 | 597 | 'direct_dependent_settings': { |
michael@0 | 598 | 'defines': ['HAVE_IBUS=1'], |
michael@0 | 599 | 'cflags': [ |
michael@0 | 600 | '<!@(<(pkg-config) --cflags "ibus-1.0 >= <(ibus_min_version)")', |
michael@0 | 601 | ], |
michael@0 | 602 | }, |
michael@0 | 603 | 'link_settings': { |
michael@0 | 604 | 'ldflags': [ |
michael@0 | 605 | '<!@(<(pkg-config) --libs-only-L --libs-only-other "ibus-1.0 >= <(ibus_min_version)")', |
michael@0 | 606 | ], |
michael@0 | 607 | 'libraries': [ |
michael@0 | 608 | '<!@(<(pkg-config) --libs-only-l "ibus-1.0 >= <(ibus_min_version)")', |
michael@0 | 609 | ], |
michael@0 | 610 | }, |
michael@0 | 611 | }], |
michael@0 | 612 | ], |
michael@0 | 613 | }, |
michael@0 | 614 | { |
michael@0 | 615 | 'target_name': 'udev', |
michael@0 | 616 | 'type': 'none', |
michael@0 | 617 | 'conditions': [ |
michael@0 | 618 | # libudev is not available on *BSD |
michael@0 | 619 | ['_toolset=="target" and os_bsd!=1', { |
michael@0 | 620 | 'direct_dependent_settings': { |
michael@0 | 621 | 'cflags': [ |
michael@0 | 622 | '<!@(<(pkg-config) --cflags libudev)' |
michael@0 | 623 | ], |
michael@0 | 624 | }, |
michael@0 | 625 | 'link_settings': { |
michael@0 | 626 | 'ldflags': [ |
michael@0 | 627 | '<!@(<(pkg-config) --libs-only-L --libs-only-other libudev)', |
michael@0 | 628 | ], |
michael@0 | 629 | 'libraries': [ |
michael@0 | 630 | '<!@(<(pkg-config) --libs-only-l libudev)', |
michael@0 | 631 | ], |
michael@0 | 632 | }, |
michael@0 | 633 | }], |
michael@0 | 634 | ], |
michael@0 | 635 | }, |
michael@0 | 636 | ], |
michael@0 | 637 | } |