2017-10-24 18:03:39 +01:00
|
|
|
# Copyright © 2017 Eric Engestrom
|
2024-06-28 13:16:28 -07:00
|
|
|
# SPDX-License-Identifier: MIT
|
2017-10-24 18:03:39 +01:00
|
|
|
|
|
|
|
git_sha1_gen_py = files('git_sha1_gen.py')
|
2021-12-03 20:51:58 +08:00
|
|
|
gen_vs_module_defs_py = files('gen_vs_module_defs.py')
|
2022-11-08 20:32:07 +08:00
|
|
|
gen_vs_module_defs_normal_command = [
|
|
|
|
prog_python, gen_vs_module_defs_py,
|
|
|
|
'--in_file', '@INPUT@', '--out_file', '@OUTPUT@',
|
2022-11-08 20:48:30 +08:00
|
|
|
'--compiler_abi', cc.get_argument_syntax(),
|
|
|
|
'--compiler_id', cc.get_id(), '--cpu_family', host_machine.cpu_family()
|
2022-11-08 20:32:07 +08:00
|
|
|
]
|
symbols-check: introduce new python script
I've re-written this in bash a couple times over the years, and then
I realised python is much more portable and already required by Mesa, so
we might as well make use of it.
I decided to still use the build system's NM instead of re-implementing
symbols extraction, to offload the complexity of keeping it compatible
with many systems (Linux, Unix, BSD, MacOS, etc.), especially when
cross-building.
This new script checks not only that nothing is exported when it
shouldn't be, but also that everything that should be exported is.
Sometimes, some symbols _can_ be exported but don't have to be, in which
case they can be prefixed with `(optional)`.
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2018-10-11 13:08:42 +01:00
|
|
|
symbols_check = find_program('symbols-check.py')
|
2019-03-26 10:55:37 +00:00
|
|
|
install_megadrivers_py = find_program('install_megadrivers.py')
|
2024-11-25 18:26:30 +01:00
|
|
|
install_megadrivers = [
|
|
|
|
install_megadrivers_py.full_path(),
|
2024-11-25 18:16:11 +01:00
|
|
|
'--libname-suffix', libname_suffix,
|
2024-11-25 18:26:30 +01:00
|
|
|
]
|