progs/tests: update getprocaddress test since moving glapi files
This commit is contained in:
@@ -134,6 +134,9 @@ INCLUDES = -I. -I$(TOP)/include
|
|||||||
UTIL_FILES = readtex.h readtex.c
|
UTIL_FILES = readtex.h readtex.c
|
||||||
|
|
||||||
|
|
||||||
|
GL_API_XML = $(TOP)/src/mapi/glapi/gen/gl_API.xml
|
||||||
|
|
||||||
|
|
||||||
##### TARGETS #####
|
##### TARGETS #####
|
||||||
|
|
||||||
default: $(UTIL_FILES) $(PROGS)
|
default: $(UTIL_FILES) $(PROGS)
|
||||||
@@ -160,7 +163,7 @@ clean:
|
|||||||
# auto code generation
|
# auto code generation
|
||||||
getprocaddress: getprocaddress.c getproclist.h
|
getprocaddress: getprocaddress.c getproclist.h
|
||||||
|
|
||||||
getproclist.h: $(TOP)/src/mesa/glapi/gen/gl_API.xml getprocaddress.c getprocaddress.py
|
getproclist.h: $(GL_API_XML) getprocaddress.c getprocaddress.py
|
||||||
python getprocaddress.py > getproclist.h
|
python getprocaddress.py > getproclist.h
|
||||||
|
|
||||||
arraytexture: arraytexture.o readtex.o
|
arraytexture: arraytexture.o readtex.o
|
||||||
|
@@ -3,8 +3,10 @@
|
|||||||
|
|
||||||
# Helper for the getprocaddress.c test.
|
# Helper for the getprocaddress.c test.
|
||||||
|
|
||||||
|
glapi_xml_path = "../../src/mapi/glapi/gen/"
|
||||||
|
|
||||||
import sys, getopt, re
|
import sys, getopt, re
|
||||||
sys.path.append("../../src/mesa/glapi/gen" )
|
sys.path.append(glapi_xml_path)
|
||||||
import gl_XML
|
import gl_XML
|
||||||
import license
|
import license
|
||||||
|
|
||||||
@@ -74,7 +76,7 @@ static struct name_test_pair functions[] = {"""
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
file_name = "../../src/mesa/glapi/gen/gl_API.xml"
|
file_name = glapi_xml_path + "gl_API.xml"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
(args, trail) = getopt.getopt(sys.argv[1:], "f:")
|
(args, trail) = getopt.getopt(sys.argv[1:], "f:")
|
||||||
|
Reference in New Issue
Block a user