2011-10-28 07:05:35 +00:00
|
|
|
#
|
2012-05-29 15:52:43 +00: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 07:05:35 +00:00
|
|
|
|
2012-08-04 18:26:44 +00:00
|
|
|
DEPTH = @DEPTH@
|
2011-10-28 07:05:35 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2013-05-16 13:33:26 +00:00
|
|
|
MSVC_ENABLE_PGO := 1
|
2011-10-28 07:05:35 +00:00
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
|
|
|
|
DEFINES += -DSK_A32_SHIFT=24 -DSK_R32_SHIFT=16 -DSK_G32_SHIFT=8 -DSK_B32_SHIFT=0
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(srcdir)/include/core \
|
|
|
|
-I$(srcdir)/include/config \
|
2012-08-23 18:34:29 +00:00
|
|
|
-I$(srcdir)/include/gpu \
|
|
|
|
-I$(srcdir)/include/pipe \
|
2011-10-28 07:05:35 +00:00
|
|
|
-I$(srcdir)/include/ports \
|
|
|
|
-I$(srcdir)/include/images \
|
2012-05-18 18:47:02 +00:00
|
|
|
-I$(srcdir)/include/utils \
|
2011-10-28 07:05:35 +00:00
|
|
|
-I$(srcdir)/include/utils/mac \
|
2011-11-18 04:00:37 +00:00
|
|
|
-I$(srcdir)/include/utils/win \
|
2011-10-28 07:05:35 +00:00
|
|
|
-I$(srcdir)/include/views \
|
|
|
|
-I$(srcdir)/include/effects \
|
2012-08-23 18:34:29 +00:00
|
|
|
-I$(srcdir)/src/core \
|
|
|
|
-I$(srcdir)/src/image \
|
|
|
|
-I$(srcdir)/src/gpu \
|
2012-10-16 20:21:54 +00:00
|
|
|
-I$(srcdir)/src/gpu/effects \
|
|
|
|
-I$(srcdir)/src/gpu/gl \
|
2012-06-14 04:27:53 +00:00
|
|
|
-I$(srcdir)/src/utils \
|
|
|
|
-I$(srcdir)/src/sfnt \
|
2011-10-28 07:05:35 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
VPATH += \
|
|
|
|
$(srcdir)/src/core \
|
2012-10-16 20:21:54 +00:00
|
|
|
$(srcdir)/src/gpu \
|
|
|
|
$(srcdir)/src/gpu/effects \
|
|
|
|
$(srcdir)/src/gpu/gl \
|
2012-08-23 18:34:29 +00:00
|
|
|
$(srcdir)/src/image \
|
|
|
|
$(srcdir)/src/images \
|
|
|
|
$(srcdir)/src/pipe \
|
2011-10-28 07:05:35 +00:00
|
|
|
$(srcdir)/src/ports \
|
|
|
|
$(srcdir)/src/opts \
|
|
|
|
$(srcdir)/src/effects \
|
2012-08-23 18:34:29 +00:00
|
|
|
$(srcdir)/src/effects/gradients \
|
2012-01-26 00:54:31 +00:00
|
|
|
$(srcdir)/src/utils \
|
2012-05-18 18:47:02 +00:00
|
|
|
$(srcdir)/src/utils/mac \
|
2012-06-14 04:27:53 +00:00
|
|
|
$(srcdir)/src/sfnt \
|
2011-10-28 07:05:35 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
|
2013-05-15 20:14:56 +00:00
|
|
|
OS_CXXFLAGS += $(CAIRO_FT_CFLAGS)
|
2011-10-28 07:05:35 +00:00
|
|
|
endif
|
|
|
|
|
2012-01-26 00:54:31 +00:00
|
|
|
ifeq (gtk2,$(MOZ_WIDGET_TOOLKIT))
|
2013-05-15 20:14:56 +00:00
|
|
|
OS_CXXFLAGS += $(MOZ_PANGO_CFLAGS)
|
2012-01-26 00:54:31 +00:00
|
|
|
endif
|
|
|
|
|
2012-03-22 20:24:57 +00:00
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
OS_CXXFLAGS += $(MOZ_PANGO_CFLAGS)
|
2013-05-29 22:47:59 +00:00
|
|
|
ifeq (Linux,$(OS_TARGET))
|
|
|
|
DEFINES += -DSK_USE_POSIX_THREADS=1
|
|
|
|
endif
|
2012-03-22 20:24:57 +00:00
|
|
|
endif
|
|
|
|
|
2013-05-29 22:47:59 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),$(findstring $(MOZ_WIDGET_TOOLKIT),android gtk2 gonk cocoa))
|
2013-03-26 15:05:19 +00:00
|
|
|
DEFINES += -DSK_USE_POSIX_THREADS=1
|
|
|
|
endif
|
|
|
|
|
2011-11-18 04:00:37 +00:00
|
|
|
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
|
2013-03-12 10:33:36 +00:00
|
|
|
DEFINES += -DSKIA_IMPLEMENTATION=1 -DGR_IMPLEMENTATION=1
|
2011-12-27 09:01:12 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(INTEL_ARCHITECTURE))
|
2012-09-04 20:19:50 +00:00
|
|
|
ifdef HAVE_TOOLCHAIN_SUPPORT_MSSSE3
|
2012-06-01 22:12:09 +00:00
|
|
|
DEFINES += -DSK_BUILD_SSSE3
|
|
|
|
endif
|
2011-12-27 09:01:12 +00:00
|
|
|
else
|
|
|
|
ifeq ($(CPU_ARCH)_$(GNU_CC),arm_1)
|
2013-07-01 21:09:48 +00:00
|
|
|
DISABLED_SSRCS += memset.arm.S
|
2011-12-27 09:01:12 +00:00
|
|
|
endif
|
2011-11-18 04:00:37 +00:00
|
|
|
endif
|
|
|
|
|
2011-10-28 07:05:35 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2011-11-30 09:26:15 +00:00
|
|
|
|
|
|
|
ifneq (,$(INTEL_ARCHITECTURE))
|
|
|
|
ifdef GNU_CC
|
|
|
|
SkBitmapProcState_opts_SSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
2012-05-18 18:47:02 +00:00
|
|
|
SkBitmapProcState_opts_SSSE3.$(OBJ_SUFFIX): CXXFLAGS+=-mssse3
|
2011-11-30 09:26:15 +00:00
|
|
|
SkBlitRow_opts_SSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
2012-05-18 18:47:02 +00:00
|
|
|
SkBlitRect_opts_SSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
2011-11-30 09:26:15 +00:00
|
|
|
SkUtils_opts_SSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
|
|
|
endif
|
|
|
|
endif
|
2012-07-27 18:10:36 +00:00
|
|
|
|
2012-08-23 18:34:29 +00: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
|