1# Copyright © 2017 Dylan Baker 2# SPDX-License-Identifier: MIT 3 4files_libnouveau = files( 5 'nouveau_buffer.c', 6 'nouveau_buffer.h', 7 'nouveau_context.h', 8 'nouveau_debug.h', 9 'nouveau_fence.c', 10 'nouveau_fence.h', 11 'nouveau_gldefs.h', 12 'nouveau_heap.c', 13 'nouveau_heap.h', 14 'nouveau_mm.c', 15 'nouveau_mm.h', 16 'nouveau_screen.c', 17 'nouveau_screen.h', 18 'nouveau_video.c', 19 'nouveau_video.h', 20 'nouveau_vp3_video_bsp.c', 21 'nouveau_vp3_video.c', 22 'nouveau_vp3_video.h', 23 'nouveau_vp3_video_vp.c', 24 'nouveau_winsys.h', 25 'nv17_mpeg.xml.h', 26 'nv31_mpeg.xml.h', 27 'nv_m2mf.xml.h', 28 'nv_object.xml.h', 29 'nv30/nv01_2d.xml.h', 30 'nv30/nv30-40_3d.xml.h', 31 'nv30/nv30_clear.c', 32 'nv30/nv30_context.c', 33 'nv30/nv30_context.h', 34 'nv30/nv30_draw.c', 35 'nv30/nv30_format.c', 36 'nv30/nv30_format.h', 37 'nv30/nv30_fragprog.c', 38 'nv30/nv30_fragtex.c', 39 'nv30/nv30_miptree.c', 40 'nv30/nv30_push.c', 41 'nv30/nv30_query.c', 42 'nv30/nv30_resource.c', 43 'nv30/nv30_resource.h', 44 'nv30/nv30_screen.c', 45 'nv30/nv30_screen.h', 46 'nv30/nv30_state.c', 47 'nv30/nv30_state.h', 48 'nv30/nv30_state_validate.c', 49 'nv30/nv30_texture.c', 50 'nv30/nv30_transfer.c', 51 'nv30/nv30_transfer.h', 52 'nv30/nv30_vbo.c', 53 'nv30/nv30_vertprog.c', 54 'nv30/nv30_vertprog.h', 55 'nv30/nv30_winsys.h', 56 'nv30/nv40_vertprog.h', 57 'nv30/nv40_verttex.c', 58 'nv30/nvfx_fragprog.c', 59 'nv30/nvfx_shader.h', 60 'nv30/nvfx_vertprog.c', 61 'nv50/g80_defs.xml.h', 62 'nv50/g80_texture.xml.h', 63 'nv50/nv50_2d.xml.h', 64 'nv50/nv50_3ddefs.xml.h', 65 'nv50/nv50_3d.xml.h', 66 'nv50/nv50_blit.h', 67 'nv50/nv50_compute.c', 68 'nv50/nv50_compute.xml.h', 69 'nv50/nv50_context.c', 70 'nv50/nv50_context.h', 71 'nv50/nv50_formats.c', 72 'nv50/nv50_miptree.c', 73 'nv50/nv50_program.c', 74 'nv50/nv50_program.h', 75 'nv50/nv50_push.c', 76 'nv50/nv50_query.c', 77 'nv50/nv50_query.h', 78 'nv50/nv50_query_hw.c', 79 'nv50/nv50_query_hw.h', 80 'nv50/nv50_query_hw_metric.c', 81 'nv50/nv50_query_hw_metric.h', 82 'nv50/nv50_query_hw_sm.c', 83 'nv50/nv50_query_hw_sm.h', 84 'nv50/nv50_resource.c', 85 'nv50/nv50_resource.h', 86 'nv50/nv50_screen.c', 87 'nv50/nv50_screen.h', 88 'nv50/nv50_shader_state.c', 89 'nv50/nv50_state.c', 90 'nv50/nv50_stateobj.h', 91 'nv50/nv50_stateobj_tex.h', 92 'nv50/nv50_state_validate.c', 93 'nv50/nv50_surface.c', 94 'nv50/nv50_tex.c', 95 'nv50/nv50_transfer.c', 96 'nv50/nv50_transfer.h', 97 'nv50/nv50_vbo.c', 98 'nv50/nv50_winsys.h', 99 'nv50/nv84_video_bsp.c', 100 'nv50/nv84_video.c', 101 'nv50/nv84_video.h', 102 'nv50/nv84_video_vp.c', 103 'nv50/nv98_video_bsp.c', 104 'nv50/nv98_video.c', 105 'nv50/nv98_video.h', 106 'nv50/nv98_video_ppp.c', 107 'nv50/nv98_video_vp.c', 108 'nvc0/cla0c0qmd.h', 109 'nvc0/clc0c0qmd.h', 110 'nvc0/clc3c0qmd.h', 111 'nvc0/drf.h', 112 'nvc0/qmd.h', 113 'nvc0/qmda0c0.c', 114 'nvc0/qmdc0c0.c', 115 'nvc0/qmdc3c0.c', 116 'nvc0/gm107_texture.xml.h', 117 'nvc0/nvc0_3d.xml.h', 118 'nvc0/nvc0_compute.c', 119 'nvc0/nvc0_compute.xml.h', 120 'nvc0/nvc0_context.c', 121 'nvc0/nvc0_context.h', 122 'nvc0/nvc0_formats.c', 123 'nvc0/nvc0_m2mf.xml.h', 124 'nvc0/nvc0_macros.h', 125 'nvc0/nvc0_miptree.c', 126 'nvc0/nvc0_program.c', 127 'nvc0/nvc0_program.h', 128 'nvc0/nvc0_query.c', 129 'nvc0/nvc0_query.h', 130 'nvc0/nvc0_query_hw.c', 131 'nvc0/nvc0_query_hw.h', 132 'nvc0/nvc0_query_hw_metric.c', 133 'nvc0/nvc0_query_hw_metric.h', 134 'nvc0/nvc0_query_hw_sm.c', 135 'nvc0/nvc0_query_hw_sm.h', 136 'nvc0/nvc0_query_sw.c', 137 'nvc0/nvc0_query_sw.h', 138 'nvc0/nvc0_resource.c', 139 'nvc0/nvc0_resource.h', 140 'nvc0/nvc0_screen.c', 141 'nvc0/nvc0_screen.h', 142 'nvc0/nvc0_shader_state.c', 143 'nvc0/nvc0_state.c', 144 'nvc0/nvc0_stateobj.h', 145 'nvc0/nvc0_state_validate.c', 146 'nvc0/nvc0_surface.c', 147 'nvc0/nvc0_tex.c', 148 'nvc0/nvc0_transfer.c', 149 'nvc0/nvc0_vbo.c', 150 'nvc0/nvc0_vbo_translate.c', 151 'nvc0/nvc0_video_bsp.c', 152 'nvc0/nvc0_video.c', 153 'nvc0/nvc0_video.h', 154 'nvc0/nvc0_video_ppp.c', 155 'nvc0/nvc0_video_vp.c', 156 'nvc0/nvc0_winsys.h', 157 'nvc0/nve4_compute.c', 158 'nvc0/nve4_compute.h', 159 'nvc0/nve4_compute.xml.h', 160 'nvc0/nve4_copy.xml.h', 161 'nvc0/nve4_p2mf.xml.h', 162) 163 164libnouveau = static_library( 165 'nouveau', 166 [files_libnouveau, sha1_h], 167 include_directories : [ 168 inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_mapi, inc_mesa, 169 ], 170 gnu_symbol_visibility : 'hidden', 171 link_with : [libnouveauwinsys], 172 dependencies : [ 173 dep_libdrm, 174 idep_libnouveauwinsys, 175 idep_mesautil, 176 idep_nir_headers, 177 idep_nouveau_codegen, 178 idep_nvidia_headers, 179 ], 180) 181 182driver_nouveau = declare_dependency( 183 compile_args : '-DGALLIUM_NOUVEAU', 184 dependencies : [idep_nir, idep_nouveau_codegen], 185 link_with : [libnouveau_codegen, libnouveau], 186) 187