Chromium Code Reviews

Unified Diff: content/content_browser.gypi

Issue 12374068: Make it possible to disable udev in linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix jam's nits Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: content/content_browser.gypi
diff --git a/content/content_browser.gypi b/content/content_browser.gypi
index 1fc3c688523d5facc9631a1491f19083326aca08..069db523b63875f6ebce2b15e73078e333e1e35d 100644
--- a/content/content_browser.gypi
+++ b/content/content_browser.gypi
@@ -1242,7 +1242,7 @@
'../ui/events/events.gyp:events',
],
}],
- ['OS!="win" and OS!="mac" and OS!="linux"', {
+ ['OS!="linux" or use_udev==0', {
'sources': [
'browser/gamepad/gamepad_platform_data_fetcher.cc',
]
@@ -1397,10 +1397,22 @@
}],
['OS=="linux"', {
'dependencies': [
- '../build/linux/system.gyp:udev',
'../sandbox/sandbox.gyp:libc_urandom_override',
],
}],
+ ['use_udev == 1', {
+ 'dependencies': [
+ '../build/linux/system.gyp:udev',
+ ],
+ }, {
+ 'sources!': [
+ 'browser/device_monitor_linux.cc',
+ 'browser/device_monitor_linux.h',
+ 'browser/gamepad/gamepad_platform_data_fetcher_linux.cc',
+ 'browser/udev_linux.cc',
+ 'browser/udev_linux.h',
+ ],
+ }],
['OS=="linux" and use_aura==1', {
'dependencies': [
'../build/linux/system.gyp:dbus',

Powered by Google App Engine