2010-12-05 08:36:02 -07:00
|
|
|
noinst_LTLIBRARIES = libXwinGLX.la
|
2014-05-02 13:27:46 -06:00
|
|
|
lib_LTLIBRARIES = libnativeGLthunk.la
|
2010-12-05 08:36:02 -07:00
|
|
|
|
|
|
|
libXwinGLX_la_SOURCES = \
|
|
|
|
winpriv.c \
|
|
|
|
winpriv.h \
|
|
|
|
glwindows.h \
|
2014-05-02 13:27:46 -06:00
|
|
|
glshim.c \
|
2010-12-05 08:36:02 -07:00
|
|
|
indirect.c \
|
2013-06-07 11:28:45 -06:00
|
|
|
wgl_ext_api.c \
|
|
|
|
wgl_ext_api.h
|
2010-12-05 08:36:02 -07:00
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
libnativeGLthunk_la_SOURCES = \
|
|
|
|
glthunk.c
|
|
|
|
|
2010-12-05 08:36:02 -07:00
|
|
|
if XWIN_MULTIWINDOW
|
|
|
|
DEFS_MULTIWINDOW = -DXWIN_MULTIWINDOW
|
|
|
|
endif
|
|
|
|
|
|
|
|
if XWIN_MULTIWINDOWEXTWM
|
|
|
|
DEFS_MULTIWINDOWEXTWM = -DXWIN_MULTIWINDOWEXTWM
|
|
|
|
endif
|
|
|
|
|
2011-11-05 07:32:40 -06:00
|
|
|
if XWIN_GLX_WINDOWS
|
|
|
|
DEFS_GLX_WINDOWS = -DXWIN_GLX_WINDOWS
|
|
|
|
endif
|
|
|
|
|
|
|
|
DEFS = $(DEFS_MULTIWINDOW) $(DEFS_MULTIWINDOWEXTWM) $(DEFS_GLX_WINDOWS)
|
2010-12-05 08:36:02 -07:00
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/miext/rootless
|
2010-12-05 08:36:02 -07:00
|
|
|
|
|
|
|
AM_CFLAGS = -DHAVE_XWIN_CONFIG_H $(DIX_CFLAGS) \
|
|
|
|
$(XWINMODULES_CFLAGS) \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
-I$(top_srcdir)/hw/xwin/
|
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
libnativeGLthunk_la_CFLAGS = $(AM_CFLAGS) -Wno-unused-function -Wno-missing-prototypes -Wno-missing-declarations
|
|
|
|
libnativeGLthunk_la_LDFLAGS = -shared -no-undefined -avoid-version -lopengl32 -export-symbols generated_gl_thunks.def
|
|
|
|
EXTRA_libnativeGLthunk_la_DEPENDENCIES = generated_gl_thunks.def
|
|
|
|
|
2011-11-05 07:32:40 -06:00
|
|
|
if XWIN_GLX_WINDOWS
|
2010-12-05 08:36:02 -07:00
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
if DEBUG
|
|
|
|
GENGLWRAPPERSOPTS=""
|
|
|
|
else
|
|
|
|
GENGLWRAPPERSOPTS="-nodebug"
|
|
|
|
endif
|
|
|
|
|
|
|
|
generated_wgl_wrappers.c: $(srcdir)/gen_gl_wrappers.py $(KHRONOS_SPEC_DIR)/wgl.xml $(KHRONOS_SPEC_DIR)/reg.py
|
|
|
|
$(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 $@
|
|
|
|
|
|
|
|
generated_gl_shim.c: $(srcdir)/gen_gl_wrappers.py $(KHRONOS_SPEC_DIR)/gl.xml $(KHRONOS_SPEC_DIR)/reg.py
|
|
|
|
$(AM_V_GEN)PYTHONPATH=$(KHRONOS_SPEC_DIR) $(PYTHON3) $(srcdir)/gen_gl_wrappers.py -registry $(KHRONOS_SPEC_DIR)/gl.xml -shim $(GENGLWRAPPERSOPTS) -outfile $@
|
|
|
|
|
|
|
|
generated_gl_thunks.c: $(srcdir)/gen_gl_wrappers.py $(KHRONOS_SPEC_DIR)/gl.xml $(KHRONOS_SPEC_DIR)/reg.py
|
|
|
|
$(AM_V_GEN)PYTHONPATH=$(KHRONOS_SPEC_DIR) $(PYTHON3) $(srcdir)/gen_gl_wrappers.py -registry $(KHRONOS_SPEC_DIR)/gl.xml -thunk $(GENGLWRAPPERSOPTS) -outfile $@
|
2010-12-05 08:36:02 -07:00
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
generated_gl_thunks.def: $(srcdir)/gen_gl_wrappers.py $(KHRONOS_SPEC_DIR)/gl.xml $(KHRONOS_SPEC_DIR)/reg.py
|
|
|
|
$(AM_V_GEN)PYTHONPATH=$(KHRONOS_SPEC_DIR) $(PYTHON3) $(srcdir)/gen_gl_wrappers.py -registry $(KHRONOS_SPEC_DIR)/gl.xml -thunkdefs $(GENGLWRAPPERSOPTS) -outfile $@
|
2011-11-05 07:32:40 -06:00
|
|
|
endif
|
2010-12-05 08:36:02 -07:00
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
BUILT_SOURCES = generated_gl_shim.c generated_gl_thunks.c generated_gl_thunks.def generated_wgl_wrappers.c
|
2010-12-05 08:36:02 -07:00
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
|
2011-11-05 07:32:40 -06:00
|
|
|
EXTRA_DIST = gen_gl_wrappers.py
|