101e04c3fSmrg# Copyright © 2017 Dylan Baker 201e04c3fSmrg 301e04c3fSmrg# Permission is hereby granted, free of charge, to any person obtaining a copy 401e04c3fSmrg# of this software and associated documentation files (the "Software"), to deal 501e04c3fSmrg# in the Software without restriction, including without limitation the rights 601e04c3fSmrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 701e04c3fSmrg# copies of the Software, and to permit persons to whom the Software is 801e04c3fSmrg# furnished to do so, subject to the following conditions: 901e04c3fSmrg 1001e04c3fSmrg# The above copyright notice and this permission notice shall be included in 1101e04c3fSmrg# all copies or substantial portions of the Software. 1201e04c3fSmrg 1301e04c3fSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1401e04c3fSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1501e04c3fSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1601e04c3fSmrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1701e04c3fSmrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1801e04c3fSmrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1901e04c3fSmrg# SOFTWARE. 2001e04c3fSmrg 2101e04c3fSmrgfiles_libnouveau = files( 2201e04c3fSmrg 'nouveau_buffer.c', 2301e04c3fSmrg 'nouveau_buffer.h', 2401e04c3fSmrg 'nouveau_context.h', 2501e04c3fSmrg 'nouveau_debug.h', 2601e04c3fSmrg 'nouveau_fence.c', 2701e04c3fSmrg 'nouveau_fence.h', 2801e04c3fSmrg 'nouveau_gldefs.h', 2901e04c3fSmrg 'nouveau_heap.c', 3001e04c3fSmrg 'nouveau_heap.h', 3101e04c3fSmrg 'nouveau_mm.c', 3201e04c3fSmrg 'nouveau_mm.h', 3301e04c3fSmrg 'nouveau_screen.c', 3401e04c3fSmrg 'nouveau_screen.h', 3501e04c3fSmrg 'nouveau_video.c', 3601e04c3fSmrg 'nouveau_video.h', 3701e04c3fSmrg 'nouveau_vp3_video_bsp.c', 3801e04c3fSmrg 'nouveau_vp3_video.c', 3901e04c3fSmrg 'nouveau_vp3_video.h', 4001e04c3fSmrg 'nouveau_vp3_video_vp.c', 4101e04c3fSmrg 'nouveau_winsys.h', 4201e04c3fSmrg 'nv17_mpeg.xml.h', 4301e04c3fSmrg 'nv31_mpeg.xml.h', 4401e04c3fSmrg 'nv_m2mf.xml.h', 4501e04c3fSmrg 'nv_object.xml.h', 4601e04c3fSmrg 'nv30/nv01_2d.xml.h', 4701e04c3fSmrg 'nv30/nv30-40_3d.xml.h', 4801e04c3fSmrg 'nv30/nv30_clear.c', 4901e04c3fSmrg 'nv30/nv30_context.c', 5001e04c3fSmrg 'nv30/nv30_context.h', 5101e04c3fSmrg 'nv30/nv30_draw.c', 5201e04c3fSmrg 'nv30/nv30_format.c', 5301e04c3fSmrg 'nv30/nv30_format.h', 5401e04c3fSmrg 'nv30/nv30_fragprog.c', 5501e04c3fSmrg 'nv30/nv30_fragtex.c', 5601e04c3fSmrg 'nv30/nv30_miptree.c', 5701e04c3fSmrg 'nv30/nv30_push.c', 5801e04c3fSmrg 'nv30/nv30_query.c', 5901e04c3fSmrg 'nv30/nv30_resource.c', 6001e04c3fSmrg 'nv30/nv30_resource.h', 6101e04c3fSmrg 'nv30/nv30_screen.c', 6201e04c3fSmrg 'nv30/nv30_screen.h', 6301e04c3fSmrg 'nv30/nv30_state.c', 6401e04c3fSmrg 'nv30/nv30_state.h', 6501e04c3fSmrg 'nv30/nv30_state_validate.c', 6601e04c3fSmrg 'nv30/nv30_texture.c', 6701e04c3fSmrg 'nv30/nv30_transfer.c', 6801e04c3fSmrg 'nv30/nv30_transfer.h', 6901e04c3fSmrg 'nv30/nv30_vbo.c', 7001e04c3fSmrg 'nv30/nv30_vertprog.c', 7101e04c3fSmrg 'nv30/nv30_vertprog.h', 7201e04c3fSmrg 'nv30/nv30_winsys.h', 7301e04c3fSmrg 'nv30/nv40_vertprog.h', 7401e04c3fSmrg 'nv30/nv40_verttex.c', 7501e04c3fSmrg 'nv30/nvfx_fragprog.c', 7601e04c3fSmrg 'nv30/nvfx_shader.h', 7701e04c3fSmrg 'nv30/nvfx_vertprog.c', 7801e04c3fSmrg 'nv50/g80_defs.xml.h', 7901e04c3fSmrg 'nv50/g80_texture.xml.h', 8001e04c3fSmrg 'nv50/nv50_2d.xml.h', 8101e04c3fSmrg 'nv50/nv50_3ddefs.xml.h', 8201e04c3fSmrg 'nv50/nv50_3d.xml.h', 8301e04c3fSmrg 'nv50/nv50_blit.h', 8401e04c3fSmrg 'nv50/nv50_compute.c', 8501e04c3fSmrg 'nv50/nv50_compute.xml.h', 8601e04c3fSmrg 'nv50/nv50_context.c', 8701e04c3fSmrg 'nv50/nv50_context.h', 8801e04c3fSmrg 'nv50/nv50_formats.c', 8901e04c3fSmrg 'nv50/nv50_miptree.c', 9001e04c3fSmrg 'nv50/nv50_program.c', 9101e04c3fSmrg 'nv50/nv50_program.h', 9201e04c3fSmrg 'nv50/nv50_push.c', 9301e04c3fSmrg 'nv50/nv50_query.c', 9401e04c3fSmrg 'nv50/nv50_query.h', 9501e04c3fSmrg 'nv50/nv50_query_hw.c', 9601e04c3fSmrg 'nv50/nv50_query_hw.h', 9701e04c3fSmrg 'nv50/nv50_query_hw_metric.c', 9801e04c3fSmrg 'nv50/nv50_query_hw_metric.h', 9901e04c3fSmrg 'nv50/nv50_query_hw_sm.c', 10001e04c3fSmrg 'nv50/nv50_query_hw_sm.h', 10101e04c3fSmrg 'nv50/nv50_resource.c', 10201e04c3fSmrg 'nv50/nv50_resource.h', 10301e04c3fSmrg 'nv50/nv50_screen.c', 10401e04c3fSmrg 'nv50/nv50_screen.h', 10501e04c3fSmrg 'nv50/nv50_shader_state.c', 10601e04c3fSmrg 'nv50/nv50_state.c', 10701e04c3fSmrg 'nv50/nv50_stateobj.h', 10801e04c3fSmrg 'nv50/nv50_stateobj_tex.h', 10901e04c3fSmrg 'nv50/nv50_state_validate.c', 11001e04c3fSmrg 'nv50/nv50_surface.c', 11101e04c3fSmrg 'nv50/nv50_tex.c', 11201e04c3fSmrg 'nv50/nv50_transfer.c', 11301e04c3fSmrg 'nv50/nv50_transfer.h', 11401e04c3fSmrg 'nv50/nv50_vbo.c', 11501e04c3fSmrg 'nv50/nv50_winsys.h', 11601e04c3fSmrg 'nv50/nv84_video_bsp.c', 11701e04c3fSmrg 'nv50/nv84_video.c', 11801e04c3fSmrg 'nv50/nv84_video.h', 11901e04c3fSmrg 'nv50/nv84_video_vp.c', 12001e04c3fSmrg 'nv50/nv98_video_bsp.c', 12101e04c3fSmrg 'nv50/nv98_video.c', 12201e04c3fSmrg 'nv50/nv98_video.h', 12301e04c3fSmrg 'nv50/nv98_video_ppp.c', 12401e04c3fSmrg 'nv50/nv98_video_vp.c', 12501e04c3fSmrg 'codegen/nv50_ir.cpp', 12601e04c3fSmrg 'codegen/nv50_ir_bb.cpp', 12701e04c3fSmrg 'codegen/nv50_ir_build_util.cpp', 12801e04c3fSmrg 'codegen/nv50_ir_build_util.h', 12901e04c3fSmrg 'codegen/nv50_ir_driver.h', 13001e04c3fSmrg 'codegen/nv50_ir_emit_nv50.cpp', 1319f464c52Smaya 'codegen/nv50_ir_from_common.cpp', 1329f464c52Smaya 'codegen/nv50_ir_from_common.h', 1339f464c52Smaya 'codegen/nv50_ir_from_nir.cpp', 13401e04c3fSmrg 'codegen/nv50_ir_from_tgsi.cpp', 13501e04c3fSmrg 'codegen/nv50_ir_graph.cpp', 13601e04c3fSmrg 'codegen/nv50_ir_graph.h', 13701e04c3fSmrg 'codegen/nv50_ir.h', 13801e04c3fSmrg 'codegen/nv50_ir_inlines.h', 1399f464c52Smaya 'codegen/nv50_ir_lowering_helper.cpp', 1409f464c52Smaya 'codegen/nv50_ir_lowering_helper.h', 14101e04c3fSmrg 'codegen/nv50_ir_lowering_nv50.cpp', 14201e04c3fSmrg 'codegen/nv50_ir_peephole.cpp', 14301e04c3fSmrg 'codegen/nv50_ir_print.cpp', 14401e04c3fSmrg 'codegen/nv50_ir_ra.cpp', 1457ec681f3Smrg 'codegen/nv50_ir_serialize.cpp', 14601e04c3fSmrg 'codegen/nv50_ir_ssa.cpp', 14701e04c3fSmrg 'codegen/nv50_ir_target.cpp', 14801e04c3fSmrg 'codegen/nv50_ir_target.h', 14901e04c3fSmrg 'codegen/nv50_ir_target_nv50.cpp', 15001e04c3fSmrg 'codegen/nv50_ir_target_nv50.h', 15101e04c3fSmrg 'codegen/nv50_ir_util.cpp', 15201e04c3fSmrg 'codegen/nv50_ir_util.h', 15301e04c3fSmrg 'codegen/unordered_set.h', 1547ec681f3Smrg 'codegen/nv50_ir_emit_gv100.cpp', 1557ec681f3Smrg 'codegen/nv50_ir_emit_gv100.h', 15601e04c3fSmrg 'codegen/nv50_ir_emit_gk110.cpp', 15701e04c3fSmrg 'codegen/nv50_ir_emit_gm107.cpp', 15801e04c3fSmrg 'codegen/nv50_ir_emit_nvc0.cpp', 1597ec681f3Smrg 'codegen/nv50_ir_lowering_gv100.cpp', 1607ec681f3Smrg 'codegen/nv50_ir_lowering_gv100.h', 16101e04c3fSmrg 'codegen/nv50_ir_lowering_gm107.cpp', 16201e04c3fSmrg 'codegen/nv50_ir_lowering_gm107.h', 16301e04c3fSmrg 'codegen/nv50_ir_lowering_nvc0.cpp', 16401e04c3fSmrg 'codegen/nv50_ir_lowering_nvc0.h', 1657ec681f3Smrg 'codegen/nv50_ir_target_gv100.cpp', 1667ec681f3Smrg 'codegen/nv50_ir_target_gv100.h', 16701e04c3fSmrg 'codegen/nv50_ir_target_gm107.cpp', 16801e04c3fSmrg 'codegen/nv50_ir_target_gm107.h', 16901e04c3fSmrg 'codegen/nv50_ir_target_nvc0.cpp', 17001e04c3fSmrg 'codegen/nv50_ir_target_nvc0.h', 1717ec681f3Smrg 'nvc0/cla0c0qmd.h', 1727ec681f3Smrg 'nvc0/clc0c0qmd.h', 1737ec681f3Smrg 'nvc0/clc3c0qmd.h', 1747ec681f3Smrg 'nvc0/drf.h', 1757ec681f3Smrg 'nvc0/qmd.h', 1767ec681f3Smrg 'nvc0/qmda0c0.c', 1777ec681f3Smrg 'nvc0/qmdc0c0.c', 1787ec681f3Smrg 'nvc0/qmdc3c0.c', 17901e04c3fSmrg 'nvc0/gm107_texture.xml.h', 18001e04c3fSmrg 'nvc0/nvc0_3d.xml.h', 18101e04c3fSmrg 'nvc0/nvc0_compute.c', 18201e04c3fSmrg 'nvc0/nvc0_compute.xml.h', 18301e04c3fSmrg 'nvc0/nvc0_context.c', 18401e04c3fSmrg 'nvc0/nvc0_context.h', 18501e04c3fSmrg 'nvc0/nvc0_formats.c', 18601e04c3fSmrg 'nvc0/nvc0_m2mf.xml.h', 18701e04c3fSmrg 'nvc0/nvc0_macros.h', 18801e04c3fSmrg 'nvc0/nvc0_miptree.c', 18901e04c3fSmrg 'nvc0/nvc0_program.c', 19001e04c3fSmrg 'nvc0/nvc0_program.h', 19101e04c3fSmrg 'nvc0/nvc0_query.c', 19201e04c3fSmrg 'nvc0/nvc0_query.h', 19301e04c3fSmrg 'nvc0/nvc0_query_hw.c', 19401e04c3fSmrg 'nvc0/nvc0_query_hw.h', 19501e04c3fSmrg 'nvc0/nvc0_query_hw_metric.c', 19601e04c3fSmrg 'nvc0/nvc0_query_hw_metric.h', 19701e04c3fSmrg 'nvc0/nvc0_query_hw_sm.c', 19801e04c3fSmrg 'nvc0/nvc0_query_hw_sm.h', 19901e04c3fSmrg 'nvc0/nvc0_query_sw.c', 20001e04c3fSmrg 'nvc0/nvc0_query_sw.h', 20101e04c3fSmrg 'nvc0/nvc0_resource.c', 20201e04c3fSmrg 'nvc0/nvc0_resource.h', 20301e04c3fSmrg 'nvc0/nvc0_screen.c', 20401e04c3fSmrg 'nvc0/nvc0_screen.h', 20501e04c3fSmrg 'nvc0/nvc0_shader_state.c', 20601e04c3fSmrg 'nvc0/nvc0_state.c', 20701e04c3fSmrg 'nvc0/nvc0_stateobj.h', 20801e04c3fSmrg 'nvc0/nvc0_state_validate.c', 20901e04c3fSmrg 'nvc0/nvc0_surface.c', 21001e04c3fSmrg 'nvc0/nvc0_tex.c', 21101e04c3fSmrg 'nvc0/nvc0_transfer.c', 21201e04c3fSmrg 'nvc0/nvc0_vbo.c', 21301e04c3fSmrg 'nvc0/nvc0_vbo_translate.c', 21401e04c3fSmrg 'nvc0/nvc0_video_bsp.c', 21501e04c3fSmrg 'nvc0/nvc0_video.c', 21601e04c3fSmrg 'nvc0/nvc0_video.h', 21701e04c3fSmrg 'nvc0/nvc0_video_ppp.c', 21801e04c3fSmrg 'nvc0/nvc0_video_vp.c', 21901e04c3fSmrg 'nvc0/nvc0_winsys.h', 22001e04c3fSmrg 'nvc0/nve4_compute.c', 22101e04c3fSmrg 'nvc0/nve4_compute.h', 22201e04c3fSmrg 'nvc0/nve4_compute.xml.h', 2237ec681f3Smrg 'nvc0/nve4_copy.xml.h', 22401e04c3fSmrg 'nvc0/nve4_p2mf.xml.h', 22501e04c3fSmrg) 22601e04c3fSmrg 22701e04c3fSmrglibnouveau = static_library( 22801e04c3fSmrg 'nouveau', 2297ec681f3Smrg files_libnouveau, 23001e04c3fSmrg include_directories : [ 2317ec681f3Smrg inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_mapi, inc_mesa, 23201e04c3fSmrg ], 2337ec681f3Smrg gnu_symbol_visibility : 'hidden', 2347ec681f3Smrg dependencies : [dep_libdrm, dep_libdrm_nouveau, idep_mesautil, idep_nir_headers], 23501e04c3fSmrg) 23601e04c3fSmrg 23701e04c3fSmrgnouveau_compiler = executable( 23801e04c3fSmrg 'nouveau_compiler', 23901e04c3fSmrg 'nouveau_compiler.c', 24001e04c3fSmrg include_directories : [inc_src, inc_include, inc_gallium, inc_gallium_aux], 2417ec681f3Smrg dependencies : [dep_libdrm, dep_libdrm_nouveau, idep_mesautil, idep_nir], 2427ec681f3Smrg link_with : [libnouveau, libgallium], 24301e04c3fSmrg build_by_default : with_tools.contains('nouveau'), 24401e04c3fSmrg install : with_tools.contains('nouveau'), 24501e04c3fSmrg) 24601e04c3fSmrg 24701e04c3fSmrgdriver_nouveau = declare_dependency( 24801e04c3fSmrg compile_args : '-DGALLIUM_NOUVEAU', 2497ec681f3Smrg dependencies : idep_nir, 2507ec681f3Smrg link_with : [libnouveauwinsys, libnouveau], 25101e04c3fSmrg) 252