2011-06-24 10:41:16 -07:00
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2011-06-24 10:41:16 -07:00
|
|
|
|
2013-02-22 16:28:08 -08:00
|
|
|
VPATH = $(srcdir) $(srcdir)/unittest
|
2011-06-24 10:41:16 -07:00
|
|
|
|
2013-06-11 10:40:27 -07:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),$(findstring $(MOZ_WIDGET_TOOLKIT),android gtk2 gtk3 gonk qt))
|
2013-06-05 10:48:59 -07:00
|
|
|
OS_CXXFLAGS += $(CAIRO_FT_CFLAGS)
|
2012-05-16 15:30:10 -07:00
|
|
|
endif
|
|
|
|
|
2012-05-09 21:31:14 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2012-08-23 12:36:04 -07:00
|
|
|
|
|
|
|
# Due to bug 796023, we can't have -DUNICODE and -D_UNICODE; defining those
|
|
|
|
# macros changes the type of LOGFONT to LOGFONTW instead of LOGFONTA. This
|
|
|
|
# changes the symbol names of exported C++ functions that use LOGFONT.
|
|
|
|
DEFINES := $(filter-out -DUNICODE -D_UNICODE,$(DEFINES))
|
2012-05-09 21:31:14 -07:00
|
|
|
|
|
|
|
# The file uses SSE2 intrinsics, so it needs special compile flags on some
|
|
|
|
# compilers.
|
|
|
|
ifneq (,$(INTEL_ARCHITECTURE))
|
|
|
|
ifdef GNU_CC
|
|
|
|
ImageScalingSSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
2012-11-07 00:29:54 -08:00
|
|
|
BlurSSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
2013-11-27 03:22:27 -08:00
|
|
|
FilterProcessingSSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
2012-05-09 21:31:14 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef SOLARIS_SUNPRO_CXX
|
|
|
|
ImageScalingSSE2.$(OBJ_SUFFIX): OS_CXXFLAGS += -xarch=sse2 -xO4
|
2012-11-07 00:29:54 -08:00
|
|
|
BlurSSE2.$(OBJ_SUFFIX): OS_CXXFLAGS += -xarch=sse2 -xO4
|
2013-11-27 03:22:27 -08:00
|
|
|
FilterProcessingSSE2.$(OBJ_SUFFIX): OS_CXXFLAGS += -xarch=sse2 -xO4
|
2012-05-09 21:31:14 -07:00
|
|
|
endif
|
|
|
|
endif
|
2012-05-07 19:40:13 -07:00
|
|
|
|
2012-05-25 23:44:00 -07:00
|
|
|
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS)
|