1b8e80941Smrg# Copyright (C) 2019 Icenowy Zheng <icenowy@aosc.io>
2b8e80941Smrg#
3b8e80941Smrg# Permission is hereby granted, free of charge, to any person obtaining a
4b8e80941Smrg# copy of this software and associated documentation files (the "Software"),
5b8e80941Smrg# to deal in the Software without restriction, including without limitation
6b8e80941Smrg# the rights to use, copy, modify, merge, publish, distribute, sublicense,
7b8e80941Smrg# and/or sell copies of the Software, and to permit persons to whom the
8b8e80941Smrg# Software is furnished to do so, subject to the following conditions:
9b8e80941Smrg#
10b8e80941Smrg# The above copyright notice and this permission notice shall be included
11b8e80941Smrg# in all copies or substantial portions of the Software.
12b8e80941Smrg#
13b8e80941Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14b8e80941Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15b8e80941Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
16b8e80941Smrg# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17b8e80941Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18b8e80941Smrg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
19b8e80941Smrg# DEALINGS IN THE SOFTWARE.
20b8e80941Smrg
21b8e80941SmrgLOCAL_PATH := $(call my-dir)
22b8e80941Smrg
23b8e80941Smrginclude $(CLEAR_VARS)
24b8e80941Smrg
25b8e80941SmrgLOCAL_SRC_FILES := \
26b8e80941Smrg	ir/gp/codegen.c \
27b8e80941Smrg	ir/gp/codegen.h \
28b8e80941Smrg	ir/gp/disasm.c \
29b8e80941Smrg	ir/gp/gpir.h \
30b8e80941Smrg	ir/gp/instr.c \
31b8e80941Smrg	ir/gp/lower.c \
32b8e80941Smrg	ir/gp/nir.c \
33b8e80941Smrg	ir/gp/node.c \
34b8e80941Smrg	ir/gp/physical_regalloc.c \
35b8e80941Smrg	ir/gp/reduce_scheduler.c \
36b8e80941Smrg	ir/gp/scheduler.c \
37b8e80941Smrg	ir/gp/value_regalloc.c \
38b8e80941Smrg	ir/lima_ir.h \
39b8e80941Smrg	ir/lima_nir_lower_uniform_to_scalar.c \
40b8e80941Smrg	ir/pp/codegen.c \
41b8e80941Smrg	ir/pp/codegen.h \
42b8e80941Smrg	ir/pp/disasm.c \
43b8e80941Smrg	ir/pp/instr.c \
44b8e80941Smrg	ir/pp/lower.c \
45b8e80941Smrg	ir/pp/nir.c \
46b8e80941Smrg	ir/pp/node.c \
47b8e80941Smrg	ir/pp/node_to_instr.c \
48b8e80941Smrg	ir/pp/ppir.h \
49b8e80941Smrg	ir/pp/regalloc.c \
50b8e80941Smrg	ir/pp/scheduler.c \
51b8e80941Smrg	lima_bo.c \
52b8e80941Smrg	lima_bo.h \
53b8e80941Smrg	lima_context.c \
54b8e80941Smrg	lima_context.h \
55b8e80941Smrg	lima_draw.c \
56b8e80941Smrg	lima_fence.c \
57b8e80941Smrg	lima_fence.h \
58b8e80941Smrg	lima_program.c \
59b8e80941Smrg	lima_program.h \
60b8e80941Smrg	lima_query.c \
61b8e80941Smrg	lima_resource.c \
62b8e80941Smrg	lima_resource.h \
63b8e80941Smrg	lima_screen.c \
64b8e80941Smrg	lima_screen.h \
65b8e80941Smrg	lima_state.c \
66b8e80941Smrg	lima_submit.c \
67b8e80941Smrg	lima_submit.h \
68b8e80941Smrg	lima_texture.c \
69b8e80941Smrg	lima_texture.h \
70b8e80941Smrg	lima_tiling.c \
71b8e80941Smrg	lima_tiling.h \
72b8e80941Smrg	lima_util.c \
73b8e80941Smrg	lima_util.h
74b8e80941Smrg
75b8e80941SmrgLOCAL_MODULE := libmesa_pipe_lima
76b8e80941Smrg
77b8e80941SmrgLOCAL_SHARED_LIBRARIES := libdrm
78b8e80941Smrg
79b8e80941SmrgLOCAL_STATIC_LIBRARIES := libmesa_nir
80b8e80941Smrg
81b8e80941Smrginclude $(GALLIUM_COMMON_MK)
82b8e80941Smrginclude $(BUILD_STATIC_LIBRARY)
83b8e80941Smrg
84b8e80941Smrgifneq ($(HAVE_GALLIUM_LIMA),)
85b8e80941SmrgGALLIUM_TARGET_DRIVERS += lima
86b8e80941Smrg$(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_lima)
87b8e80941Smrg$(eval GALLIUM_SHARED_LIBS += $(LOCAL_SHARED_LIBRARIES))
88b8e80941Smrgendif
89