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