80b8176e29
I added gl-x11 which allows compatibility with X11 (Xlib-based) and GLX. I also added various functions to handle file finding based on FHS. Various changes to autotools to both install files correctly and to configure correctly.
46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
AUTOMAKE_OPTIONS = subdir-objects
|
|
AM_CFLAGS = -DGLEW_NO_GLU -DGLEW_STATIC -isystem$(top_srcdir)/libobs -isystem./glew/include
|
|
|
|
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
|
|
|
|
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
|
|
|
|
if OS_OSX
|
|
libobs_opengl_la_SOURCES += gl-cocoa.m
|
|
libobs_opengl_la_LDFLAGS += -framework Cocoa -framework IOSurface
|
|
endif
|
|
|
|
if OS_WIN
|
|
libobs_opengl_la_SOURCES += gl-windows.c
|
|
endif
|
|
|
|
if OS_NIX
|
|
libobs_opengl_la_SOURCES += gl-x11.c
|
|
endif
|