Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: client/deps/glbench/src/Makefile

Issue 2122020: Fixes for GLES systems. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: ...and removed bogus #-I from Makefile Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/deps/glbench/src/egl_stuff.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/glbench/src/Makefile
diff --git a/client/deps/glbench/src/Makefile b/client/deps/glbench/src/Makefile
index 8ed1eedda9a22fe562682ed735fb75ee06f45135..7e87adf2d15d042388e1ae67d656b557466e4ef5 100644
--- a/client/deps/glbench/src/Makefile
+++ b/client/deps/glbench/src/Makefile
@@ -4,9 +4,17 @@
SOURCES_COMMON = xlib_window.cc utils.cc
SOURCES_GL_BENCH = main.cc swaptest.cc yuvtest.cc testbase.cc
-SOURCES_GL_BENCH += fillratetest.cc readpixeltest.cc trianglesetuptest.cc
+SOURCES_GL_BENCH += readpixeltest.cc
SOURCES_GL_BENCH += attributefetchtest.cc varyingsandddxytest.cc cleartest.cc
-SOURCES_GL_BENCH += windowmanagercompositingtest.cc textureupdatetest.cc
+SOURCES_GL_BENCH += textureupdatetest.cc
+
+GRAPHICS_BACKEND ?= OPENGL
+
+# TODO: port these to GLES
+ifeq ($(GRAPHICS_BACKEND),OPENGL)
+SOURCES_GL_BENCH += fillratetest.cc trianglesetuptest.cc
+SOURCES_GL_BENCH += windowmanagercompositingtest.cc
+endif
SOURCES_TEARTEST = teartest.cc
SOURCES_WINDOWMANAGERTEST = windowmanagertest.cc
SOURCES_ALL = $(SOURCES_COMMON) \
@@ -14,23 +22,26 @@ SOURCES_ALL = $(SOURCES_COMMON) \
$(SOURCES_TEARTEST) \
$(SOURCES_WINDOWMANAGERTEST)
-CXXFLAGS = -g -Wall -Werror -I$(GCLIENT_ROOT)/src/third_party/chrome/files
-LDFLAGS = -lGL -lX11
-LDFLAGS += -L$(GCLIENT_ROOT)/src/third_party/chrome -lbase -lrt -lgflags
+CXXFLAGS = -g -Wall -Werror
+LDFLAGS = -lbase -lrt -lgflags
+# To compile outside of chroot, use the following two lines:
+#CXXFLAGS += -I../../../../../../chrome/files
+#LDFLAGS += -L../../../../../../chrome
+
GL_BENCH = ../glbench
TEARTEST = ../teartest
WINDOWMANAGERTEST = ../windowmanagertest
-GCLIENT_ROOT ?= ../../../../../../../..
-
-ifdef USE_EGL
-CXXFLAGS += -I$(GCLIENT_ROOT)/src/third_party/khronos/files/include -DUSE_EGL
+ifeq ($(GRAPHICS_BACKEND),OPENGLES)
+CXXFLAGS += -DUSE_OPENGLES
SOURCES_COMMON += egl_stuff.cc
SOURCES_TEARTEST += teartest_egl.cc
-LDFLAGS += -L$(GCLIENT_ROOT)/src/third_party/khronos/files -lEGL
-else
+LDFLAGS += -lGLESv2 -lX11 -lEGL
+else ifeq ($(GRAPHICS_BACKEND),OPENGL)
+CXXFLAGS += -DUSE_OPENGL -DI915_WORKAROUND
SOURCES_COMMON += glx_stuff.cc
SOURCES_TEARTEST += teartest_glx.cc
+LDFLAGS += -lGL -lX11
endif
OBJS_COMMON = $(SOURCES_COMMON:.cc=.o)
@@ -44,7 +55,7 @@ DEPS_ALL = $(SOURCES_ALL:.cc=.d)
all: $(GL_BENCH) $(TEARTEST)
-ifndef USE_EGL
+ifeq ($(GRAPHICS_BACKEND),OPENGL)
all: $(WINDOWMANAGERTEST)
endif
@@ -55,6 +66,7 @@ $(WINDOWMANAGERTEST): $(OBJS_COMMON) $(OBJS_WINDOWMANAGERTEST)
clean:
$(RM) $(GL_BENCH) $(TEARTEST) $(WINDOWMANAGERTEST)
$(RM) $(OBJS_ALL) $(DEPS_ALL)
+ $(RM) *.o *.d
$(GL_BENCH) $(TEARTEST) $(WINDOWMANAGERTEST):
$(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS)
« no previous file with comments | « no previous file | client/deps/glbench/src/egl_stuff.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698