mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Add a build time check for glew >= 2.0.0
This commit is contained in:
2
setup.py
2
setup.py
@@ -66,6 +66,8 @@ def init_env(debug=False, asan=False):
|
||||
ldflags += shlex.split(os.environ.get('LDFLAGS', ''))
|
||||
|
||||
cflags.append('-pthread')
|
||||
if subprocess.Popen('pkg-config --atleast-version=2 glew'.split()).wait() != 0:
|
||||
raise SystemExit('glew >= 2.0.0 is required')
|
||||
cflags.extend(pkg_config('glew', '--cflags-only-I'))
|
||||
cflags.extend(pkg_config('freetype2', '--cflags-only-I'))
|
||||
cflags.extend(pkg_config('glfw3', '--cflags-only-I'))
|
||||
|
||||
Reference in New Issue
Block a user