"Fossies" - the Fresh Open Source Software Archive

Member "mesa-20.1.8/src/gallium/drivers/iris/meson.build" (16 Sep 2020, 3268 Bytes) of package /linux/misc/mesa-20.1.8.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "meson.build": 20.1.5_vs_20.2.0-rc1.

    1 # Copyright © 2017-2019 Intel Corporation
    2 #
    3 # Permission is hereby granted, free of charge, to any person obtaining a copy
    4 # of this software and associated documentation files (the "Software"), to deal
    5 # in the Software without restriction, including without limitation the rights
    6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    7 # copies of the Software, and to permit persons to whom the Software is
    8 # furnished to do so, subject to the following conditions:
    9 #
   10 # The above copyright notice and this permission notice shall be included in
   11 # all copies or substantial portions of the Software.
   12 #
   13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   19 # SOFTWARE.
   20 
   21 files_libiris = files(
   22   'driinfo_iris.h',
   23   'iris_batch.c',
   24   'iris_batch.h',
   25   'iris_binder.c',
   26   'iris_binder.h',
   27   'iris_blit.c',
   28   'iris_border_color.c',
   29   'iris_bufmgr.c',
   30   'iris_bufmgr.h',
   31   'iris_clear.c',
   32   'iris_context.c',
   33   'iris_context.h',
   34   'iris_draw.c',
   35   'iris_fence.c',
   36   'iris_fence.h',
   37   'iris_formats.c',
   38   'iris_genx_macros.h',
   39   'iris_genx_protos.h',
   40   'iris_monitor.c',
   41   'iris_perf.h',
   42   'iris_perf.c',
   43   'iris_performance_query.c',
   44   'iris_pipe.h',
   45   'iris_pipe_control.c',
   46   'iris_program.c',
   47   'iris_program_cache.c',
   48   'iris_resolve.c',
   49   'iris_resource.c',
   50   'iris_resource.h',
   51   'iris_screen.c',
   52   'iris_screen.h',
   53   'iris_disk_cache.c',
   54 )
   55 
   56 iris_driinfo_h = custom_target(
   57   'iris_driinfo.h',
   58   input : files(
   59     '../../../util/merge_driinfo.py',
   60     '../../auxiliary/pipe-loader/driinfo_gallium.h', 'driinfo_iris.h'
   61   ),
   62   output : 'iris_driinfo.h',
   63   command : [prog_python, '@INPUT@'],
   64   capture : true,
   65 )
   66 
   67 iris_gen_libs = []
   68 foreach v : ['80', '90', '100', '110', '120']
   69   iris_gen_libs += static_library(
   70     'iris_gen@0@'.format(v),
   71     ['iris_blorp.c', 'iris_query.c', 'iris_state.c', gen_xml_pack],
   72     include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_intel],
   73     c_args : [
   74       c_vis_args, no_override_init_args, c_sse2_args,
   75       '-DGEN_VERSIONx10=@0@'.format(v),
   76     ],
   77     dependencies : [dep_libdrm, dep_valgrind, idep_nir_headers],
   78   )
   79 endforeach
   80 
   81 libiris = static_library(
   82   'iris',
   83   [files_libiris, gen_xml_pack, iris_driinfo_h],
   84   include_directories : [
   85     inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_intel,
   86     inc_gallium_drivers,
   87     # these should not be necessary, but main/macros.h...
   88     inc_mesa, inc_mapi
   89   ],
   90   c_args : [c_vis_args, c_sse2_args],
   91   cpp_args : [cpp_vis_args, c_sse2_args],
   92   dependencies : [dep_libdrm, dep_valgrind, idep_genxml, idep_libintel_common, idep_nir_headers],
   93   link_with : [
   94     iris_gen_libs, libintel_compiler, libintel_dev, libisl,
   95     libblorp, libintel_perf
   96   ],
   97 )
   98 
   99 driver_iris = declare_dependency(
  100   compile_args : '-DGALLIUM_IRIS',
  101   sources : iris_driinfo_h,
  102   link_with : [libiris, libiriswinsys],
  103 )