2020-07-07 21:17:58 +01:00
|
|
|
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
|
2022-08-19 21:06:25 +01:00
|
|
|
index 98c9ddb..0cc2bff 100644
|
2020-07-07 21:17:58 +01:00
|
|
|
--- a/platform/x11/detect.py
|
2018-03-19 14:51:18 +00:00
|
|
|
+++ b/platform/x11/detect.py
|
2022-08-19 21:06:25 +01:00
|
|
|
@@ -255,6 +255,10 @@ def configure(env):
|
2020-07-07 21:17:58 +01:00
|
|
|
env.ParseConfig("pkg-config xrender --cflags --libs")
|
|
|
|
env.ParseConfig("pkg-config xi --cflags --libs")
|
2022-08-19 21:06:25 +01:00
|
|
|
|
2020-07-07 21:17:58 +01:00
|
|
|
+ env.ParseConfig("pkg-config xfixes --cflags --libs")
|
|
|
|
+ env.ParseConfig("pkg-config glu --cflags --libs")
|
|
|
|
+ env.ParseConfig("pkg-config zlib --cflags --libs")
|
2019-03-21 10:08:54 +00:00
|
|
|
+
|
2020-07-07 21:17:58 +01:00
|
|
|
if env["touch"]:
|
|
|
|
env.Append(CPPDEFINES=["TOUCH_ENABLED"])
|
2022-08-19 21:06:25 +01:00
|
|
|
|
|
|
|
@@ -359,7 +363,7 @@ def configure(env):
|
|
|
|
if os.system("pkg-config --exists alsa") == 0: # 0 means found
|
2021-05-30 03:17:22 +01:00
|
|
|
env["alsa"] = True
|
2020-07-07 21:17:58 +01:00
|
|
|
env.Append(CPPDEFINES=["ALSA_ENABLED", "ALSAMIDI_ENABLED"])
|
2022-08-19 21:06:25 +01:00
|
|
|
- env.ParseConfig("pkg-config alsa --cflags") # Only cflags, we dlopen the library.
|
2020-07-07 21:17:58 +01:00
|
|
|
+ env.ParseConfig("pkg-config alsa --cflags --libs")
|
2019-03-21 10:08:54 +00:00
|
|
|
else:
|
2022-08-19 21:06:25 +01:00
|
|
|
print("Warning: ALSA libraries not found. Disabling the ALSA audio driver.")
|
|
|
|
|
|
|
|
@@ -375,7 +379,7 @@ def configure(env):
|
|
|
|
if env["udev"]:
|
2021-05-30 03:17:22 +01:00
|
|
|
if os.system("pkg-config --exists libudev") == 0: # 0 means found
|
|
|
|
env.Append(CPPDEFINES=["UDEV_ENABLED"])
|
2022-08-19 21:06:25 +01:00
|
|
|
- env.ParseConfig("pkg-config libudev --cflags") # Only cflags, we dlopen the library.
|
2021-05-30 03:17:22 +01:00
|
|
|
+ env.ParseConfig("pkg-config libudev --cflags --libs")
|
|
|
|
else:
|
2022-08-19 21:06:25 +01:00
|
|
|
print("Warning: libudev development libraries not found. Disabling controller hotplugging support.")
|
2021-05-30 03:17:22 +01:00
|
|
|
else:
|