2011-10-28 00:05:35 -07:00
|
|
|
#
|
2012-05-29 08:52:43 -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-10-28 00:05:35 -07:00
|
|
|
|
|
|
|
VPATH += \
|
|
|
|
$(srcdir)/src/core \
|
2012-10-16 13:21:54 -07:00
|
|
|
$(srcdir)/src/gpu \
|
|
|
|
$(srcdir)/src/gpu/effects \
|
|
|
|
$(srcdir)/src/gpu/gl \
|
2012-08-23 11:34:29 -07:00
|
|
|
$(srcdir)/src/image \
|
|
|
|
$(srcdir)/src/images \
|
2013-04-02 13:49:07 -07:00
|
|
|
$(srcdir)/src/lazy \
|
2012-08-23 11:34:29 -07:00
|
|
|
$(srcdir)/src/pipe \
|
2011-10-28 00:05:35 -07:00
|
|
|
$(srcdir)/src/ports \
|
|
|
|
$(srcdir)/src/opts \
|
|
|
|
$(srcdir)/src/effects \
|
2012-08-23 11:34:29 -07:00
|
|
|
$(srcdir)/src/effects/gradients \
|
2012-01-25 16:54:31 -08:00
|
|
|
$(srcdir)/src/utils \
|
2013-04-02 13:49:07 -07:00
|
|
|
$(srcdir)/src/utils/android \
|
2012-05-18 11:47:02 -07:00
|
|
|
$(srcdir)/src/utils/mac \
|
2012-06-13 21:27:53 -07:00
|
|
|
$(srcdir)/src/sfnt \
|
2011-10-28 00:05:35 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2013-07-25 04:46:53 -07:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),$(findstring $(MOZ_WIDGET_TOOLKIT),android gonk))
|
2012-08-01 13:43:15 -07:00
|
|
|
OS_CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(CAIRO_FT_CFLAGS)
|
2011-10-28 00:05:35 -07:00
|
|
|
endif
|
|
|
|
|
2013-08-28 04:14:47 -07:00
|
|
|
ifdef MOZ_WIDGET_GTK
|
2012-08-01 13:43:15 -07:00
|
|
|
OS_CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PANGO_CFLAGS) $(CAIRO_FT_CFLAGS)
|
2012-01-25 16:54:31 -08:00
|
|
|
endif
|
|
|
|
|
2012-03-22 13:24:57 -07:00
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
2012-08-01 13:43:15 -07:00
|
|
|
OS_CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PANGO_CFLAGS) $(CAIRO_FT_CFLAGS)
|
2011-11-17 20:00:37 -08:00
|
|
|
endif
|
|
|
|
|
2011-10-28 00:05:35 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2011-11-30 01:26:15 -08:00
|
|
|
|
|
|
|
ifneq (,$(INTEL_ARCHITECTURE))
|
|
|
|
ifdef GNU_CC
|
|
|
|
SkBitmapProcState_opts_SSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
2012-05-18 11:47:02 -07:00
|
|
|
SkBitmapProcState_opts_SSSE3.$(OBJ_SUFFIX): CXXFLAGS+=-mssse3
|
2011-11-30 01:26:15 -08:00
|
|
|
SkBlitRow_opts_SSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
2012-05-18 11:47:02 -07:00
|
|
|
SkBlitRect_opts_SSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
2011-11-30 01:26:15 -08:00
|
|
|
SkUtils_opts_SSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
|
|
|
endif
|
|
|
|
endif
|
2012-07-27 11:10:36 -07:00
|
|
|
|
2012-08-23 11:34:29 -07:00
|
|
|
ifeq ($(CPU_ARCH)_$(GNU_CC),arm_1)
|
|
|
|
# The assembly uses the frame pointer register (r7 in Thumb/r11 in
|
|
|
|
# ARM), the compiler doesn't like that.
|
|
|
|
CXXFLAGS := $(filter-out -fno-omit-frame-pointer,$(CXXFLAGS)) -fomit-frame-pointer
|
|
|
|
CFLAGS := $(filter-out -fno-omit-frame-pointer,$(CFLAGS)) -fomit-frame-pointer
|
|
|
|
endif
|