1/* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package { 18 // See: http://go/android-license-faq 19 default_applicable_licenses: ["external_mesa3d_license"], 20} 21 22cc_library_static { 23 name: "mesa_llvmpipe", 24 host_supported: true, 25 defaults: [ 26 "mesa_common_defaults", 27 ], 28 generated_headers: [ 29 "nir_opcodes_header", 30 "nir_builder_opcodes_header", 31 "nir_intrinsics_header", 32 "nir_intrinsics_indices_header", 33 "ir_expression_operation_header", 34 "u_format_gen_header", 35 "builtin_types_header", 36 "git_sha1_header", 37 ], 38 header_libs: [ 39 "mesa_gallium_headers", 40 "mesa_gallium_auxiliary_headers", 41 "mesa_llvmpipe_headers", 42 "mesa_nir_headers", 43 "mesa_compiler_headers", 44 ], 45 srcs: [ 46 "lp_context.c", 47 "lp_state_derived.c", 48 "lp_state_rasterizer.c", 49 "lp_fence.c", 50 "lp_linear_fastpath.c", 51 "lp_jit.c", 52 "lp_linear_sampler.c", 53 "lp_state_fs.c", 54 "lp_rast_linear.c", 55 "lp_rast_debug.c", 56 "lp_state_cs.c", 57 "lp_state_setup.c", 58 "lp_setup_analysis.c", 59 "lp_state_gs.c", 60 "lp_rast_rect.c", 61 "lp_clear.c", 62 "lp_tex_sample.c", 63 "lp_memory.c", 64 "lp_state_fs_linear_llvm.c", 65 "lp_setup_vbuf.c", 66 "lp_state_vs.c", 67 "lp_bld_alpha.c", 68 "lp_rast_tri.c", 69 "lp_bld_blend.c", 70 "lp_texture_handle.c", 71 "lp_setup_rect.c", 72 "lp_state_tess.c", 73 "lp_linear.c", 74 "lp_state_fs_analysis.c", 75 "lp_query.c", 76 "lp_flush.c", 77 "lp_perf.c", 78 "lp_state_so.c", 79 "lp_state_blend.c", 80 "lp_state_fs_fastpath.c", 81 "lp_cs_tpool.c", 82 "lp_rast.c", 83 "lp_scene.c", 84 "lp_linear_interp.c", 85 "lp_setup_tri.c", 86 "lp_bld_interp.c", 87 "lp_bld_blend_aos.c", 88 "lp_state_surface.c", 89 "lp_setup_line.c", 90 "lp_state_clip.c", 91 "lp_setup.c", 92 "lp_draw_arrays.c", 93 "lp_bld_depth.c", 94 "lp_scene_queue.c", 95 "lp_surface.c", 96 "lp_bld_blend_logicop.c", 97 "lp_state_sampler.c", 98 "lp_rast_linear_fallback.c", 99 "lp_state_fs_linear.c", 100 "lp_state_vertex.c", 101 "lp_texture.c", 102 "lp_screen.c", 103 "lp_setup_point.c", 104 ], 105 static_libs: [ 106 "mesa_util", 107 "libLLVM16_swiftshader", 108 ], 109 shared_libs: [ 110 "libdrm", 111 ], 112 target: { 113 android: { 114 shared_libs: [ 115 "libsync", 116 ], 117 }, 118 }, 119} 120