1# Copyright © 2019 Google LLC 2# SPDX-License-Identifier: MIT 3 4files_mesa_format = files( 5 'u_format.c', 6 'u_format_bptc.c', 7 'u_format_etc.c', 8 'u_format_fxt1.c', 9 'u_format_latc.c', 10 'u_format_other.c', 11 'u_format_rgtc.c', 12 'u_format_s3tc.c', 13 'u_format_tests.c', 14 'u_format_unpack_neon.c', 15 'u_format_yuv.c', 16 'u_format_zs.c', 17) 18 19u_format_gen_h = custom_target( 20 'u_format_gen.h', 21 input : ['u_format_table.py', 'u_format.yaml'], 22 output : 'u_format_gen.h', 23 command : [prog_python, '@INPUT@', '--enums'], 24 depend_files : files('u_format_pack.py', 'u_format_parse.py'), 25 capture : true, 26) 27 28u_format_pack_h = custom_target( 29 'u_format_pack.h', 30 input : ['u_format_table.py', 'u_format.yaml'], 31 output : 'u_format_pack.h', 32 command : [prog_python, '@INPUT@', '--header'], 33 depend_files : files('u_format_pack.py', 'u_format_parse.py'), 34 capture : true, 35) 36 37u_format_table_c = custom_target( 38 'u_format_table.c', 39 input : ['u_format_table.py', 'u_format.yaml'], 40 output : 'u_format_table.c', 41 command : [prog_python, '@INPUT@'], 42 depend_files : files('u_format_pack.py', 'u_format_parse.py'), 43 capture : true, 44) 45 46idep_mesautilformat = declare_dependency(sources: u_format_gen_h) 47 48files_mesa_format += [u_format_gen_h, u_format_pack_h, u_format_table_c] 49