1############################################################################# 2# 3# Copyright (C) 2019 Collabora Ltd 4# 5# Permission is hereby granted, free of charge, to any person obtaining a 6# copy of this software and associated documentation files (the "Software"), 7# to deal in the Software without restriction, including without limitation 8# the rights to use, copy, modify, merge, publish, distribute, sublicense, 9# and/or sell copies of the Software, and to permit persons to whom the 10# Software is furnished to do so, subject to the following conditions: 11# 12# The above copyright notice and this permission notice shall be included 13# in all copies or substantial portions of the Software. 14# 15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 19# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21# OTHER DEALINGS IN THE SOFTWARE. 22# 23 24sources_libgallium = [ 25 'include/pipe/p_defines.h', 26 'include/pipe/p_state.h', 27 'include/pipe/p_format.h', 28 'include/pipe/p_shader_tokens.h', 29 'auxiliary/util/u_format.h', 30 'auxiliary/util/u_format.c', 31 'auxiliary/util/u_inlines.h', 32 'auxiliary/util/u_texture.c', 33 'auxiliary/util/u_pointer.h', 34 'auxiliary/util/u_hash_table.c', 35 'auxiliary/util/u_debug_describe.h', 36 'auxiliary/util/u_dual_blend.h', 37 'auxiliary/util/u_texture.h', 38 'auxiliary/util/u_hash_table.h', 39 'auxiliary/util/u_double_list.h', 40 'auxiliary/util/u_debug_refcnt.h', 41 'auxiliary/util/u_format_s3tc.h', 42 'auxiliary/util/u_half.h', 43 'auxiliary/util/u_prim.h', 44 'auxiliary/util/u_debug_describe.c', 45 'auxiliary/cso_cache/cso_hash.h', 46 'auxiliary/cso_cache/cso_cache.h', 47 'auxiliary/cso_cache/cso_cache.c', 48 'auxiliary/cso_cache/cso_hash.c', 49 'auxiliary/tgsi/tgsi_dump.c', 50 'auxiliary/tgsi/tgsi_build.c', 51 'auxiliary/tgsi/tgsi_build.h', 52 'auxiliary/tgsi/tgsi_util.h', 53 'auxiliary/tgsi/tgsi_iterate.h', 54 'auxiliary/tgsi/tgsi_scan.c', 55 'auxiliary/tgsi/tgsi_info.c', 56 'auxiliary/tgsi/tgsi_parse.h', 57 'auxiliary/tgsi/tgsi_text.h', 58 'auxiliary/tgsi/tgsi_strings.h', 59 'auxiliary/tgsi/tgsi_parse.c', 60 'auxiliary/tgsi/tgsi_info.h', 61 'auxiliary/tgsi/tgsi_text.c', 62 'auxiliary/tgsi/tgsi_strings.c', 63 'auxiliary/tgsi/tgsi_sanity.c', 64 'auxiliary/tgsi/tgsi_scan.h', 65 'auxiliary/tgsi/tgsi_iterate.c', 66 'auxiliary/tgsi/tgsi_dump.h', 67 'auxiliary/tgsi/tgsi_util.c', 68 'auxiliary/tgsi/tgsi_sanity.h', 69] 70 71inc_gallium = include_directories('include', 'auxiliary', 'auxiliary/util') 72 73u_format_table_c = custom_target( 74 'u_format_table.c', 75 input : ['auxiliary/util/u_format_table.py', 'auxiliary/util/u_format.csv'], 76 output : 'u_format_table.c', 77 command : [prog_python, '-B', '@INPUT@'], 78 depend_files : files('auxiliary/util/u_format_parse.py'), 79 capture : true, 80) 81 82libgallium = static_library( 83 'gallium', 84 [sources_libgallium, u_format_table_c], 85 include_directories : [ 86 inc_gallium, inc_configuration 87 ], 88 dependencies: mesa_dep, 89) 90 91gallium_dep = declare_dependency( 92 link_with: libgallium, 93 include_directories: [inc_gallium, inc_configuration], 94 dependencies: mesa_dep, 95) 96