Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: third_party/qcms/Makefile.in

Issue 9702032: Adding qcms to use for handling ICC tagged images. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add qcms to third_party Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/qcms/COPYING ('k') | third_party/qcms/README » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # ***** BEGIN LICENSE BLOCK *****
2 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 #
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 # http://www.mozilla.org/MPL/
8 #
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
13 #
14 # The Original Code is mozilla.org code.
15 #
16 # The Initial Developer of the Original Code is Mozilla Foundation.
17 # Portions created by the Initial Developer are Copyright (C) 2011
18 # the Initial Developer. All Rights Reserved.
19 #
20 # Contributor(s):
21 #
22 # Alternatively, the contents of this file may be used under the terms of
23 # either of the GNU General Public License Version 2 or later (the "GPL"),
24 # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
25 # in which case the provisions of the GPL or the LGPL are applicable instead
26 # of those above. If you wish to allow use of your version of this file only
27 # under the terms of either the GPL or the LGPL, and not to allow others to
28 # use your version of this file under the terms of the MPL, indicate your
29 # decision by deleting the provisions above and replace them with the notice
30 # and other provisions required by the GPL or the LGPL. If you do not delete
31 # the provisions above, a recipient may use your version of this file under
32 # the terms of any one of the MPL, the GPL or the LGPL.
33 #
34 # ***** END LICENSE BLOCK *****
35
36 DEPTH = ../..
37 topsrcdir = @top_srcdir@
38 srcdir = @srcdir@
39 VPATH = @srcdir@
40
41 include $(DEPTH)/config/autoconf.mk
42
43 MODULE = qcms
44 LIBRARY_NAME = mozqcms
45 LIBXUL_LIBRARY = 1
46 GRE_MODULE = 1
47
48 EXPORTS = qcms.h qcmstypes.h
49
50 CSRCS = \
51 chain.c \
52 iccread.c \
53 matrix.c \
54 transform.c \
55 transform_util.c \
56 $(NULL)
57
58 ifeq (86,$(findstring 86,$(OS_TEST)))
59 CSRCS += transform-sse2.c
60 ifdef _MSC_VER
61 ifneq ($(OS_ARCH)_$(OS_TEST),WINNT_x86_64)
62 CSRCS += transform-sse1.c
63 endif
64 else
65 CSRCS += transform-sse1.c
66 ifdef GNU_CC
67 SSE1_FLAGS=-msse
68 SSE2_FLAGS=-msse2
69 else
70 ifeq ($(SOLARIS_SUNPRO_CC),1)
71 ifneq (64,$(findstring 64,$(OS_TEST)))
72 SSE1_FLAGS=-xarch=sse
73 SSE2_FLAGS=-xarch=sse2
74 else
75 # Sun Studio doesn't work correctly for x86 intristics
76 # with -m64 and without optimization.
77 SSE1_FLAGS= -xO4
78 SSE2_FLAGS= -xO4
79 endif
80 else
81 SSE1_FLAGS=
82 SSE2_FLAGS=
83 endif
84 endif
85 endif
86 endif
87
88 # -pedantic causes warnings that we don't care about
89 # so turn it off
90 CFLAGS := $(filter-out -pedantic,$(CFLAGS))
91
92 FORCE_STATIC_LIB = 1
93
94 include $(topsrcdir)/config/rules.mk
95
96 CFLAGS += -DMOZ_QCMS
97
98 # Disable spammy "missing initializer" GCC warning
99 ifdef GNU_CC
100 CFLAGS += -Wno-missing-field-initializers
101 endif # GNU_CC
102
103 # special rules for transform-sse*.c to get the right cflags. (taken from pixman /src/Makefile.in)
104 transform-sse1.$(OBJ_SUFFIX): transform-sse1.c $(GLOBAL_DEPS)
105 $(REPORT_BUILD)
106 @$(MAKE_DEPS_AUTO_CC)
107 $(ELOG) $(CC) $(OUTOPTION)$@ -c $(COMPILE_CFLAGS) $(SSE1_FLAGS) $(_VPATH _SRCS)
108
109 transform-sse2.$(OBJ_SUFFIX): transform-sse2.c $(GLOBAL_DEPS)
110 $(REPORT_BUILD)
111 @$(MAKE_DEPS_AUTO_CC)
112 $(ELOG) $(CC) $(OUTOPTION)$@ -c $(COMPILE_CFLAGS) $(SSE2_FLAGS) $(_VPATH _SRCS)
OLDNEW
« no previous file with comments | « third_party/qcms/COPYING ('k') | third_party/qcms/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698