aboutsummaryrefslogtreecommitdiff
path: root/platform/x11/detect.py
diff options
context:
space:
mode:
authorpunto-2016-01-27 04:32:27 -0300
committerpunto-2016-01-27 04:32:27 -0300
commit93bef9b9b176a58372ac6e765378fce03e65e39a (patch)
tree88abd22b6e7613d01858072d988da07eb210a8af /platform/x11/detect.py
parent1c76e503840870a9bfa164ef990cc2d8bdcd7aac (diff)
parent29353808f0391f78627c43090f1bff882d56f11e (diff)
downloadgodot-93bef9b9b176a58372ac6e765378fce03e65e39a.tar.gz
godot-93bef9b9b176a58372ac6e765378fce03e65e39a.tar.zst
godot-93bef9b9b176a58372ac6e765378fce03e65e39a.zip
Merge pull request #3471 from Hinsbart/remove_libevdev
remove dependancy on libevdev
Diffstat (limited to 'platform/x11/detect.py')
-rw-r--r--platform/x11/detect.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index e035c7299..bb4bf9bd6 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -158,18 +158,14 @@ def configure(env):
if (env["gamepad"]=="yes" and platform.system() == "Linux"):
# pkg-config returns 0 when the lib exists...
found_udev = not os.system("pkg-config --exists libudev")
- found_evdev = not os.system("pkg-config --exists libevdev")
- if (found_udev and found_evdev):
- print("Enabling gamepad support with udev/evdev")
+ if (found_udev):
+ print("Enabling gamepad support with udev")
env.Append(CPPFLAGS=["-DJOYDEV_ENABLED"])
env.ParseConfig('pkg-config libudev --cflags --libs')
- env.ParseConfig('pkg-config libevdev --cflags --libs')
else:
- if (not found_udev):
- print("libudev development libraries not found")
- if (not found_evdev):
- print("libevdev development libraries not found")
+ print("libudev development libraries not found")
+
print("Some libraries are missing for the required gamepad support, aborting!")
print("Install the mentioned libraries or build with 'gamepad=no' to disable gamepad support.")
sys.exit(255)