summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vega/Makefile
blob: 7342c124c287469a47de5b7cf2b19b7928373f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# src/gallium/state_trackers/vega/Makefile

TOP = ../../../..
include $(TOP)/configs/current

LIBNAME = vega

LIBRARY_INCLUDES = \
	-I$(TOP)/include \
	-I$(TOP)/src/mapi

LIBRARY_DEFINES = \
	-DVEGA_VERSION_STRING=\"$(MESA_VERSION)\"

C_SOURCES = \
           api.c           \
           api_context.c   \
           api_filters.c   \
           api_images.c    \
           api_masks.c     \
           api_misc.c      \
           api_paint.c     \
           api_params.c    \
           api_path.c      \
           api_text.c      \
           api_transform.c \
           vgu.c        \
           vg_context.c \
           vg_manager.c \
           vg_state.c   \
           vg_translate.c \
           polygon.c    \
           bezier.c     \
           path.c       \
           paint.c      \
           arc.c \
           image.c \
           renderer.c \
           stroker.c \
           mask.c \
           text.c \
           shader.c \
           shaders_cache.c

GENERATED_SOURCES := api_tmp.h

include ../../Makefile.template

MAPI := $(TOP)/src/mapi
api_tmp.h: $(MAPI)/mapi/mapi_abi.py $(MAPI)/vgapi/vgapi.csv
	$(PYTHON2) $< --printer vgapi --mode app $(MAPI)/vgapi/vgapi.csv > $@