diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-01-13 15:16:11 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2018-01-13 15:16:22 +0100 |
commit | e141845bfb3e12a9213c8682d5b2589ce5305f70 (patch) | |
tree | 25f7f08bd8e667a023583dfd6d13a9a83e9b8f5c /platform/x11 | |
parent | af9c2f8b9c7ab85af386e8482f6e92b20e40905f (diff) |
SCons: Allow unbundling bullet on Linux (only 2.87+)
Diffstat (limited to 'platform/x11')
-rw-r--r-- | platform/x11/detect.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 478b42f9f7..1c6bada815 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -172,6 +172,16 @@ def configure(env): if not env['builtin_libpng']: env.ParseConfig('pkg-config libpng --cflags --libs') + if not env['builtin_bullet']: + # We need at least version 2.87 + import subprocess + bullet_version = subprocess.check_output(['pkg-config', 'bullet', '--modversion']).strip() + if bullet_version < "2.87": + # Abort as system bullet was requested but too old + print("Bullet: System version {0} does not match minimal requirements ({1}). Aborting.".format(bullet_version, "2.87")) + sys.exit(255) + env.ParseConfig('pkg-config bullet --cflags --libs') + if not env['builtin_enet']: env.ParseConfig('pkg-config libenet --cflags --libs') |