OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 SOURCES_COMMON = xlib_window.cc utils.cc | 5 SOURCES_COMMON = xlib_window.cc utils.cc |
6 SOURCES_GL_BENCH = main.cc swaptest.cc yuvtest.cc testbase.cc | 6 SOURCES_GL_BENCH = main.cc swaptest.cc yuvtest.cc testbase.cc |
7 SOURCES_GL_BENCH += readpixeltest.cc | 7 SOURCES_GL_BENCH += readpixeltest.cc |
8 SOURCES_GL_BENCH += attributefetchtest.cc varyingsandddxytest.cc cleartest.cc | 8 SOURCES_GL_BENCH += attributefetchtest.cc varyingsandddxytest.cc cleartest.cc |
9 SOURCES_GL_BENCH += textureupdatetest.cc trianglesetuptest.cc fillratetest.cc | 9 SOURCES_GL_BENCH += textureupdatetest.cc trianglesetuptest.cc fillratetest.cc |
10 | 10 |
11 GRAPHICS_BACKEND ?= OPENGL | 11 GRAPHICS_BACKEND ?= OPENGL |
12 | 12 |
13 # TODO: port these to GLES | 13 # TODO: port these to GLES |
14 ifeq ($(GRAPHICS_BACKEND),OPENGL) | 14 ifeq ($(GRAPHICS_BACKEND),OPENGL) |
15 SOURCES_GL_BENCH += windowmanagercompositingtest.cc | 15 SOURCES_GL_BENCH += windowmanagercompositingtest.cc |
16 endif | 16 endif |
17 SOURCES_TEARTEST = teartest.cc | 17 SOURCES_TEARTEST = teartest.cc |
18 SOURCES_WINDOWMANAGERTEST = windowmanagertest.cc | 18 SOURCES_WINDOWMANAGERTEST = windowmanagertest.cc |
19 SOURCES_ALL = $(SOURCES_COMMON) \ | 19 SOURCES_ALL = $(SOURCES_COMMON) \ |
20 $(SOURCES_GL_BENCH) \ | 20 $(SOURCES_GL_BENCH) \ |
21 $(SOURCES_TEARTEST) \ | 21 $(SOURCES_TEARTEST) \ |
22 $(SOURCES_WINDOWMANAGERTEST) | 22 $(SOURCES_WINDOWMANAGERTEST) |
23 | 23 |
24 CXXFLAGS = -g -Wall -Werror | 24 CXXFLAGS = -g -Wall -Werror |
25 LDFLAGS = -lbase -lrt -lgflags | 25 LDFLAGS = -lbase -lrt -lgflags -lglib-2.0 |
26 # To compile outside of chroot, use the following two lines: | 26 # To compile outside of chroot, use the following two lines: |
27 #CXXFLAGS += -I../../../../../../chrome/files | 27 #CXXFLAGS += -I../../../../../../chrome/files |
28 #LDFLAGS += -L../../../../../../chrome | 28 #LDFLAGS += -L../../../../../../chrome |
29 | 29 |
30 GL_BENCH = ../glbench | 30 GL_BENCH = ../glbench |
31 TEARTEST = ../teartest | 31 TEARTEST = ../teartest |
32 WINDOWMANAGERTEST = ../windowmanagertest | 32 WINDOWMANAGERTEST = ../windowmanagertest |
33 | 33 |
34 ifeq ($(GRAPHICS_BACKEND),OPENGLES) | 34 ifeq ($(GRAPHICS_BACKEND),OPENGLES) |
35 CXXFLAGS += -DUSE_OPENGLES | 35 CXXFLAGS += -DUSE_OPENGLES |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 $(RM) $(OBJS_ALL) $(DEPS_ALL) | 67 $(RM) $(OBJS_ALL) $(DEPS_ALL) |
68 $(RM) *.o *.d | 68 $(RM) *.o *.d |
69 | 69 |
70 $(GL_BENCH) $(TEARTEST) $(WINDOWMANAGERTEST): | 70 $(GL_BENCH) $(TEARTEST) $(WINDOWMANAGERTEST): |
71 $(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS) | 71 $(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS) |
72 | 72 |
73 $(OBJS_ALL): %.o: %.cc | 73 $(OBJS_ALL): %.o: %.cc |
74 $(CXX) $(CXXFLAGS) -c $< -o $@ -MMD | 74 $(CXX) $(CXXFLAGS) -c $< -o $@ -MMD |
75 | 75 |
76 -include $(DEPS_ALL) | 76 -include $(DEPS_ALL) |
OLD | NEW |