1bf215546Sopenharmony_ci# Copyright © 2017 Intel Corporation
2bf215546Sopenharmony_ci
3bf215546Sopenharmony_ci# Permission is hereby granted, free of charge, to any person obtaining a copy
4bf215546Sopenharmony_ci# of this software and associated documentation files (the "Software"), to deal
5bf215546Sopenharmony_ci# in the Software without restriction, including without limitation the rights
6bf215546Sopenharmony_ci# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7bf215546Sopenharmony_ci# copies of the Software, and to permit persons to whom the Software is
8bf215546Sopenharmony_ci# furnished to do so, subject to the following conditions:
9bf215546Sopenharmony_ci
10bf215546Sopenharmony_ci# The above copyright notice and this permission notice shall be included in
11bf215546Sopenharmony_ci# all copies or substantial portions of the Software.
12bf215546Sopenharmony_ci
13bf215546Sopenharmony_ci# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14bf215546Sopenharmony_ci# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15bf215546Sopenharmony_ci# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16bf215546Sopenharmony_ci# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17bf215546Sopenharmony_ci# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18bf215546Sopenharmony_ci# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19bf215546Sopenharmony_ci# SOFTWARE.
20bf215546Sopenharmony_ci
21bf215546Sopenharmony_cifiles_softpipe = files(
22bf215546Sopenharmony_ci  'sp_buffer.c',
23bf215546Sopenharmony_ci  'sp_buffer.h',
24bf215546Sopenharmony_ci  'sp_clear.c',
25bf215546Sopenharmony_ci  'sp_clear.h',
26bf215546Sopenharmony_ci  'sp_context.c',
27bf215546Sopenharmony_ci  'sp_context.h',
28bf215546Sopenharmony_ci  'sp_compute.c',
29bf215546Sopenharmony_ci  'sp_draw_arrays.c',
30bf215546Sopenharmony_ci  'sp_fence.c',
31bf215546Sopenharmony_ci  'sp_fence.h',
32bf215546Sopenharmony_ci  'sp_flush.c',
33bf215546Sopenharmony_ci  'sp_flush.h',
34bf215546Sopenharmony_ci  'sp_fs_exec.c',
35bf215546Sopenharmony_ci  'sp_fs.h',
36bf215546Sopenharmony_ci  'sp_image.c',
37bf215546Sopenharmony_ci  'sp_image.h',
38bf215546Sopenharmony_ci  'sp_limits.h',
39bf215546Sopenharmony_ci  'sp_prim_vbuf.c',
40bf215546Sopenharmony_ci  'sp_prim_vbuf.h',
41bf215546Sopenharmony_ci  'sp_public.h',
42bf215546Sopenharmony_ci  'sp_quad_blend.c',
43bf215546Sopenharmony_ci  'sp_quad_depth_test.c',
44bf215546Sopenharmony_ci  'sp_quad_depth_test_tmp.h',
45bf215546Sopenharmony_ci  'sp_quad_fs.c',
46bf215546Sopenharmony_ci  'sp_quad.h',
47bf215546Sopenharmony_ci  'sp_quad_pipe.c',
48bf215546Sopenharmony_ci  'sp_quad_pipe.h',
49bf215546Sopenharmony_ci  'sp_query.c',
50bf215546Sopenharmony_ci  'sp_query.h',
51bf215546Sopenharmony_ci  'sp_screen.c',
52bf215546Sopenharmony_ci  'sp_screen.h',
53bf215546Sopenharmony_ci  'sp_setup.c',
54bf215546Sopenharmony_ci  'sp_setup.h',
55bf215546Sopenharmony_ci  'sp_state_blend.c',
56bf215546Sopenharmony_ci  'sp_state_clip.c',
57bf215546Sopenharmony_ci  'sp_state_derived.c',
58bf215546Sopenharmony_ci  'sp_state_image.c',
59bf215546Sopenharmony_ci  'sp_state.h',
60bf215546Sopenharmony_ci  'sp_state_rasterizer.c',
61bf215546Sopenharmony_ci  'sp_state_sampler.c',
62bf215546Sopenharmony_ci  'sp_state_shader.c',
63bf215546Sopenharmony_ci  'sp_state_so.c',
64bf215546Sopenharmony_ci  'sp_state_surface.c',
65bf215546Sopenharmony_ci  'sp_state_vertex.c',
66bf215546Sopenharmony_ci  'sp_surface.c',
67bf215546Sopenharmony_ci  'sp_surface.h',
68bf215546Sopenharmony_ci  'sp_tex_sample.c',
69bf215546Sopenharmony_ci  'sp_tex_sample.h',
70bf215546Sopenharmony_ci  'sp_tex_tile_cache.c',
71bf215546Sopenharmony_ci  'sp_tex_tile_cache.h',
72bf215546Sopenharmony_ci  'sp_texture.c',
73bf215546Sopenharmony_ci  'sp_texture.h',
74bf215546Sopenharmony_ci  'sp_tile_cache.c',
75bf215546Sopenharmony_ci  'sp_tile_cache.h',
76bf215546Sopenharmony_ci)
77bf215546Sopenharmony_ci
78bf215546Sopenharmony_cilibsoftpipe = static_library(
79bf215546Sopenharmony_ci  'softpipe',
80bf215546Sopenharmony_ci  files_softpipe,
81bf215546Sopenharmony_ci  include_directories : [inc_gallium_aux, inc_gallium, inc_include, inc_src],
82bf215546Sopenharmony_ci  c_args : [c_msvc_compat_args],
83bf215546Sopenharmony_ci  gnu_symbol_visibility : 'hidden',
84bf215546Sopenharmony_ci  dependencies : idep_nir,
85bf215546Sopenharmony_ci)
86bf215546Sopenharmony_ci
87bf215546Sopenharmony_cidriver_swrast = declare_dependency(
88bf215546Sopenharmony_ci  compile_args : '-DGALLIUM_SOFTPIPE',
89bf215546Sopenharmony_ci  link_with : libsoftpipe
90bf215546Sopenharmony_ci)
91