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
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2011-10-28 00:05:35 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2013-05-16 06:33:26 -07:00
|
|
|
MSVC_ENABLE_PGO := 1
|
2011-10-28 00:05:35 -07: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 11:34:29 -07:00
|
|
|
-I$(srcdir)/include/gpu \
|
|
|
|
-I$(srcdir)/include/pipe \
|
2011-10-28 00:05:35 -07:00
|
|
|
-I$(srcdir)/include/ports \
|
|
|
|
-I$(srcdir)/include/images \
|
2013-04-02 13:49:07 -07:00
|
|
|
-I$(srcdir)/include/lazy \
|
2012-05-18 11:47:02 -07:00
|
|
|
-I$(srcdir)/include/utils \
|
2011-10-28 00:05:35 -07:00
|
|
|
-I$(srcdir)/include/utils/mac \
|
2011-11-17 20:00:37 -08:00
|
|
|
-I$(srcdir)/include/utils/win \
|
2011-10-28 00:05:35 -07:00
|
|
|
-I$(srcdir)/include/views \
|
|
|
|
-I$(srcdir)/include/effects \
|
2012-08-23 11:34:29 -07:00
|
|
|
-I$(srcdir)/src/core \
|
|
|
|
-I$(srcdir)/src/image \
|
|
|
|
-I$(srcdir)/src/gpu \
|
2012-10-16 13:21:54 -07:00
|
|
|
-I$(srcdir)/src/gpu/effects \
|
|
|
|
-I$(srcdir)/src/gpu/gl \
|
2013-04-02 13:49:07 -07:00
|
|
|
-I$(srcdir)/src/lazy \
|
2012-06-13 21:27:53 -07:00
|
|
|
-I$(srcdir)/src/utils \
|
2013-04-02 13:49:07 -07:00
|
|
|
-I$(srcdir)/src/utils/android \
|
2012-06-13 21:27:53 -07:00
|
|
|
-I$(srcdir)/src/sfnt \
|
2011-10-28 00:05:35 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
|
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
|
|
|
|
|
2012-01-25 16:54:31 -08:00
|
|
|
ifeq (gtk2,$(MOZ_WIDGET_TOOLKIT))
|
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)
|
2013-05-29 15:47:59 -07:00
|
|
|
ifeq (Linux,$(OS_TARGET))
|
|
|
|
DEFINES += -DSK_USE_POSIX_THREADS=1
|
|
|
|
endif
|
2012-03-22 13:24:57 -07:00
|
|
|
endif
|
|
|
|
|
2013-05-29 15:47:59 -07:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),$(findstring $(MOZ_WIDGET_TOOLKIT),android gtk2 gonk cocoa))
|
2013-03-26 08:05:19 -07:00
|
|
|
DEFINES += -DSK_USE_POSIX_THREADS=1
|
|
|
|
endif
|
|
|
|
|
2011-11-17 20:00:37 -08:00
|
|
|
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
|
2013-03-12 03:33:36 -07:00
|
|
|
DEFINES += -DSKIA_IMPLEMENTATION=1 -DGR_IMPLEMENTATION=1
|
2011-12-27 01:01:12 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(INTEL_ARCHITECTURE))
|
2012-09-04 13:19:50 -07:00
|
|
|
ifdef HAVE_TOOLCHAIN_SUPPORT_MSSSE3
|
2012-06-01 15:12:09 -07:00
|
|
|
DEFINES += -DSK_BUILD_SSSE3
|
|
|
|
endif
|
2011-12-27 01:01:12 -08:00
|
|
|
else
|
|
|
|
ifeq ($(CPU_ARCH)_$(GNU_CC),arm_1)
|
2013-07-01 14:09:48 -07:00
|
|
|
DISABLED_SSRCS += memset.arm.S
|
2011-12-27 01:01:12 -08:00
|
|
|
endif
|
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
|