diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-02-13 09:26:57 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-02-15 14:09:01 +0000 |
commit | 89f9aa044fbca703670cbaa037716112c7f7fefb (patch) | |
tree | eff06351db13c28bdec6a9160f10eb0e28b121b8 /src | |
parent | b5d921ae4569d39e10199e25a487bd8a23edd750 (diff) | |
download | libepoxy-89f9aa044fbca703670cbaa037716112c7f7fefb.tar.gz |
Remove the shebang from gen_dispatch.py
Instead of having Meson determine the invocator through the shebang
line we explicitly pass the script file to the Python interpreter.
This will allow us to either use Python3 or Python2, or whatever
Python.exe is available on Windows.
Diffstat (limited to 'src')
-rw-r--r--[-rwxr-xr-x] | src/gen_dispatch.py | 1 | ||||
-rw-r--r-- | src/meson.build | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gen_dispatch.py b/src/gen_dispatch.py index 6efa4d6..306a83b 100755..100644 --- a/src/gen_dispatch.py +++ b/src/gen_dispatch.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright © 2013 Intel Corporation diff --git a/src/meson.build b/src/meson.build index 596dbe5..fced355 100644 --- a/src/meson.build +++ b/src/meson.build @@ -12,6 +12,7 @@ gl_generated = custom_target('gl_generated_dispatch.c', 'gl_generated_dispatch.c', ], command: [ + python, gen_dispatch_py, '--source', '--no-header', @@ -29,6 +30,7 @@ if build_egl 'egl_generated_dispatch.c', ], command: [ + python, gen_dispatch_py, '--source', '--no-header', @@ -46,6 +48,7 @@ if build_glx 'glx_generated_dispatch.c', ], command: [ + python, gen_dispatch_py, '--source', '--no-header', @@ -63,6 +66,7 @@ if build_wgl 'wgl_generated_dispatch.c', ], command: [ + python, gen_dispatch_py, '--source', '--no-header', |