Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 6f40a2ca91bbf0043c27c863ef8809e55bbb4b12..f19c4888612bc079122ab5f2e883c2c8c1592e11 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -506,6 +506,13 @@ |
'use_nss%': 0, |
}], |
+ # libudev usage. This currently only affects the content layer. |
+ ['OS=="linux"', { |
+ 'use_udev%': 1, |
+ }, { |
+ 'use_udev%': 0, |
+ }], |
+ |
# Flags to use X11 on non-Mac POSIX platforms. |
['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', { |
'use_x11%': 0, |
@@ -848,6 +855,7 @@ |
'use_cras%': '<(use_cras)', |
'use_openssl%': '<(use_openssl)', |
'use_nss%': '<(use_nss)', |
+ 'use_udev%': '<(use_udev)', |
'os_bsd%': '<(os_bsd)', |
'os_posix%': '<(os_posix)', |
'use_dbus%': '<(use_dbus)', |
@@ -2134,6 +2142,9 @@ |
['native_memory_pressure_signals==1', { |
'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'], |
}], |
+ ['use_udev==1', { |
+ 'defines': ['USE_UDEV'], |
+ }], |
['fastbuild!=0', { |
'xcode_settings': { |
'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', |