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/.
7 topsrcdir
= @top_srcdir@
10 relativesrcdir
= @relativesrcdir@
12 include $(DEPTH
)/config
/autoconf.mk
15 MOZILLA_INTERNAL_API
= 1
19 MOCHITEST_FILES
= $(addprefix mochitest
/, \
22 test_acceleration.html \
25 # CPP_UNIT_TESTS disabled for now because they dont work in libxul builds.
26 #ifndef BUILD_STATIC_LIBS
29 # TestColorNames.cpp \
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 \
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)
58 # $(call EXPAND_LIBNAME_PATH,thebes,../thebes) \
59 # $(call EXPAND_LIBNAME_PATH,gkgfx,../src) \
60 # $(MOZ_UNICHARUTIL_LIBS) \
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
)
76 ifeq ($(MOZ_WIDGET_TOOLKIT
),cocoa
)
77 OS_LIBS
+= -framework Cocoa
80 ifeq ($(MOZ_WIDGET_TOOLKIT
),gtk2
)
81 OS_LIBS
+= $(MOZ_PANGO_LIBS
) $(XLIBS
)
82 CXXFLAGS
+= $(MOZ_PANGO_CFLAGS
)