• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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	-fstack-protector \
38	--param=ssp-buffer-size=4 \
39	-fno-exceptions \
40	-fno-strict-aliasing \
41	-Wno-unused-parameter \
42	-Wno-missing-field-initializers \
43	-fvisibility=hidden \
44	-pipe \
45	-fPIC \
46	-Wno-unused-local-typedefs \
47	-Wno-format \
48	-m64 \
49	-march=x86-64 \
50	-ffunction-sections \
51	-funwind-tables \
52	-g \
53	-fstack-protector \
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	-Wno-address \
63	-Wno-format-security \
64	-Wno-return-type \
65	-Wno-sequence-point \
66	-Os \
67	-g \
68	-fdata-sections \
69	-ffunction-sections \
70	-fomit-frame-pointer \
71	-funwind-tables
72
73MY_DEFS_Debug := \
74	'-DV8_DEPRECATION_WARNINGS' \
75	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
76	'-D_FILE_OFFSET_BITS=64' \
77	'-DNO_TCMALLOC' \
78	'-DDISABLE_NACL' \
79	'-DCHROMIUM_BUILD' \
80	'-DUSE_LIBJPEG_TURBO=1' \
81	'-DENABLE_WEBRTC=1' \
82	'-DUSE_PROPRIETARY_CODECS' \
83	'-DENABLE_BROWSER_CDMS' \
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	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
96	'-DVIDEO_HOLE=1' \
97	'-DSSE2_ENABLE' \
98	'-DUSE_OPENSSL=1' \
99	'-DUSE_OPENSSL_CERTS=1' \
100	'-DANDROID' \
101	'-D__GNU_SOURCE=1' \
102	'-DUSE_STLPORT=1' \
103	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
104	'-DCHROME_BUILD_ID=""' \
105	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
106	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
107	'-D_DEBUG'
108
109
110# Include paths placed before CFLAGS/CPPFLAGS
111LOCAL_C_INCLUDES_Debug := \
112	$(gyp_shared_intermediate_dir) \
113	$(PWD)/frameworks/wilhelm/include \
114	$(PWD)/bionic \
115	$(PWD)/external/stlport/stlport
116
117
118# Flags passed to only C++ (and not C) files.
119LOCAL_CPPFLAGS_Debug := \
120	-fno-rtti \
121	-fno-threadsafe-statics \
122	-fvisibility-inlines-hidden \
123	-Wno-deprecated \
124	-Wno-non-virtual-dtor \
125	-Wno-sign-promo \
126	-Wno-non-virtual-dtor
127
128
129LOCAL_FDO_SUPPORT_Debug := false
130
131# Flags passed to both C and C++ files.
132MY_CFLAGS_Release := \
133	-fstack-protector \
134	--param=ssp-buffer-size=4 \
135	-fno-exceptions \
136	-fno-strict-aliasing \
137	-Wno-unused-parameter \
138	-Wno-missing-field-initializers \
139	-fvisibility=hidden \
140	-pipe \
141	-fPIC \
142	-Wno-unused-local-typedefs \
143	-Wno-format \
144	-m64 \
145	-march=x86-64 \
146	-ffunction-sections \
147	-funwind-tables \
148	-g \
149	-fstack-protector \
150	-fno-short-enums \
151	-finline-limit=64 \
152	-Wa,--noexecstack \
153	-U_FORTIFY_SOURCE \
154	-Wno-extra \
155	-Wno-ignored-qualifiers \
156	-Wno-type-limits \
157	-Wno-unused-but-set-variable \
158	-Wno-address \
159	-Wno-format-security \
160	-Wno-return-type \
161	-Wno-sequence-point \
162	-Os \
163	-fno-ident \
164	-fdata-sections \
165	-ffunction-sections \
166	-fomit-frame-pointer \
167	-funwind-tables
168
169MY_DEFS_Release := \
170	'-DV8_DEPRECATION_WARNINGS' \
171	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
172	'-D_FILE_OFFSET_BITS=64' \
173	'-DNO_TCMALLOC' \
174	'-DDISABLE_NACL' \
175	'-DCHROMIUM_BUILD' \
176	'-DUSE_LIBJPEG_TURBO=1' \
177	'-DENABLE_WEBRTC=1' \
178	'-DUSE_PROPRIETARY_CODECS' \
179	'-DENABLE_BROWSER_CDMS' \
180	'-DENABLE_CONFIGURATION_POLICY' \
181	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
182	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
183	'-DENABLE_EGLIMAGE=1' \
184	'-DCLD_VERSION=1' \
185	'-DENABLE_PRINTING=1' \
186	'-DENABLE_MANAGED_USERS=1' \
187	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
188	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
189	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
190	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
191	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
192	'-DVIDEO_HOLE=1' \
193	'-DSSE2_ENABLE' \
194	'-DUSE_OPENSSL=1' \
195	'-DUSE_OPENSSL_CERTS=1' \
196	'-DANDROID' \
197	'-D__GNU_SOURCE=1' \
198	'-DUSE_STLPORT=1' \
199	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
200	'-DCHROME_BUILD_ID=""' \
201	'-DNDEBUG' \
202	'-DNVALGRIND' \
203	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
204
205
206# Include paths placed before CFLAGS/CPPFLAGS
207LOCAL_C_INCLUDES_Release := \
208	$(gyp_shared_intermediate_dir) \
209	$(PWD)/frameworks/wilhelm/include \
210	$(PWD)/bionic \
211	$(PWD)/external/stlport/stlport
212
213
214# Flags passed to only C++ (and not C) files.
215LOCAL_CPPFLAGS_Release := \
216	-fno-rtti \
217	-fno-threadsafe-statics \
218	-fvisibility-inlines-hidden \
219	-Wno-deprecated \
220	-Wno-non-virtual-dtor \
221	-Wno-sign-promo \
222	-Wno-non-virtual-dtor
223
224
225LOCAL_FDO_SUPPORT_Release := false
226
227LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
228LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
229LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
230LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
231LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
232### Rules for final target.
233
234LOCAL_LDFLAGS_Debug := \
235	-Wl,-z,now \
236	-Wl,-z,relro \
237	-Wl,--fatal-warnings \
238	-Wl,-z,noexecstack \
239	-fPIC \
240	-m64 \
241	-fuse-ld=gold \
242	-nostdlib \
243	-Wl,--no-undefined \
244	-Wl,--exclude-libs=ALL \
245	-Wl,--warn-shared-textrel \
246	-Wl,-O1 \
247	-Wl,--as-needed
248
249
250LOCAL_LDFLAGS_Release := \
251	-Wl,-z,now \
252	-Wl,-z,relro \
253	-Wl,--fatal-warnings \
254	-Wl,-z,noexecstack \
255	-fPIC \
256	-m64 \
257	-fuse-ld=gold \
258	-nostdlib \
259	-Wl,--no-undefined \
260	-Wl,--exclude-libs=ALL \
261	-Wl,-O1 \
262	-Wl,--as-needed \
263	-Wl,--gc-sections \
264	-Wl,--warn-shared-textrel
265
266
267LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
268
269LOCAL_STATIC_LIBRARIES :=
270
271# Enable grouping to fix circular references
272LOCAL_GROUP_STATIC_LIBRARIES := true
273
274LOCAL_SHARED_LIBRARIES := \
275	libstlport \
276	libdl
277
278# Add target alias to "gyp_all_modules" target.
279.PHONY: gyp_all_modules
280gyp_all_modules: third_party_qcms_qcms_gyp
281
282# Alias gyp target name.
283.PHONY: qcms
284qcms: third_party_qcms_qcms_gyp
285
286include $(BUILD_STATIC_LIBRARY)
287