Path: blob/21.2-virgl/src/util/format/meson.build
7129 views
# Copyright © 2019 Google LLC12# Permission is hereby granted, free of charge, to any person obtaining a copy3# of this software and associated documentation files (the "Software"), to deal4# in the Software without restriction, including without limitation the rights5# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell6# copies of the Software, and to permit persons to whom the Software is7# furnished to do so, subject to the following conditions:89# The above copyright notice and this permission notice shall be included in10# all copies or substantial portions of the Software.1112# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR13# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,14# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE15# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER16# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,17# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE18# SOFTWARE.1920files_mesa_format = [21'u_format.c',22'u_format_bptc.c',23'u_format_etc.c',24'u_format_fxt1.c',25'u_format_latc.c',26'u_format_other.c',27'u_format_rgtc.c',28'u_format_s3tc.c',29'u_format_tests.c',30'u_format_unpack_neon.c',31'u_format_yuv.c',32'u_format_zs.c',33]3435u_format_pack_h = custom_target(36'u_format_pack.h',37input : ['u_format_table.py', 'u_format.csv'],38output : 'u_format_pack.h',39command : [prog_python, '@INPUT@', '--header'],40depend_files : files('u_format_pack.py', 'u_format_parse.py'),41capture : true,42)4344u_format_table_c = custom_target(45'u_format_table.c',46input : ['u_format_table.py', 'u_format.csv'],47output : 'u_format_table.c',48command : [prog_python, '@INPUT@'],49depend_files : files('u_format_pack.py', 'u_format_parse.py'),50capture : true,51)5253libmesa_format = static_library(54'mesa_format',55[files_mesa_format, u_format_table_c, u_format_pack_h],56include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],57# NOTE dep_valgrind used here instead of idep_mesautil due to chicken/egg58# dependencies between util and util/format59dependencies : [dep_m, dep_valgrind],60c_args : [c_msvc_compat_args],61gnu_symbol_visibility : 'hidden',62build_by_default : false63)646566