Note: `find_program()` needs a shebang on scripts.
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
+#!/usr/bin/env python3
# encoding=utf-8
-# Copyright © 2017-2018 Intel Corporation
+# Copyright 2017-2018 Intel Corporation
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
git_sha1_gen_py = files('git_sha1_gen.py')
symbols_check = find_program('symbols-check.py')
+install_megadrivers_py = find_program('install_megadrivers.py')
endforeach
meson.add_install_script(
- prog_python.path(),
- join_paths(meson.source_root(), 'bin/install_megadrivers.py'),
+ install_megadrivers_py.path(),
libgallium_dri.full_path(),
dri_drivers_path,
gallium_dri_drivers,
endforeach
meson.add_install_script(
- prog_python.path(),
- join_paths(meson.source_root(), 'bin/install_megadrivers.py'),
+ install_megadrivers_py.path(),
libva_gallium.full_path(),
va_drivers_path,
va_drivers,
endforeach
meson.add_install_script(
- prog_python.path(),
- join_paths(meson.source_root(), 'bin/install_megadrivers.py'),
+ install_megadrivers_py.path(),
libvdpau_gallium.full_path(),
vdpau_drivers_path,
vdpau_drivers,
endforeach
meson.add_install_script(
- prog_python.path(),
- join_paths(meson.source_root(), 'bin/install_megadrivers.py'),
+ install_megadrivers_py.path(),
libxvmc_gallium.full_path(),
xvmc_drivers_path,
xvmc_drivers,
)
meson.add_install_script(
- prog_python.path(),
- join_paths(meson.source_root(), 'bin/install_megadrivers.py'),
+ install_megadrivers_py.path(),
libmesa_dri_drivers.full_path(),
dri_drivers_path,
_dri_link,