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