diff options
-rw-r--r-- | src/egl/glvnd_icd.py | 24 | ||||
-rw-r--r-- | src/egl/main/50_mesa.json | 6 | ||||
-rw-r--r-- | src/egl/meson.build | 14 |
3 files changed, 8 insertions, 36 deletions
diff --git a/src/egl/glvnd_icd.py b/src/egl/glvnd_icd.py deleted file mode 100644 index 39850873a90..00000000000 --- a/src/egl/glvnd_icd.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 2019 Intel Corporation -# SPDX-License-Identifier: MIT - -import argparse -import json -import os.path - -if __name__ == '__main__': - parser = argparse.ArgumentParser() - parser.add_argument('--out', help='Output json file.', required=True) - parser.add_argument('--lib-path', help='Path to libEGL_mesa.so', required=True) - args = parser.parse_args() - - path = os.path.join(args.lib_path, 'libEGL_mesa.so') - - json_data = { - 'file_format_version': '1.0.0', - 'ICD': { - 'library_path': path, - }, - } - - with open(args.out, 'w') as f: - json.dump(json_data, f, indent=4, sort_keys=True, separators=(',', ': ')) diff --git a/src/egl/main/50_mesa.json b/src/egl/main/50_mesa.json new file mode 100644 index 00000000000..8aaaa100ffa --- /dev/null +++ b/src/egl/main/50_mesa.json @@ -0,0 +1,6 @@ +{ + "file_format_version" : "1.0.0", + "ICD" : { + "library_path" : "libEGL_mesa.so.0" + } +} diff --git a/src/egl/meson.build b/src/egl/meson.build index db34453ee9b..12d74ec37fa 100644 --- a/src/egl/meson.build +++ b/src/egl/meson.build @@ -152,18 +152,8 @@ else deps_for_egl += dep_glvnd files_egl += [g_egldispatchstubs_h, g_egldispatchstubs_c] files_egl += files('main/eglglvnd.c', 'main/egldispatchstubs.c') - - egl_icd = custom_target( - 'glvnd_icd', - input : 'glvnd_icd.py', - output : '50_mesa.json', - command : [ - prog_python, '@INPUT@', - '--lib-path', join_paths(get_option('prefix'), get_option('libdir')), - '--out', '@OUTPUT@', - ], - build_by_default : true, - install : true, + install_data( + 'main/50_mesa.json', install_dir : join_paths(get_option('datadir'), 'glvnd', 'egl_vendor.d') ) endif |