Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index c756cd59a814bfcec280d29a2b8c462f565539b6..6984d4f454cb4787610fcc0bf1297f822f5feac4 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -483,6 +483,13 @@ |
'use_nss%': 0, |
}], |
+ # libudev usage. |
+ ['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, |
@@ -807,6 +814,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_glib%': '<(use_glib)', |
@@ -2092,6 +2100,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', |