Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: build/linux/system.gyp

Issue 467983002: Make udev target disappear on linux when use_udev==0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'conditions': [ 7 'conditions': [
8 ['sysroot!=""', { 8 ['sysroot!=""', {
9 'pkg-config': '<(chroot_cmd) ./pkg-config-wrapper "<(sysroot)" "<(target _arch)" "<(system_libdir)"', 9 'pkg-config': '<(chroot_cmd) ./pkg-config-wrapper "<(sysroot)" "<(target _arch)" "<(system_libdir)"',
10 }, { 10 }, {
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 ], 431 ],
432 }, 432 },
433 'link_settings': { 433 'link_settings': {
434 'libraries': [ 434 'libraries': [
435 '<!@(<(pkg-config) --libs-only-l libdrm)', 435 '<!@(<(pkg-config) --libs-only-l libdrm)',
436 ], 436 ],
437 }, 437 },
438 }, 438 },
439 ], 439 ],
440 }], 440 }],
441 ['use_udev==1', {
442 'targets': [
443 {
444 'target_name': 'udev',
445 'type': 'none',
446 'conditions': [
447 ['_toolset=="target"', {
448 'direct_dependent_settings': {
449 'cflags': [
450 '<!@(<(pkg-config) --cflags libudev)'
451 ],
452 },
453 'link_settings': {
454 'ldflags': [
455 '<!@(<(pkg-config) --libs-only-L --libs-only-other libudev)',
456 ],
457 'libraries': [
458 '<!@(<(pkg-config) --libs-only-l libudev)',
459 ],
460 },
461 }],
462 ],
463 },
464 ],
465 }],
441 ], # conditions 466 ], # conditions
442 'targets': [ 467 'targets': [
443 { 468 {
444 'target_name': 'dbus', 469 'target_name': 'dbus',
445 'type': 'none', 470 'type': 'none',
446 'direct_dependent_settings': { 471 'direct_dependent_settings': {
447 'cflags': [ 472 'cflags': [
448 '<!@(<(pkg-config) --cflags dbus-1)', 473 '<!@(<(pkg-config) --cflags dbus-1)',
449 ], 474 ],
450 }, 475 },
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 # There is a broken header guard in /usr/include/nss/secmod.h: 1050 # There is a broken header guard in /usr/include/nss/secmod.h:
1026 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 1051 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
1027 '-Wno-header-guard', 1052 '-Wno-header-guard',
1028 ], 1053 ],
1029 }, 1054 },
1030 }], 1055 }],
1031 ] 1056 ]
1032 }], 1057 }],
1033 ], 1058 ],
1034 }, 1059 },
1035 {
1036 'target_name': 'udev',
1037 'type': 'none',
1038 'conditions': [
1039 # libudev is not available on *BSD
1040 ['_toolset=="target" and os_bsd!=1', {
1041 'direct_dependent_settings': {
1042 'cflags': [
1043 '<!@(<(pkg-config) --cflags libudev)'
1044 ],
1045 },
1046 'link_settings': {
1047 'ldflags': [
1048 '<!@(<(pkg-config) --libs-only-L --libs-only-other libudev)',
1049 ],
1050 'libraries': [
1051 '<!@(<(pkg-config) --libs-only-l libudev)',
1052 ],
1053 },
1054 }],
1055 ],
1056 },
1057 ], 1060 ],
1058 } 1061 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698