| 1 |
# Copyright 2025 LunarG, Inc. |
| 2 |
# Copyright 2025 Google LLC |
| 3 |
# SPDX-License-Identifier: MIT |
| 4 |
|
| 5 |
libmsl_compiler_files = files( |
| 6 |
'nir_to_msl.c', |
| 7 |
'msl_type_inference.c', |
| 8 |
'msl_iomap.c', |
| 9 |
'msl_nir_lower_common.c', |
| 10 |
'msl_nir_lower_subgroups.c', |
| 11 |
) |
| 12 |
|
| 13 |
msl_nir_algebraic_c = custom_target( |
| 14 |
input : 'msl_nir_algebraic.py', |
| 15 |
output : 'msl_nir_algebraic.c', |
| 16 |
command : [ |
| 17 |
prog_python, '@INPUT@', '-p', dir_compiler_nir, |
| 18 |
], |
| 19 |
capture : true, |
| 20 |
depend_files : nir_algebraic_depends, |
| 21 |
) |
| 22 |
|
| 23 |
|
| 24 |
libmsl_compiler = static_library( |
| 25 |
'msl_compiler', |
| 26 |
[libmsl_compiler_files, msl_nir_algebraic_c], |
| 27 |
dependencies : [idep_nir, idep_mesautil], |
| 28 |
gnu_symbol_visibility: 'hidden', |
| 29 |
build_by_default: false, |
| 30 |
) |
| 31 |
|
| 32 |
idep_msl_to_nir = declare_dependency( |
| 33 |
link_with : libmsl_compiler, |
| 34 |
) |
| 35 |
|