<commit_before># This file isn't used during a normal compilation since we don't want to
# require Python in order to compile Mesa.
# Instead, when the Mesa developers update/change the API interface it's
# up to him/her to re-run this makefile and check in the newly generated files.


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

OUTPUTS = glprocs.h glapitemp.h glapioffsets.h glapitable.h dispatch.h \
	../main/enums.c \
	../x86/glapi_x86.S \
	../x86-64/glapi_x86-64.S \
	../sparc/glapi_sparc.S \
	../drivers/dri/common/extension_helper.h \
	../../glx/x11/indirect.c \
	../../glx/x11/indirect.h \
	../../glx/x11/indirect_init.c \
	../../glx/x11/indirect_size.h \
	../../glx/x11/indirect_size.c


GLX_DIR = $(XORG_BASE)/glx

SERVER_GLAPI_FILES = \
	$(GLX_DIR)/glapi.h \
	$(GLX_DIR)/glapi.c \
	$(GLX_DIR)/glthread.c \
	$(GLX_DIR)/glthread.h

SERVER_OUTPUTS = \
	$(GLX_DIR)/indirect_dispatch.c \
	$(GLX_DIR)/indirect_dispatch_swap.c \
	$(GLX_DIR)/indirect_dispatch.h \
	$(GLX_DIR)/indirect_reqsize.c \
	$(GLX_DIR)/indirect_reqsize.h \
	$(GLX_DIR)/indirect_size.h \
	$(GLX_DIR)/indirect_size_get.c \
	$(GLX_DIR)/indirect_size_get.h \
	$(GLX_DIR)/indirect_table.c \
	$(GLX_DIR)/glapitemp.h \
	$(GLX_DIR)/glapitable.h \
	$(GLX_DIR)/glapioffsets.h \
	$(GLX_DIR)/glprocs.h \
	$(GLX_DIR)/dispatch.h \
	$(SERVER_GLAPI_FILES)

API_XML = gl_API.xml \
	EXT_framebuffer_object.xml \
	APPLE_vertex_array_object.xml

COMMON = gl_XML.py glX_XML.py license.py $(API_XML) typeexpr.py
COMMON_GLX = $(COMMON) glX_API.xml glX_XML.py glX_proto_common.py

all: check-xorg-source $(OUTPUTS) $(SERVER_OUTPUTS)

check-xorg-source:
	@if ! test -d $(GLX_DIR); then \
		echo "ERROR: Must specify path to xserver checkout; set XORG_BASE."; \
		exit 1; \
	fi

$(GLX_DIR)/%.c: %.c
	cp $< $@

$(GLX_DIR)/%.h: %.h<commit_msg>mesa: add ARB_framebuffer_object.xml to API_XML<commit_after># This file isn't used during a normal compilation since we don't want to
# require Python in order to compile Mesa.
# Instead, when the Mesa developers update/change the API interface it's
# up to him/her to re-run this makefile and check in the newly generated files.


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

OUTPUTS = glprocs.h glapitemp.h glapioffsets.h glapitable.h dispatch.h \
	../main/enums.c \
	../x86/glapi_x86.S \
	../x86-64/glapi_x86-64.S \
	../sparc/glapi_sparc.S \
	../drivers/dri/common/extension_helper.h \
	../../glx/x11/indirect.c \
	../../glx/x11/indirect.h \
	../../glx/x11/indirect_init.c \
	../../glx/x11/indirect_size.h \
	../../glx/x11/indirect_size.c


GLX_DIR = $(XORG_BASE)/glx

SERVER_GLAPI_FILES = \
	$(GLX_DIR)/glapi.h \
	$(GLX_DIR)/glapi.c \
	$(GLX_DIR)/glthread.c \
	$(GLX_DIR)/glthread.h

SERVER_OUTPUTS = \
	$(GLX_DIR)/indirect_dispatch.c \
	$(GLX_DIR)/indirect_dispatch_swap.c \
	$(GLX_DIR)/indirect_dispatch.h \
	$(GLX_DIR)/indirect_reqsize.c \
	$(GLX_DIR)/indirect_reqsize.h \
	$(GLX_DIR)/indirect_size.h \
	$(GLX_DIR)/indirect_size_get.c \
	$(GLX_DIR)/indirect_size_get.h \
	$(GLX_DIR)/indirect_table.c \
	$(GLX_DIR)/glapitemp.h \
	$(GLX_DIR)/glapitable.h \
	$(GLX_DIR)/glapioffsets.h \
	$(GLX_DIR)/glprocs.h \
	$(GLX_DIR)/dispatch.h \
	$(SERVER_GLAPI_FILES)

API_XML = gl_API.xml \
	EXT_framebuffer_object.xml \
	ARB_framebuffer_object.xml \
	APPLE_vertex_array_object.xml

COMMON = gl_XML.py glX_XML.py license.py $(API_XML) typeexpr.py
COMMON_GLX = $(COMMON) glX_API.xml glX_XML.py glX_proto_common.py

all: check-xorg-source $(OUTPUTS) $(SERVER_OUTPUTS)

check-xorg-source:
	@if ! test -d $(GLX_DIR); then \
		echo "ERROR: Must specify path to xserver checkout; set XORG_BASE."; \
		exit 1; \
	fi

$(GLX_DIR)/%.c: %.c
	cp $< $@

$(GLX_DIR)/%.h: %.h
{'fraction_non_alphanumeric': 0.1713191023535851, 'fraction_numerical': 0.012588943623426382, 'mean_word_length': 3.33570581257414, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '777622', 'n_tokens_mistral': 1638, 'n_tokens_neox': 1586, 'n_words': 264}