2010-04-18 18:17:06 -07:00
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = ycbcr
|
|
|
|
LIBRARY_NAME = ycbcr
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
|
|
|
|
DEFINES += -D_IMPL_NS_GFX
|
|
|
|
|
|
|
|
EXPORTS = chromium_types.h \
|
|
|
|
yuv_convert.h \
|
|
|
|
yuv_row.h \
|
2011-03-07 16:59:44 -08:00
|
|
|
ycbcr_to_rgb565.h \
|
2010-04-18 18:17:06 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CPPSRCS = yuv_convert.cpp \
|
|
|
|
yuv_row_c.cpp \
|
2010-11-10 15:54:27 -08:00
|
|
|
yuv_row_table.cpp \
|
2011-01-19 09:38:38 -08:00
|
|
|
ycbcr_to_rgb565.cpp \
|
2010-04-18 18:17:06 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2010-12-09 09:59:21 -08:00
|
|
|
# Are we targeting x86 or x64? If so, build yuv_convert_mmx.cpp and
|
|
|
|
# yuv_convert_sse2.cpp. These files use MMX and SSE2 intrinsics, so they need
|
|
|
|
# special compile flags on some compilers.
|
|
|
|
ifneq (,$(INTEL_ARCHITECTURE))
|
2011-01-17 21:08:47 -08:00
|
|
|
CPPSRCS += yuv_convert_sse2.cpp
|
|
|
|
|
|
|
|
# MSVC doesn't support MMX when targeting AMD64.
|
|
|
|
ifdef _MSC_VER
|
|
|
|
ifneq ($(OS_TEST),x86_64)
|
|
|
|
CPPSRCS += yuv_convert_mmx.cpp
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
CPPSRCS += yuv_convert_mmx.cpp
|
|
|
|
endif
|
2010-12-09 09:59:21 -08:00
|
|
|
|
|
|
|
ifdef GNU_CC
|
|
|
|
yuv_convert_mmx.$(OBJ_SUFFIX): CXXFLAGS += -mmmx
|
|
|
|
yuv_convert_sse2.$(OBJ_SUFFIX): CXXFLAGS += -msse2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef SOLARIS_SUNPRO_CXX
|
|
|
|
yuv_convert_mmx.$(OBJ_SUFFIX): CXXFLAGS += -xarch=mmx -xO4
|
|
|
|
yuv_convert_sse2.$(OBJ_SUFFIX): CXXFLAGS += -xarch=sse2 -xO4
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2010-04-29 01:35:07 -07:00
|
|
|
ifdef _MSC_VER
|
2010-04-18 18:17:06 -07:00
|
|
|
CPPSRCS += yuv_row_win.cpp \
|
|
|
|
$(NULL)
|
|
|
|
else
|
2010-05-02 05:20:40 -07:00
|
|
|
ifeq ($(OS_ARCH),Linux)
|
2010-11-10 15:54:27 -08:00
|
|
|
CPPSRCS += yuv_row_posix.cpp \
|
2010-04-18 18:17:06 -07:00
|
|
|
$(NULL)
|
|
|
|
else
|
2010-06-23 02:30:48 -07:00
|
|
|
ifeq ($(OS_ARCH),SunOS)
|
2010-11-10 15:54:27 -08:00
|
|
|
CPPSRCS += yuv_row_posix.cpp \
|
2010-06-23 02:30:48 -07:00
|
|
|
$(NULL)
|
|
|
|
else
|
2010-05-02 05:20:40 -07:00
|
|
|
ifeq ($(OS_ARCH),Darwin)
|
2010-11-10 15:54:27 -08:00
|
|
|
CPPSRCS += yuv_row_posix.cpp \
|
2010-06-21 12:18:13 -07:00
|
|
|
$(NULL)
|
|
|
|
else
|
2010-04-18 18:17:06 -07:00
|
|
|
CPPSRCS += yuv_row_other.cpp \
|
|
|
|
$(NULL)
|
2010-11-10 15:54:27 -08:00
|
|
|
endif # Darwin
|
2010-06-23 02:30:48 -07:00
|
|
|
endif # SunOS
|
2010-05-02 05:20:40 -07:00
|
|
|
endif # linux
|
|
|
|
endif # windows
|
2010-04-18 18:17:06 -07:00
|
|
|
|
2010-12-10 11:32:52 -08:00
|
|
|
ifeq (arm,$(findstring arm,$(OS_TEST)))
|
|
|
|
CPPSRCS += yuv_convert_arm.cpp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2010-04-18 18:17:06 -07:00
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(LIBS_DIR) \
|
|
|
|
$(EXTRA_DSO_LIBS) \
|
|
|
|
$(XPCOM_LIBS) \
|
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|