1# Copyright © 2017 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# TODO: main/tests 22 23subdir('program') 24subdir('main') 25 26# files shared between classic mesa and gallium mesa 27files_libmesa_common = files( 28 'program/arbprogparse.c', 29 'program/arbprogparse.h', 30 'program/ir_to_mesa.cpp', 31 'program/ir_to_mesa.h', 32 'program/prog_cache.c', 33 'program/prog_cache.h', 34 'program/prog_execute.c', 35 'program/prog_execute.h', 36 'program/prog_instruction.c', 37 'program/prog_instruction.h', 38 'program/prog_noise.c', 39 'program/prog_noise.h', 40 'program/prog_opt_constant_fold.c', 41 'program/prog_optimize.c', 42 'program/prog_optimize.h', 43 'program/prog_parameter.c', 44 'program/prog_parameter.h', 45 'program/prog_parameter_layout.c', 46 'program/prog_parameter_layout.h', 47 'program/prog_print.c', 48 'program/prog_print.h', 49 'program/program.c', 50 'program/program.h', 51 'program/programopt.c', 52 'program/programopt.h', 53 'program/program_parse_extra.c', 54 'program/program_parser.h', 55 'program/prog_statevars.c', 56 'program/prog_statevars.h', 57 'program/symbol_table.c', 58 'program/symbol_table.h', 59 'program/prog_to_nir.c', 60 'program/prog_to_nir.h', 61 'main/accum.c', 62 'main/accum.h', 63 'main/api_arrayelt.c', 64 'main/api_arrayelt.h', 65 'main/api_exec.h', 66 'main/api_loopback.c', 67 'main/api_loopback.h', 68 'main/api_validate.c', 69 'main/api_validate.h', 70 'main/arbprogram.c', 71 'main/arbprogram.h', 72 'main/arrayobj.c', 73 'main/arrayobj.h', 74 'main/atifragshader.c', 75 'main/atifragshader.h', 76 'main/attrib.c', 77 'main/attrib.h', 78 'main/barrier.c', 79 'main/barrier.h', 80 'main/bbox.c', 81 'main/bbox.h', 82 'main/blend.c', 83 'main/blend.h', 84 'main/blit.c', 85 'main/blit.h', 86 'main/bufferobj.c', 87 'main/bufferobj.h', 88 'main/buffers.c', 89 'main/buffers.h', 90 'main/clear.c', 91 'main/clear.h', 92 'main/clip.c', 93 'main/clip.h', 94 'main/colormac.h', 95 'main/colortab.c', 96 'main/colortab.h', 97 'main/compute.c', 98 'main/compute.h', 99 'main/compiler.h', 100 'main/condrender.c', 101 'main/condrender.h', 102 'main/config.h', 103 'main/context.c', 104 'main/context.h', 105 'main/convolve.c', 106 'main/convolve.h', 107 'main/copyimage.c', 108 'main/copyimage.h', 109 'main/core.h', 110 'main/cpuinfo.c', 111 'main/cpuinfo.h', 112 'main/dd.h', 113 'main/debug.c', 114 'main/debug.h', 115 'main/debug_output.c', 116 'main/debug_output.h', 117 'main/depth.c', 118 'main/depth.h', 119 'main/dlist.c', 120 'main/dlist.h', 121 'main/drawpix.c', 122 'main/drawpix.h', 123 'main/drawtex.c', 124 'main/drawtex.h', 125 'main/enable.c', 126 'main/enable.h', 127 'main/enums.h', 128 'main/errors.c', 129 'main/errors.h', 130 'main/eval.c', 131 'main/eval.h', 132 'main/execmem.c', 133 'main/extensions.c', 134 'main/extensions.h', 135 'main/extensions_table.c', 136 'main/extensions_table.h', 137 'main/externalobjects.c', 138 'main/externalobjects.h', 139 'main/fbobject.c', 140 'main/fbobject.h', 141 'main/feedback.c', 142 'main/feedback.h', 143 'main/ff_fragment_shader.cpp', 144 'main/ffvertex_prog.c', 145 'main/ffvertex_prog.h', 146 'main/fog.c', 147 'main/fog.h', 148 'main/format_pack.h', 149 'main/format_unpack.h', 150 'main/formatquery.c', 151 'main/formatquery.h', 152 'main/formats.c', 153 'main/formats.h', 154 'main/format_utils.c', 155 'main/format_utils.h', 156 'main/framebuffer.c', 157 'main/framebuffer.h', 158 'main/get.c', 159 'main/get.h', 160 'main/genmipmap.c', 161 'main/genmipmap.h', 162 'main/getstring.c', 163 'main/glformats.c', 164 'main/glformats.h', 165 'main/glspirv.c', 166 'main/glspirv.h', 167 'main/glthread.c', 168 'main/glthread.h', 169 'main/glheader.h', 170 'main/hash.c', 171 'main/hash.h', 172 'main/hint.c', 173 'main/hint.h', 174 'main/histogram.c', 175 'main/histogram.h', 176 'main/image.c', 177 'main/image.h', 178 'main/imports.c', 179 'main/imports.h', 180 'main/light.c', 181 'main/light.h', 182 'main/lines.c', 183 'main/lines.h', 184 'main/macros.h', 185 'main/marshal.c', 186 'main/marshal.h', 187 'main/matrix.c', 188 'main/matrix.h', 189 'main/mipmap.c', 190 'main/mipmap.h', 191 'main/mm.c', 192 'main/mm.h', 193 'main/mtypes.h', 194 'main/multisample.c', 195 'main/multisample.h', 196 'main/objectlabel.c', 197 'main/objectlabel.h', 198 'main/objectpurge.c', 199 'main/objectpurge.h', 200 'main/pack.c', 201 'main/pack.h', 202 'main/pbo.c', 203 'main/pbo.h', 204 'main/performance_monitor.c', 205 'main/performance_monitor.h', 206 'main/performance_query.c', 207 'main/performance_query.h', 208 'main/pipelineobj.c', 209 'main/pipelineobj.h', 210 'main/pixel.c', 211 'main/pixel.h', 212 'main/pixelstore.c', 213 'main/pixelstore.h', 214 'main/pixeltransfer.c', 215 'main/pixeltransfer.h', 216 'main/points.c', 217 'main/points.h', 218 'main/polygon.c', 219 'main/polygon.h', 220 'main/program_binary.c', 221 'main/program_binary.h', 222 'main/program_resource.c', 223 'main/program_resource.h', 224 'main/querymatrix.c', 225 'main/querymatrix.h', 226 'main/queryobj.c', 227 'main/queryobj.h', 228 'main/rastpos.c', 229 'main/rastpos.h', 230 'main/readpix.c', 231 'main/readpix.h', 232 'main/remap.c', 233 'main/remap.h', 234 'main/renderbuffer.c', 235 'main/renderbuffer.h', 236 'main/robustness.c', 237 'main/samplerobj.c', 238 'main/samplerobj.h', 239 'main/scissor.c', 240 'main/scissor.h', 241 'main/shaderapi.c', 242 'main/shaderapi.h', 243 'main/shaderimage.c', 244 'main/shaderimage.h', 245 'main/shaderobj.c', 246 'main/shaderobj.h', 247 'main/shader_query.cpp', 248 'main/shared.c', 249 'main/shared.h', 250 'main/state.c', 251 'main/state.h', 252 'main/stencil.c', 253 'main/stencil.h', 254 'main/syncobj.c', 255 'main/syncobj.h', 256 'main/texcompress.c', 257 'main/texcompress_bptc.c', 258 'main/texcompress_bptc.h', 259 'main/texcompress_cpal.c', 260 'main/texcompress_cpal.h', 261 'main/texcompress_etc.c', 262 'main/texcompress_etc.h', 263 'main/texcompress_etc_tmp.h', 264 'main/texcompress_fxt1.c', 265 'main/texcompress_fxt1.h', 266 'main/texcompress.h', 267 'main/texcompress_rgtc.c', 268 'main/texcompress_rgtc.h', 269 'main/texcompress_s3tc.c', 270 'main/texcompress_s3tc.h', 271 'main/texenv.c', 272 'main/texenv.h', 273 'main/texenvprogram.h', 274 'main/texformat.c', 275 'main/texformat.h', 276 'main/texgen.c', 277 'main/texgen.h', 278 'main/texgetimage.c', 279 'main/texgetimage.h', 280 'main/teximage.c', 281 'main/teximage.h', 282 'main/texobj.c', 283 'main/texobj.h', 284 'main/texparam.c', 285 'main/texparam.h', 286 'main/texstate.c', 287 'main/texstate.h', 288 'main/texstorage.c', 289 'main/texstorage.h', 290 'main/texstore.c', 291 'main/texstore.h', 292 'main/texturebindless.c', 293 'main/texturebindless.h', 294 'main/textureview.c', 295 'main/textureview.h', 296 'main/transformfeedback.c', 297 'main/transformfeedback.h', 298 'main/uniform_query.cpp', 299 'main/uniforms.c', 300 'main/uniforms.h', 301 'main/varray.c', 302 'main/varray.h', 303 'main/vdpau.c', 304 'main/vdpau.h', 305 'main/version.c', 306 'main/version.h', 307 'main/viewport.c', 308 'main/viewport.h', 309 'main/vtxfmt.c', 310 'main/vtxfmt.h', 311 'main/es1_conversion.c', 312 'main/es1_conversion.h', 313 'math/m_debug.h', 314 'math/m_debug_clip.c', 315 'math/m_debug_norm.c', 316 'math/m_debug_util.h', 317 'math/m_debug_xform.c', 318 'math/m_eval.c', 319 'math/m_eval.h', 320 'math/m_matrix.c', 321 'math/m_matrix.h', 322 'math/m_trans_tmp.h', 323 'math/m_translate.c', 324 'math/m_translate.h', 325 'math/m_vector.c', 326 'math/m_vector.h', 327 'vbo/vbo_attrib.h', 328 'vbo/vbo_attrib_tmp.h', 329 'vbo/vbo_context.c', 330 'vbo/vbo_context.h', 331 'vbo/vbo_exec_api.c', 332 'vbo/vbo_exec_array.c', 333 'vbo/vbo_exec.c', 334 'vbo/vbo_exec_draw.c', 335 'vbo/vbo_exec_eval.c', 336 'vbo/vbo_exec.h', 337 'vbo/vbo.h', 338 'vbo/vbo_minmax_index.c', 339 'vbo/vbo_noop.c', 340 'vbo/vbo_noop.h', 341 'vbo/vbo_primitive_restart.c', 342 'vbo/vbo_rebase.c', 343 'vbo/vbo_save_api.c', 344 'vbo/vbo_save.c', 345 'vbo/vbo_save_draw.c', 346 'vbo/vbo_save.h', 347 'vbo/vbo_save_loopback.c', 348 'vbo/vbo_split.c', 349 'vbo/vbo_split_copy.c', 350 'vbo/vbo_split.h', 351 'vbo/vbo_split_inplace.c', 352 'x86/common_x86.c', 353) 354 355# mesa files 356files_libmesa_classic = files( 357 'math/m_clip_tmp.h', 358 'math/m_copy_tmp.h', 359 'math/m_dotprod_tmp.h', 360 'math/m_norm_tmp.h', 361 'math/m_xform.c', 362 'math/m_xform.h', 363 'math/m_xform_tmp.h', 364 'tnl/t_context.c', 365 'tnl/t_context.h', 366 'tnl/t_draw.c', 367 'tnl/tnl.h', 368 'tnl/t_pipeline.c', 369 'tnl/t_pipeline.h', 370 'tnl/t_vb_cliptmp.h', 371 'tnl/t_vb_fog.c', 372 'tnl/t_vb_light.c', 373 'tnl/t_vb_lighttmp.h', 374 'tnl/t_vb_normals.c', 375 'tnl/t_vb_points.c', 376 'tnl/t_vb_program.c', 377 'tnl/t_vb_render.c', 378 'tnl/t_vb_rendertmp.h', 379 'tnl/t_vb_texgen.c', 380 'tnl/t_vb_texmat.c', 381 'tnl/t_vb_vertex.c', 382 'tnl/t_vertex.c', 383 'tnl/t_vertex_generic.c', 384 'tnl/t_vertex.h', 385 'tnl/t_vertex_sse.c', 386 'tnl/t_vp_build.c', 387 'tnl/t_vp_build.h', 388 'swrast/s_aaline.c', 389 'swrast/s_aaline.h', 390 'swrast/s_aalinetemp.h', 391 'swrast/s_aatriangle.c', 392 'swrast/s_aatriangle.h', 393 'swrast/s_aatritemp.h', 394 'swrast/s_alpha.c', 395 'swrast/s_alpha.h', 396 'swrast/s_atifragshader.c', 397 'swrast/s_atifragshader.h', 398 'swrast/s_bitmap.c', 399 'swrast/s_blend.c', 400 'swrast/s_blend.h', 401 'swrast/s_blit.c', 402 'swrast/s_chan.h', 403 'swrast/s_clear.c', 404 'swrast/s_context.c', 405 'swrast/s_context.h', 406 'swrast/s_copypix.c', 407 'swrast/s_depth.c', 408 'swrast/s_depth.h', 409 'swrast/s_drawpix.c', 410 'swrast_setup/ss_tritmp.h', 411 'swrast_setup/ss_vb.h', 412 'swrast_setup/swrast_setup.h', 413 'swrast/s_feedback.c', 414 'swrast/s_feedback.h', 415 'swrast/s_fog.c', 416 'swrast/s_fog.h', 417 'swrast/s_fragprog.c', 418 'swrast/s_fragprog.h', 419 'swrast/s_lines.c', 420 'swrast/s_lines.h', 421 'swrast/s_linetemp.h', 422 'swrast/s_logic.c', 423 'swrast/s_logic.h', 424 'swrast/s_masking.c', 425 'swrast/s_masking.h', 426 'swrast/s_points.c', 427 'swrast/s_points.h', 428 'swrast/s_renderbuffer.c', 429 'swrast/s_renderbuffer.h', 430 'swrast/s_span.c', 431 'swrast/s_span.h', 432 'swrast/s_stencil.c', 433 'swrast/s_stencil.h', 434 'swrast/s_texcombine.c', 435 'swrast/s_texcombine.h', 436 'swrast/s_texfetch.c', 437 'swrast/s_texfetch.h', 438 'swrast/s_texfetch_tmp.h', 439 'swrast/s_texfilter.c', 440 'swrast/s_texfilter.h', 441 'swrast/s_texrender.c', 442 'swrast/s_texture.c', 443 'swrast/s_triangle.c', 444 'swrast/s_triangle.h', 445 'swrast/s_tritemp.h', 446 'swrast/swrast.h', 447 'swrast/s_zoom.c', 448 'swrast/s_zoom.h', 449 'swrast_setup/ss_context.c', 450 'swrast_setup/ss_context.h', 451 'swrast_setup/ss_triangle.c', 452 'swrast_setup/ss_triangle.h', 453 'drivers/common/driverfuncs.c', 454 'drivers/common/driverfuncs.h', 455 'drivers/common/meta_blit.c', 456 'drivers/common/meta_generate_mipmap.c', 457 'drivers/common/meta.c', 458 'drivers/common/meta.h', 459 'x86/x86_xform.c', 460 'x86/3dnow.c', 461 'x86/sse.c', 462 'x86/rtasm/x86sse.c', 463 'x86/rtasm/x86sse.h', 464 'sparc/sparc.c', 465 'x86-64/x86-64.c', 466) 467 468files_libmesa_gallium = files( 469 'state_tracker/st_atifs_to_tgsi.c', 470 'state_tracker/st_atifs_to_tgsi.h', 471 'state_tracker/st_atom_array.c', 472 'state_tracker/st_atom_atomicbuf.c', 473 'state_tracker/st_atom_blend.c', 474 'state_tracker/st_atom.c', 475 'state_tracker/st_atom_clip.c', 476 'state_tracker/st_atom_constbuf.c', 477 'state_tracker/st_atom_constbuf.h', 478 'state_tracker/st_atom_depth.c', 479 'state_tracker/st_atom_framebuffer.c', 480 'state_tracker/st_atom.h', 481 'state_tracker/st_atom_list.h', 482 'state_tracker/st_atom_image.c', 483 'state_tracker/st_atom_msaa.c', 484 'state_tracker/st_atom_pixeltransfer.c', 485 'state_tracker/st_atom_rasterizer.c', 486 'state_tracker/st_atom_sampler.c', 487 'state_tracker/st_atom_scissor.c', 488 'state_tracker/st_atom_shader.c', 489 'state_tracker/st_atom_shader.h', 490 'state_tracker/st_atom_stipple.c', 491 'state_tracker/st_atom_storagebuf.c', 492 'state_tracker/st_atom_tess.c', 493 'state_tracker/st_atom_texture.c', 494 'state_tracker/st_atom_viewport.c', 495 'state_tracker/st_cb_bitmap.c', 496 'state_tracker/st_cb_bitmap.h', 497 'state_tracker/st_cb_bitmap_shader.c', 498 'state_tracker/st_cb_blit.c', 499 'state_tracker/st_cb_blit.h', 500 'state_tracker/st_cb_bufferobjects.c', 501 'state_tracker/st_cb_bufferobjects.h', 502 'state_tracker/st_cb_clear.c', 503 'state_tracker/st_cb_clear.h', 504 'state_tracker/st_cb_compute.c', 505 'state_tracker/st_cb_compute.h', 506 'state_tracker/st_cb_condrender.c', 507 'state_tracker/st_cb_condrender.h', 508 'state_tracker/st_cb_copyimage.c', 509 'state_tracker/st_cb_copyimage.h', 510 'state_tracker/st_cb_drawpixels.c', 511 'state_tracker/st_cb_drawpixels.h', 512 'state_tracker/st_cb_drawpixels_shader.c', 513 'state_tracker/st_cb_drawtex.c', 514 'state_tracker/st_cb_drawtex.h', 515 'state_tracker/st_cb_eglimage.c', 516 'state_tracker/st_cb_eglimage.h', 517 'state_tracker/st_cb_fbo.c', 518 'state_tracker/st_cb_fbo.h', 519 'state_tracker/st_cb_feedback.c', 520 'state_tracker/st_cb_feedback.h', 521 'state_tracker/st_cb_flush.c', 522 'state_tracker/st_cb_flush.h', 523 'state_tracker/st_cb_memoryobjects.c', 524 'state_tracker/st_cb_memoryobjects.h', 525 'state_tracker/st_cb_msaa.c', 526 'state_tracker/st_cb_msaa.h', 527 'state_tracker/st_cb_perfmon.c', 528 'state_tracker/st_cb_perfmon.h', 529 'state_tracker/st_cb_program.c', 530 'state_tracker/st_cb_program.h', 531 'state_tracker/st_cb_queryobj.c', 532 'state_tracker/st_cb_queryobj.h', 533 'state_tracker/st_cb_rasterpos.c', 534 'state_tracker/st_cb_rasterpos.h', 535 'state_tracker/st_cb_readpixels.c', 536 'state_tracker/st_cb_readpixels.h', 537 'state_tracker/st_cb_strings.c', 538 'state_tracker/st_cb_strings.h', 539 'state_tracker/st_cb_syncobj.c', 540 'state_tracker/st_cb_syncobj.h', 541 'state_tracker/st_cb_texturebarrier.c', 542 'state_tracker/st_cb_texturebarrier.h', 543 'state_tracker/st_cb_texture.c', 544 'state_tracker/st_cb_texture.h', 545 'state_tracker/st_cb_viewport.c', 546 'state_tracker/st_cb_viewport.h', 547 'state_tracker/st_cb_xformfb.c', 548 'state_tracker/st_cb_xformfb.h', 549 'state_tracker/st_context.c', 550 'state_tracker/st_context.h', 551 'state_tracker/st_copytex.c', 552 'state_tracker/st_copytex.h', 553 'state_tracker/st_debug.c', 554 'state_tracker/st_debug.h', 555 'state_tracker/st_draw.c', 556 'state_tracker/st_draw_feedback.c', 557 'state_tracker/st_draw.h', 558 'state_tracker/st_extensions.c', 559 'state_tracker/st_extensions.h', 560 'state_tracker/st_format.c', 561 'state_tracker/st_format.h', 562 'state_tracker/st_gen_mipmap.c', 563 'state_tracker/st_gen_mipmap.h', 564 'state_tracker/st_gl_api.h', 565 'state_tracker/st_glsl_to_nir.cpp', 566 'state_tracker/st_glsl_to_tgsi.cpp', 567 'state_tracker/st_glsl_to_tgsi.h', 568 'state_tracker/st_glsl_to_tgsi_private.cpp', 569 'state_tracker/st_glsl_to_tgsi_private.h', 570 'state_tracker/st_glsl_to_tgsi_temprename.cpp', 571 'state_tracker/st_glsl_to_tgsi_temprename.h', 572 'state_tracker/st_glsl_types.cpp', 573 'state_tracker/st_glsl_types.h', 574 'state_tracker/st_manager.c', 575 'state_tracker/st_manager.h', 576 'state_tracker/st_mesa_to_tgsi.c', 577 'state_tracker/st_mesa_to_tgsi.h', 578 'state_tracker/st_nir.h', 579 'state_tracker/st_nir_lower_builtin.c', 580 'state_tracker/st_nir_lower_tex_src_plane.c', 581 'state_tracker/st_pbo.c', 582 'state_tracker/st_pbo.h', 583 'state_tracker/st_program.c', 584 'state_tracker/st_program.h', 585 'state_tracker/st_sampler_view.c', 586 'state_tracker/st_sampler_view.h', 587 'state_tracker/st_scissor.c', 588 'state_tracker/st_scissor.h', 589 'state_tracker/st_shader_cache.c', 590 'state_tracker/st_shader_cache.h', 591 'state_tracker/st_texture.c', 592 'state_tracker/st_texture.h', 593 'state_tracker/st_tgsi_lower_yuv.c', 594 'state_tracker/st_tgsi_lower_yuv.h', 595 'state_tracker/st_vdpau.c', 596 'state_tracker/st_vdpau.h', 597) 598 599matypes_h = [] 600if with_asm_arch == 'x86' or with_asm_arch == 'x86_64' 601 gen_matypes = executable( 602 'gen_matypes', 603 'x86/gen_matypes.c', 604 c_args : [c_vis_args, c_msvc_compat_args], 605 include_directories : inc_common, 606 ) 607 matypes_h = custom_target( 608 'matypes.h', 609 output : 'matypes.h', 610 command : [gen_matypes], 611 capture : true, 612 ) 613endif 614if with_asm_arch == 'x86' 615 files_libmesa_common += files( 616 'x86/assyntax.h', 617 'x86/clip_args.h', 618 'x86/norm_args.h', 619 'x86/xform_args.h', 620 'x86/common_x86_asm.S', 621 'x86/common_x86_asm.h', 622 'x86/common_x86_features.h', 623 'x86/x86_xform.h', 624 'x86/x86_xform2.S', 625 'x86/x86_xform3.S', 626 'x86/x86_xform4.S', 627 'x86/x86_cliptest.S', 628 'x86/mmx.h', 629 'x86/mmx_blend.S', 630 'x86/mmx_blendtmp.h', 631 'x86/3dnow.h', 632 'x86/3dnow_xform1.S', 633 'x86/3dnow_xform2.S', 634 'x86/3dnow_xform3.S', 635 'x86/3dnow_xform4.S', 636 'x86/sse.h', 637 'x86/sse_xform1.S', 638 'x86/sse_xform2.S', 639 'x86/sse_xform3.S', 640 'x86/sse_xform4.S', 641 'x86/sse_normal.S', 642 'x86/read_rgba_span_x86.S', 643 ) 644elif with_asm_arch == 'x86_64' 645 files_libmesa_common += files('x86-64/x86-64.h', 'x86-64/xform4.S') 646endif 647# TODO: sparc 648 649format_fallback_c = custom_target( 650 'format_fallback.c', 651 input : ['main/format_fallback.py', 'main/formats.csv'], 652 output : 'format_fallback.c', 653 command : [prog_python2, '@INPUT0@', '@INPUT1@', '@OUTPUT@'], 654 depend_files : files('main/format_parser.py'), 655) 656 657get_hash_h = custom_target( 658 'get_hash.h', 659 input : ['main/get_hash_generator.py', gl_and_es_api_files], 660 output : 'get_hash.h', 661 command : [prog_python2, '@INPUT0@', '-f', '@INPUT1@'], 662 depend_files : files('main/get_hash_params.py'), 663 capture : true, 664) 665 666foreach x : [['format_info.h', 'format_info.py'], 667 ['format_pack.c', 'format_pack.py'], 668 ['format_unpack.c', 'format_unpack.py']] 669 files_libmesa_common += custom_target( 670 x[0], 671 input : ['main/@0@'.format(x[1]), 'main/formats.csv'], 672 output : x[0], 673 command : [prog_python2, '@INPUT0@', '@INPUT1@'], 674 depend_files : files('main/format_parser.py'), 675 capture : true, 676 ) 677endforeach 678 679files_libmesa_common += [ 680 mesa_lex, 681 program_parse_tab, 682 main_api_exec_c, 683 main_enums_c, 684 format_fallback_c, 685 get_hash_h, 686 main_marshal_generated_c, 687 main_marshal_generated_h, 688 main_dispatch_h, 689 ir_expression_operation_h, 690 main_remap_helper_h, 691 matypes_h, 692 sha1_h, 693] 694 695if with_sse41 696 libmesa_sse41 = static_library( 697 'mesa_sse41', 698 files('main/streaming-load-memcpy.c', 'main/sse_minmax.c'), 699 c_args : [c_vis_args, c_msvc_compat_args, sse41_args], 700 include_directories : inc_common, 701 ) 702else 703 libmesa_sse41 = [] 704endif 705 706libmesa_classic = static_library( 707 'mesa_classic', 708 [files_libmesa_common, files_libmesa_classic], 709 c_args : [c_vis_args, c_msvc_compat_args], 710 cpp_args : [cpp_vis_args, cpp_msvc_compat_args], 711 include_directories : [inc_common, include_directories('main')], 712 link_with : [libglsl, libmesa_sse41], 713 dependencies : idep_nir_headers, 714 build_by_default : false, 715) 716 717libmesa_gallium = static_library( 718 'mesa_gallium', 719 [files_libmesa_common, files_libmesa_gallium], 720 c_args : [c_vis_args, c_msvc_compat_args], 721 cpp_args : [cpp_vis_args, cpp_msvc_compat_args], 722 include_directories : [inc_common, include_directories('main')], 723 link_with : [libglsl, libmesa_sse41], 724 dependencies : [idep_nir_headers, dep_vdpau], 725 build_by_default : false, 726) 727 728subdir('drivers/dri') 729if with_osmesa == 'classic' 730 subdir('drivers/osmesa') 731endif 732if with_glx == 'xlib' 733 subdir('drivers/x11') 734endif 735if with_tests and dri_drivers != [] 736 subdir('main/tests') 737endif 738