17ec681f3Smrg# Copyright © 2019 Google LLC 27ec681f3Smrg 37ec681f3Smrg# Permission is hereby granted, free of charge, to any person obtaining a copy 47ec681f3Smrg# of this software and associated documentation files (the "Software"), to deal 57ec681f3Smrg# in the Software without restriction, including without limitation the rights 67ec681f3Smrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 77ec681f3Smrg# copies of the Software, and to permit persons to whom the Software is 87ec681f3Smrg# furnished to do so, subject to the following conditions: 97ec681f3Smrg 107ec681f3Smrg# The above copyright notice and this permission notice shall be included in 117ec681f3Smrg# all copies or substantial portions of the Software. 127ec681f3Smrg 137ec681f3Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 147ec681f3Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 157ec681f3Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 167ec681f3Smrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 177ec681f3Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 187ec681f3Smrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 197ec681f3Smrg# SOFTWARE. 207ec681f3Smrg 217ec681f3Smrgfiles_mesa_format = [ 227ec681f3Smrg 'u_format.c', 237ec681f3Smrg 'u_format_bptc.c', 247ec681f3Smrg 'u_format_etc.c', 257ec681f3Smrg 'u_format_fxt1.c', 267ec681f3Smrg 'u_format_latc.c', 277ec681f3Smrg 'u_format_other.c', 287ec681f3Smrg 'u_format_rgtc.c', 297ec681f3Smrg 'u_format_s3tc.c', 307ec681f3Smrg 'u_format_tests.c', 317ec681f3Smrg 'u_format_unpack_neon.c', 327ec681f3Smrg 'u_format_yuv.c', 337ec681f3Smrg 'u_format_zs.c', 347ec681f3Smrg] 357ec681f3Smrg 367ec681f3Smrgu_format_pack_h = custom_target( 377ec681f3Smrg 'u_format_pack.h', 387ec681f3Smrg input : ['u_format_table.py', 'u_format.csv'], 397ec681f3Smrg output : 'u_format_pack.h', 407ec681f3Smrg command : [prog_python, '@INPUT@', '--header'], 417ec681f3Smrg depend_files : files('u_format_pack.py', 'u_format_parse.py'), 427ec681f3Smrg capture : true, 437ec681f3Smrg) 447ec681f3Smrg 457ec681f3Smrgu_format_table_c = custom_target( 467ec681f3Smrg 'u_format_table.c', 477ec681f3Smrg input : ['u_format_table.py', 'u_format.csv'], 487ec681f3Smrg output : 'u_format_table.c', 497ec681f3Smrg command : [prog_python, '@INPUT@'], 507ec681f3Smrg depend_files : files('u_format_pack.py', 'u_format_parse.py'), 517ec681f3Smrg capture : true, 527ec681f3Smrg) 537ec681f3Smrg 547ec681f3Smrglibmesa_format = static_library( 557ec681f3Smrg 'mesa_format', 567ec681f3Smrg [files_mesa_format, u_format_table_c, u_format_pack_h], 577ec681f3Smrg include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], 587ec681f3Smrg # NOTE dep_valgrind used here instead of idep_mesautil due to chicken/egg 597ec681f3Smrg # dependencies between util and util/format 607ec681f3Smrg dependencies : [dep_m, dep_valgrind], 617ec681f3Smrg c_args : [c_msvc_compat_args], 627ec681f3Smrg gnu_symbol_visibility : 'hidden', 637ec681f3Smrg build_by_default : false 647ec681f3Smrg) 65