2013-10-29 23:21:40 -07:00
|
|
|
INCLUDES = -iquote$(top_srcdir)/libobs -isystem./glew/include
|
|
|
|
AM_CFLAGS = -DGLEW_NO_GLU -DGLEW_STATIC
|
|
|
|
|
2013-11-01 14:33:00 -07:00
|
|
|
if OS_WIN
|
|
|
|
if ARCH_X86
|
|
|
|
libobs_opengldir = ../build/bin/32bit
|
|
|
|
else
|
|
|
|
libobs_opengldir = ../build/bin/64bit
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
libobs_opengldir = $(libdir)
|
|
|
|
endif
|
|
|
|
|
|
|
|
libobs_opengl_LTLIBRARIES = libobs-opengl.la
|
|
|
|
|
2013-10-29 23:21:40 -07:00
|
|
|
libobs_opengl_la_LDFLAGS = -no-undefined
|
|
|
|
libobs_opengl_la_LIBADD = ../libobs/libobs.la
|
|
|
|
if OS_WIN
|
|
|
|
libobs_opengl_la_LDFLAGS += -mwindows -avoid-version
|
|
|
|
libobs_opengl_la_LIBADD += -lopengl32
|
|
|
|
endif
|
|
|
|
libobs_opengl_la_SOURCES = gl-helpers.c \
|
|
|
|
gl-indexbuffer.c \
|
|
|
|
gl-shader.c \
|
|
|
|
gl-shaderparser.c \
|
|
|
|
gl-stagesurf.c \
|
|
|
|
gl-subsystem.c \
|
|
|
|
gl-texture2d.c \
|
|
|
|
gl-texturecube.c \
|
|
|
|
gl-vertexbuffer.c \
|
|
|
|
gl-zstencil.c \
|
|
|
|
glew/src/glew.c
|
2013-11-15 05:40:03 -08:00
|
|
|
|
|
|
|
if OS_OSX
|
|
|
|
libobs_opengl_la_SOURCES += gl-cocoa.m
|
|
|
|
endif
|
|
|
|
|
2013-10-29 23:21:40 -07:00
|
|
|
if OS_WIN
|
|
|
|
libobs_opengl_la_SOURCES += gl-windows.c
|
|
|
|
endif
|