diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-12-21 10:37:26 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-12-21 10:37:26 -0300 |
commit | 46dee92c8eb2eed4ed72e0b79670889eca5e1896 (patch) | |
tree | 4f4218f3f090d0c07843c8e60390937ea4c2d736 /platform/x11/detect.py | |
parent | 3fe740dac6404c3e1dbbca887daddc59c8da549b (diff) |
-fixed build system to use pkg-config for evdev
Diffstat (limited to 'platform/x11/detect.py')
-rw-r--r-- | platform/x11/detect.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index a4b8f835e8..c93905ed3c 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -45,7 +45,11 @@ def can_build(): print("xinerama not found.. x11 disabled.") return False - + x11_error=os.system("pkg-config libevdev --modversion > /dev/null ") + if (x11_error): + print("evdev not found.. x11 disabled.") + return False + return True # X11 enabled def get_opts(): @@ -129,6 +133,7 @@ def configure(env): env.ParseConfig('pkg-config x11 --cflags --libs') env.ParseConfig('pkg-config xinerama --cflags --libs') env.ParseConfig('pkg-config xcursor --cflags --libs') + env.ParseConfig('pkg-config libevdev --cflags --libs') if (env["openssl"]=="yes"): env.ParseConfig('pkg-config openssl --cflags --libs') @@ -150,7 +155,7 @@ def configure(env): env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED']) if platform.system() == 'Linux': env.Append(CPPFLAGS=["-DALSA_ENABLED"]) - env.Append(LIBS=['asound', 'evdev', 'udev']) + env.Append(LIBS=['asound', 'udev']) if (env["pulseaudio"]=="yes"): if not os.system("pkg-config --exists libpulse-simple"): |