~ubuntu-branches/ubuntu/precise/enigmail/precise-security

« back to all changes in this revision

Viewing changes to gfx/ycbcr/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-11-12 16:36:01 UTC
  • mfrom: (0.12.15)
  • Revision ID: package-import@ubuntu.com-20121112163601-t8e8skdfi3ni9iqp
Tags: 2:1.4.6-0ubuntu0.12.04.1
* New upstream release v1.4.6
  - see LP: #1080212 for USN information
* Drop unneeded patches
  - remove debian/patches/correct-version-number.diff
  - remove debian/patches/dont_register_cids_multiple_times.diff
  - update debian/patches/series
* Support building in an objdir
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DEPTH           = @DEPTH@
 
2
topsrcdir       = @top_srcdir@
 
3
srcdir          = @srcdir@
 
4
VPATH           = @srcdir@
 
5
 
 
6
include $(DEPTH)/config/autoconf.mk
 
7
 
 
8
MODULE       = ycbcr
 
9
LIBRARY_NAME = ycbcr
 
10
LIBXUL_LIBRARY = 1
 
11
EXPORT_LIBRARY = 1
 
12
 
 
13
DEFINES += -D_IMPL_NS_GFX
 
14
 
 
15
EXPORTS      = chromium_types.h \
 
16
               yuv_convert.h \
 
17
               yuv_row.h \
 
18
               ycbcr_to_rgb565.h \
 
19
               $(NULL)
 
20
 
 
21
CPPSRCS = yuv_convert.cpp \
 
22
          yuv_row_c.cpp \
 
23
          yuv_row_table.cpp \
 
24
          ycbcr_to_rgb565.cpp \
 
25
          $(NULL)
 
26
 
 
27
# Are we targeting x86 or x64?  If so, build yuv_convert_mmx.cpp and
 
28
# yuv_convert_sse2.cpp.
 
29
ifneq (,$(INTEL_ARCHITECTURE))
 
30
CPPSRCS += yuv_convert_sse2.cpp
 
31
 
 
32
# MSVC doesn't support MMX when targeting AMD64.
 
33
ifdef _MSC_VER
 
34
ifneq ($(OS_TEST),x86_64)
 
35
CPPSRCS += yuv_convert_mmx.cpp
 
36
endif
 
37
else
 
38
CPPSRCS += yuv_convert_mmx.cpp
 
39
endif
 
40
endif
 
41
 
 
42
ifdef _MSC_VER
 
43
ifeq ($(OS_TEST),x86_64)
 
44
ifeq (1400,$(_MSC_VER))
 
45
# VC8 doesn't support some SSE2 built-in functions
 
46
CPPSRCS += yuv_row_win.cpp \
 
47
           $(NULL)
 
48
else
 
49
CPPSRCS += yuv_row_win64.cpp \
 
50
           $(NULL)
 
51
endif
 
52
else
 
53
CPPSRCS += yuv_row_win.cpp \
 
54
           $(NULL)
 
55
endif
 
56
else
 
57
ifneq (,$(filter Linux SunOS Darwin DragonFly FreeBSD NetBSD OpenBSD, $(OS_ARCH)))
 
58
CPPSRCS += yuv_row_posix.cpp \
 
59
           $(NULL)
 
60
else
 
61
CPPSRCS += yuv_row_other.cpp \
 
62
           $(NULL)
 
63
endif # posix
 
64
endif # windows
 
65
 
 
66
ifeq (arm,$(findstring arm,$(OS_TEST)))
 
67
ifdef HAVE_ARM_NEON
 
68
CPPSRCS += yuv_convert_arm.cpp \
 
69
           $(NULL)
 
70
ASFILES = yuv_row_arm.$(ASM_SUFFIX) \
 
71
          $(NULL)
 
72
endif
 
73
endif
 
74
 
 
75
include $(topsrcdir)/config/rules.mk
 
76
 
 
77
# These files use MMX and SSE2 intrinsics, so they need special compile flags
 
78
# on some compilers.
 
79
ifneq (,$(INTEL_ARCHITECTURE))
 
80
ifdef GNU_CC
 
81
yuv_convert_mmx.$(OBJ_SUFFIX): CXXFLAGS += -mmmx
 
82
yuv_convert_sse2.$(OBJ_SUFFIX): CXXFLAGS += -msse2
 
83
endif
 
84
 
 
85
ifdef SOLARIS_SUNPRO_CXX
 
86
yuv_convert_mmx.$(OBJ_SUFFIX): CXXFLAGS += -xarch=mmx -xO4
 
87
yuv_convert_sse2.$(OBJ_SUFFIX): CXXFLAGS += -xarch=sse2 -xO4
 
88
endif
 
89
endif