Bug 793073 - B2G RIL: Quickly tapping Airplane Mode causes phone keeping in Emergency...
[gecko.git] / gfx / tests / Makefile.in
blobcf2ec50706633edee406315e4972359fe87501ea
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 DEPTH = @DEPTH@
7 topsrcdir = @top_srcdir@
8 srcdir = @srcdir@
9 VPATH = @srcdir@
10 relativesrcdir = @relativesrcdir@
12 include $(DEPTH)/config/autoconf.mk
14 MODULE = gfx
15 MOZILLA_INTERNAL_API = 1
17 XPCSHELL_TESTS = unit
19 MOCHITEST_FILES = $(addprefix mochitest/, \
20 test_bug509244.html \
21 test_bug513439.html \
22 test_acceleration.html \
25 # CPP_UNIT_TESTS disabled for now because they dont work in libxul builds.
26 #ifndef BUILD_STATIC_LIBS
28 #CPP_UNIT_TESTS = \
29 # TestColorNames.cpp \
30 # TestRect.cpp \
31 # TestRegion.cpp \
32 # $(NULL)
34 ## These are built but not run. gfxColorManagementTest.cpp can't even
35 ## be built, because it has not been updated for qcms.
36 #CPP_DISABLED_UNIT_TESTS = \
37 # gfxFontSelectionTest.cpp \
38 # gfxSurfaceRefCountTest.cpp \
39 # gfxTextRunPerfTest.cpp \
40 # gfxWordCacheTest.cpp \
41 # $(NULL)
42 ## gfxColorManagementTest.cpp \
45 ## rules.mk will put the CPP_UNIT_TESTS into SIMPLE_PROGRAMS twice if we
46 ## define SIMPLE_PROGRAMS based on CPPSRCS directly.
47 #CPPSRCS = $(CPP_DISABLED_UNIT_TESTS)
48 #SIMPLE_PROGRAMS = $(CPP_DISABLED_UNIT_TESTS:.cpp=$(BIN_SUFFIX))
50 #ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
51 #CMMSRCS = gfxTestCocoaHelper.mm
52 #HELPER_OBJS = gfxTestCocoaHelper.$(OBJ_SUFFIX)
53 #EXTRA_DEPS += gfxTestCocoaHelper.$(OBJ_SUFFIX)
54 #endif
56 #LIBS = \
57 # $(HELPER_OBJS) \
58 # $(call EXPAND_LIBNAME_PATH,thebes,../thebes) \
59 # $(call EXPAND_LIBNAME_PATH,gkgfx,../src) \
60 # $(MOZ_UNICHARUTIL_LIBS) \
61 # $(XPCOM_LIBS) \
62 # $(MOZ_JS_LIBS) \
63 # $(TK_LIBS) \
64 # $(NULL)
66 #endif
68 include $(topsrcdir)/config/rules.mk
70 CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS) $(TK_CFLAGS)
72 ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
73 OS_LIBS += $(call EXPAND_LIBNAME,usp10)
74 endif
76 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
77 OS_LIBS += -framework Cocoa
78 endif
80 ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
81 OS_LIBS += $(MOZ_PANGO_LIBS) $(XLIBS)
82 CXXFLAGS += $(MOZ_PANGO_CFLAGS)
83 endif