2020-07-07 21:17:58 +01:00
|
|
|
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
|
2021-05-30 03:17:22 +01:00
|
|
|
index 91652aad55..d12389f9f2 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
|
2021-05-30 03:17:22 +01:00
|
|
|
@@ -218,6 +218,11 @@ 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")
|
2021-05-30 03:17:22 +01:00
|
|
|
|
2020-07-07 21:17:58 +01:00
|
|
|
+ env.ParseConfig("pkg-config xext --cflags --libs")
|
|
|
|
+ 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"])
|
2021-05-30 03:17:22 +01:00
|
|
|
|
|
|
|
@@ -323,6 +328,7 @@ def configure(env):
|
2019-03-21 10:08:54 +00:00
|
|
|
print("Enabling ALSA")
|
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"])
|
|
|
|
+ env.ParseConfig("pkg-config alsa --cflags --libs")
|
2019-03-21 10:08:54 +00:00
|
|
|
else:
|
|
|
|
print("ALSA libraries not found, disabling driver")
|
2021-05-30 03:17:22 +01:00
|
|
|
|
|
|
|
@@ -340,6 +346,7 @@ def configure(env):
|
|
|
|
if os.system("pkg-config --exists libudev") == 0: # 0 means found
|
|
|
|
print("Enabling udev support")
|
|
|
|
env.Append(CPPDEFINES=["UDEV_ENABLED"])
|
|
|
|
+ env.ParseConfig("pkg-config libudev --cflags --libs")
|
|
|
|
else:
|
|
|
|
print("libudev development libraries not found, disabling udev support")
|
|
|
|
else:
|