Path: blob/21.2-virgl/src/amd/addrlib/meson.build
7132 views
# Copyright © 2017 Intel Corporation12# 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_addrlib = files(21'inc/addrinterface.h',22'inc/addrtypes.h',23'src/addrinterface.cpp',24'src/core/addrcommon.h',25'src/core/addrelemlib.cpp',26'src/core/addrelemlib.h',27'src/core/addrlib.cpp',28'src/core/addrlib.h',29'src/core/addrlib1.cpp',30'src/core/addrlib1.h',31'src/core/addrlib2.cpp',32'src/core/addrlib2.h',33'src/core/addrobject.cpp',34'src/core/addrobject.h',35'src/core/coord.cpp',36'src/core/coord.h',37'src/gfx9/gfx9addrlib.cpp',38'src/gfx9/gfx9addrlib.h',39'src/gfx10/gfx10addrlib.cpp',40'src/gfx10/gfx10addrlib.h',41'src/gfx10/gfx10SwizzlePattern.h',42'src/amdgpu_asic_addr.h',43'src/chip/gfx10/gfx10_gb_reg.h',44'src/chip/gfx9/gfx9_gb_reg.h',45'src/chip/r800/si_gb_reg.h',46'src/r800/ciaddrlib.cpp',47'src/r800/ciaddrlib.h',48'src/r800/egbaddrlib.cpp',49'src/r800/egbaddrlib.h',50'src/r800/siaddrlib.cpp',51'src/r800/siaddrlib.h',52)5354# Skip the addrlib definition of ADDR_FASTCALL so as not to use regparm.55cpp_args_addrlib = ['-DADDR_FASTCALL=']5657if host_machine.endian() == 'little'58cpp_args_addrlib += '-DLITTLEENDIAN_CPU'59else60cpp_args_addrlib += '-DBIGENDIAN_CPU'61endif6263foreach w : ['-Wno-unused-variable', '-Wno-unused-local-typedefs',64'-Wno-unused-but-set-variable', '-Wno-maybe-uninitialized']65if cpp.has_argument(w)66cpp_args_addrlib += w67endif68endforeach6970libamdgpu_addrlib = static_library(71'addrlib',72files_addrlib,73include_directories : [74include_directories(75'inc', 'src', 'src/core', 'src/chip/gfx9', 'src/chip/r800',76'src/chip/gfx10',77),78inc_amd_common, inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux,79],80cpp_args : cpp_args_addrlib,81gnu_symbol_visibility : 'hidden',82)838485