qcms.target.linux-x86.mk revision a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_qcms_qcms_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES :=
14
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25	third_party/qcms/src/chain.c \
26	third_party/qcms/src/iccread.c \
27	third_party/qcms/src/matrix.c \
28	third_party/qcms/src/transform.c \
29	third_party/qcms/src/transform_util.c \
30	third_party/qcms/src/transform-sse1.c \
31	third_party/qcms/src/transform-sse2.c
32
33
34# Flags passed to both C and C++ files.
35MY_CFLAGS_Debug := \
36	--param=ssp-buffer-size=4 \
37	-fno-exceptions \
38	-fno-strict-aliasing \
39	-Wno-unused-parameter \
40	-Wno-missing-field-initializers \
41	-fvisibility=hidden \
42	-pipe \
43	-fPIC \
44	-Wno-format \
45	-m32 \
46	-mmmx \
47	-march=pentium4 \
48	-msse2 \
49	-mfpmath=sse \
50	-fuse-ld=gold \
51	-ffunction-sections \
52	-funwind-tables \
53	-g \
54	-fno-short-enums \
55	-finline-limit=64 \
56	-Wa,--noexecstack \
57	-U_FORTIFY_SOURCE \
58	-Wno-extra \
59	-Wno-ignored-qualifiers \
60	-Wno-type-limits \
61	-fno-stack-protector \
62	-Wno-address \
63	-Wno-format-security \
64	-Wno-return-type \
65	-Wno-sequence-point \
66	-Os \
67	-g \
68	-fomit-frame-pointer \
69	-fdata-sections \
70	-ffunction-sections
71
72MY_DEFS_Debug := \
73	'-DANGLE_DX11' \
74	'-DV8_DEPRECATION_WARNINGS' \
75	'-D_FILE_OFFSET_BITS=64' \
76	'-DNO_TCMALLOC' \
77	'-DDISABLE_NACL' \
78	'-DCHROMIUM_BUILD' \
79	'-DUSE_LIBJPEG_TURBO=1' \
80	'-DUSE_PROPRIETARY_CODECS' \
81	'-DENABLE_CONFIGURATION_POLICY' \
82	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
83	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
84	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
85	'-DUSE_OPENSSL=1' \
86	'-DENABLE_EGLIMAGE=1' \
87	'-DCLD_VERSION=1' \
88	'-DENABLE_PRINTING=1' \
89	'-DENABLE_MANAGED_USERS=1' \
90	'-DSSE2_ENABLE' \
91	'-DANDROID' \
92	'-D__GNU_SOURCE=1' \
93	'-DUSE_STLPORT=1' \
94	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
95	'-DCHROME_BUILD_ID=""' \
96	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
97	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
98	'-D_DEBUG'
99
100
101# Include paths placed before CFLAGS/CPPFLAGS
102LOCAL_C_INCLUDES_Debug := \
103	$(PWD)/frameworks/wilhelm/include \
104	$(PWD)/bionic \
105	$(PWD)/external/stlport/stlport
106
107
108# Flags passed to only C++ (and not C) files.
109LOCAL_CPPFLAGS_Debug := \
110	-fno-rtti \
111	-fno-threadsafe-statics \
112	-fvisibility-inlines-hidden \
113	-Wno-deprecated \
114	-Wno-error=c++0x-compat \
115	-Wno-non-virtual-dtor \
116	-Wno-sign-promo \
117	-Wno-non-virtual-dtor
118
119
120# Flags passed to both C and C++ files.
121MY_CFLAGS_Release := \
122	--param=ssp-buffer-size=4 \
123	-fno-exceptions \
124	-fno-strict-aliasing \
125	-Wno-unused-parameter \
126	-Wno-missing-field-initializers \
127	-fvisibility=hidden \
128	-pipe \
129	-fPIC \
130	-Wno-format \
131	-m32 \
132	-mmmx \
133	-march=pentium4 \
134	-msse2 \
135	-mfpmath=sse \
136	-fuse-ld=gold \
137	-ffunction-sections \
138	-funwind-tables \
139	-g \
140	-fno-short-enums \
141	-finline-limit=64 \
142	-Wa,--noexecstack \
143	-U_FORTIFY_SOURCE \
144	-Wno-extra \
145	-Wno-ignored-qualifiers \
146	-Wno-type-limits \
147	-fno-stack-protector \
148	-Wno-address \
149	-Wno-format-security \
150	-Wno-return-type \
151	-Wno-sequence-point \
152	-Os \
153	-fno-ident \
154	-fdata-sections \
155	-ffunction-sections \
156	-fomit-frame-pointer \
157	-fno-unwind-tables \
158	-fno-asynchronous-unwind-tables
159
160MY_DEFS_Release := \
161	'-DANGLE_DX11' \
162	'-DV8_DEPRECATION_WARNINGS' \
163	'-D_FILE_OFFSET_BITS=64' \
164	'-DNO_TCMALLOC' \
165	'-DDISABLE_NACL' \
166	'-DCHROMIUM_BUILD' \
167	'-DUSE_LIBJPEG_TURBO=1' \
168	'-DUSE_PROPRIETARY_CODECS' \
169	'-DENABLE_CONFIGURATION_POLICY' \
170	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
171	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
172	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
173	'-DUSE_OPENSSL=1' \
174	'-DENABLE_EGLIMAGE=1' \
175	'-DCLD_VERSION=1' \
176	'-DENABLE_PRINTING=1' \
177	'-DENABLE_MANAGED_USERS=1' \
178	'-DSSE2_ENABLE' \
179	'-DANDROID' \
180	'-D__GNU_SOURCE=1' \
181	'-DUSE_STLPORT=1' \
182	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
183	'-DCHROME_BUILD_ID=""' \
184	'-DNDEBUG' \
185	'-DNVALGRIND' \
186	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
187
188
189# Include paths placed before CFLAGS/CPPFLAGS
190LOCAL_C_INCLUDES_Release := \
191	$(PWD)/frameworks/wilhelm/include \
192	$(PWD)/bionic \
193	$(PWD)/external/stlport/stlport
194
195
196# Flags passed to only C++ (and not C) files.
197LOCAL_CPPFLAGS_Release := \
198	-fno-rtti \
199	-fno-threadsafe-statics \
200	-fvisibility-inlines-hidden \
201	-Wno-deprecated \
202	-Wno-error=c++0x-compat \
203	-Wno-non-virtual-dtor \
204	-Wno-sign-promo \
205	-Wno-non-virtual-dtor
206
207
208LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
209LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
210LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
211### Rules for final target.
212
213LOCAL_LDFLAGS_Debug := \
214	-Wl,-z,now \
215	-Wl,-z,relro \
216	-Wl,-z,noexecstack \
217	-fPIC \
218	-m32 \
219	-fuse-ld=gold \
220	-nostdlib \
221	-Wl,--no-undefined \
222	-Wl,--exclude-libs=ALL \
223	-Wl,--fatal-warnings \
224	-Wl,--gc-sections \
225	-Wl,--warn-shared-textrel \
226	-Wl,-O1 \
227	-Wl,--as-needed
228
229
230LOCAL_LDFLAGS_Release := \
231	-Wl,-z,now \
232	-Wl,-z,relro \
233	-Wl,-z,noexecstack \
234	-fPIC \
235	-m32 \
236	-fuse-ld=gold \
237	-nostdlib \
238	-Wl,--no-undefined \
239	-Wl,--exclude-libs=ALL \
240	-Wl,-O1 \
241	-Wl,--as-needed \
242	-Wl,--gc-sections \
243	-Wl,--fatal-warnings \
244	-Wl,--warn-shared-textrel
245
246
247LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
248
249LOCAL_STATIC_LIBRARIES :=
250
251# Enable grouping to fix circular references
252LOCAL_GROUP_STATIC_LIBRARIES := true
253
254LOCAL_SHARED_LIBRARIES := \
255	libstlport \
256	libdl
257
258# Add target alias to "gyp_all_modules" target.
259.PHONY: gyp_all_modules
260gyp_all_modules: third_party_qcms_qcms_gyp
261
262# Alias gyp target name.
263.PHONY: qcms
264qcms: third_party_qcms_qcms_gyp
265
266include $(BUILD_STATIC_LIBRARY)
267