1noinst_LTLIBRARIES = libXwinGLX.la
2lib_LTLIBRARIES = libnativeGLthunk.la
3
4libXwinGLX_la_SOURCES = \
5	winpriv.c \
6	winpriv.h \
7	glwindows.h \
8	glshim.c \
9	indirect.c \
10	indirect.h \
11	wgl_ext_api.c \
12	wgl_ext_api.h
13
14if XWIN_WINDOWS_DRI
15libXwinGLX_la_SOURCES += \
16	dri_helpers.c \
17	dri_helpers.h
18endif
19
20libnativeGLthunk_la_SOURCES = \
21	glthunk.c
22
23if XWIN_GLX_WINDOWS
24DEFS_GLX_WINDOWS = -DXWIN_GLX_WINDOWS
25endif
26
27DEFS = \
28	$(DEFS_GLX_WINDOWS)
29
30AM_CFLAGS = -DHAVE_XWIN_CONFIG_H $(DIX_CFLAGS) \
31            $(XWINMODULES_CFLAGS) \
32            -I$(top_srcdir) \
33            -I$(top_srcdir)/hw/xwin/
34
35libnativeGLthunk_la_CFLAGS = $(AM_CFLAGS) -Wno-unused-function -Wno-missing-prototypes -Wno-missing-declarations
36libnativeGLthunk_la_LDFLAGS = -shared -no-undefined -avoid-version -lopengl32 -export-symbols generated_gl_thunks.def
37EXTRA_libnativeGLthunk_la_DEPENDENCIES = generated_gl_thunks.def
38
39if XWIN_GLX_WINDOWS
40
41if DEBUG
42GENGLWRAPPERSOPTS=""
43else
44GENGLWRAPPERSOPTS="-nodebug"
45endif
46
47generated_wgl_wrappers.ic: $(srcdir)/gen_gl_wrappers.py $(KHRONOS_SPEC_DIR)/wgl.xml $(KHRONOS_SPEC_DIR)/reg.py
48	$(AM_V_GEN)PYTHONPATH=$(KHRONOS_SPEC_DIR) $(PYTHON3) $(srcdir)/gen_gl_wrappers.py -registry $(KHRONOS_SPEC_DIR)/wgl.xml -prefix wgl -wrapper -preresolve $(GENGLWRAPPERSOPTS) -outfile $@
49
50generated_gl_shim.ic: $(srcdir)/gen_gl_wrappers.py $(KHRONOS_SPEC_DIR)/gl.xml $(KHRONOS_SPEC_DIR)/reg.py
51	$(AM_V_GEN)PYTHONPATH=$(KHRONOS_SPEC_DIR) $(PYTHON3) $(srcdir)/gen_gl_wrappers.py -registry $(KHRONOS_SPEC_DIR)/gl.xml -shim $(GENGLWRAPPERSOPTS) -outfile $@
52
53generated_gl_thunks.ic: $(srcdir)/gen_gl_wrappers.py $(KHRONOS_SPEC_DIR)/gl.xml $(KHRONOS_SPEC_DIR)/reg.py
54	$(AM_V_GEN)PYTHONPATH=$(KHRONOS_SPEC_DIR) $(PYTHON3) $(srcdir)/gen_gl_wrappers.py -registry $(KHRONOS_SPEC_DIR)/gl.xml -thunk $(GENGLWRAPPERSOPTS) -outfile $@
55
56generated_gl_thunks.def: $(srcdir)/gen_gl_wrappers.py $(KHRONOS_SPEC_DIR)/gl.xml $(KHRONOS_SPEC_DIR)/reg.py
57	$(AM_V_GEN)PYTHONPATH=$(KHRONOS_SPEC_DIR) $(PYTHON3) $(srcdir)/gen_gl_wrappers.py -registry $(KHRONOS_SPEC_DIR)/gl.xml -thunkdefs $(GENGLWRAPPERSOPTS) -outfile $@
58
59BUILT_SOURCES = generated_gl_shim.ic generated_gl_thunks.ic generated_gl_thunks.def generated_wgl_wrappers.ic
60CLEANFILES = $(BUILT_SOURCES)
61
62endif
63
64EXTRA_DIST = gen_gl_wrappers.py
65