1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := skia_skia_opts_ssse3_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
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/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp
26
27
28# Flags passed to both C and C++ files.
29MY_CFLAGS_Debug := \
30	--param=ssp-buffer-size=4 \
31	-fno-strict-aliasing \
32	-Wno-unused-parameter \
33	-Wno-missing-field-initializers \
34	-fvisibility=hidden \
35	-pipe \
36	-fPIC \
37	-Wno-unused-local-typedefs \
38	-mssse3 \
39	-Wno-format \
40	-msse2 \
41	-mfpmath=sse \
42	-mmmx \
43	-m32 \
44	-ffunction-sections \
45	-funwind-tables \
46	-g \
47	-fno-short-enums \
48	-finline-limit=64 \
49	-Wa,--noexecstack \
50	-U_FORTIFY_SOURCE \
51	-Wno-extra \
52	-Wno-ignored-qualifiers \
53	-Wno-type-limits \
54	-Wno-unused-but-set-variable \
55	-fno-stack-protector \
56	-Wno-address \
57	-Wno-format-security \
58	-Wno-return-type \
59	-Wno-sequence-point \
60	-Os \
61	-g \
62	-gdwarf-4 \
63	-fdata-sections \
64	-ffunction-sections \
65	-fomit-frame-pointer \
66	-funwind-tables
67
68MY_DEFS_Debug := \
69	'-DV8_DEPRECATION_WARNINGS' \
70	'-D_FILE_OFFSET_BITS=64' \
71	'-DNO_TCMALLOC' \
72	'-DDISABLE_NACL' \
73	'-DCHROMIUM_BUILD' \
74	'-DUSE_LIBJPEG_TURBO=1' \
75	'-DENABLE_WEBRTC=1' \
76	'-DUSE_PROPRIETARY_CODECS' \
77	'-DENABLE_BROWSER_CDMS' \
78	'-DENABLE_CONFIGURATION_POLICY' \
79	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
80	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
81	'-DENABLE_EGLIMAGE=1' \
82	'-DCLD_VERSION=1' \
83	'-DENABLE_PRINTING=1' \
84	'-DENABLE_MANAGED_USERS=1' \
85	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
86	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
87	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
88	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
89	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
90	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
91	'-DVIDEO_HOLE=1' \
92	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
93	'-DSK_ENABLE_INST_COUNT=0' \
94	'-DSK_SUPPORT_GPU=1' \
95	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
96	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
97	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
98	'-DGR_GL_IGNORE_ES3_MSAA=0' \
99	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
100	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
101	'-DSK_BUILD_FOR_ANDROID' \
102	'-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \
103	'-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \
104	'-DIGNORE_ROT_AA_RECT_OPT' \
105	'-DSK_IGNORE_BLURRED_RRECT_OPT' \
106	'-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \
107	'-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \
108	'-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \
109	'-DSK_GAMMA_APPLY_TO_A8' \
110	'-DSK_GAMMA_EXPONENT=1.4' \
111	'-DSK_GAMMA_CONTRAST=0.0' \
112	'-DSK_USE_POSIX_THREADS' \
113	'-DUSE_OPENSSL=1' \
114	'-DUSE_OPENSSL_CERTS=1' \
115	'-DANDROID' \
116	'-D__GNU_SOURCE=1' \
117	'-DUSE_STLPORT=1' \
118	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
119	'-DCHROME_BUILD_ID=""' \
120	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
121	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
122	'-D_DEBUG'
123
124
125# Include paths placed before CFLAGS/CPPFLAGS
126LOCAL_C_INCLUDES_Debug := \
127	$(gyp_shared_intermediate_dir) \
128	$(LOCAL_PATH)/third_party/skia/include/core \
129	$(LOCAL_PATH)/third_party/skia/include/effects \
130	$(LOCAL_PATH)/third_party/skia/src/core \
131	$(LOCAL_PATH) \
132	$(LOCAL_PATH)/skia/config \
133	$(PWD)/frameworks/wilhelm/include \
134	$(PWD)/bionic \
135	$(PWD)/external/stlport/stlport
136
137
138# Flags passed to only C++ (and not C) files.
139LOCAL_CPPFLAGS_Debug := \
140	-fno-exceptions \
141	-fno-rtti \
142	-fno-threadsafe-statics \
143	-fvisibility-inlines-hidden \
144	-Wno-deprecated \
145	-std=gnu++11 \
146	-Wno-narrowing \
147	-Wno-literal-suffix \
148	-Wno-non-virtual-dtor \
149	-Wno-sign-promo \
150	-Wno-non-virtual-dtor
151
152
153# Flags passed to both C and C++ files.
154MY_CFLAGS_Release := \
155	--param=ssp-buffer-size=4 \
156	-fno-strict-aliasing \
157	-Wno-unused-parameter \
158	-Wno-missing-field-initializers \
159	-fvisibility=hidden \
160	-pipe \
161	-fPIC \
162	-Wno-unused-local-typedefs \
163	-mssse3 \
164	-Wno-format \
165	-msse2 \
166	-mfpmath=sse \
167	-mmmx \
168	-m32 \
169	-ffunction-sections \
170	-funwind-tables \
171	-g \
172	-fno-short-enums \
173	-finline-limit=64 \
174	-Wa,--noexecstack \
175	-U_FORTIFY_SOURCE \
176	-Wno-extra \
177	-Wno-ignored-qualifiers \
178	-Wno-type-limits \
179	-Wno-unused-but-set-variable \
180	-fno-stack-protector \
181	-Wno-address \
182	-Wno-format-security \
183	-Wno-return-type \
184	-Wno-sequence-point \
185	-fno-ident \
186	-fdata-sections \
187	-ffunction-sections \
188	-fomit-frame-pointer \
189	-funwind-tables \
190	-O2
191
192MY_DEFS_Release := \
193	'-DV8_DEPRECATION_WARNINGS' \
194	'-D_FILE_OFFSET_BITS=64' \
195	'-DNO_TCMALLOC' \
196	'-DDISABLE_NACL' \
197	'-DCHROMIUM_BUILD' \
198	'-DUSE_LIBJPEG_TURBO=1' \
199	'-DENABLE_WEBRTC=1' \
200	'-DUSE_PROPRIETARY_CODECS' \
201	'-DENABLE_BROWSER_CDMS' \
202	'-DENABLE_CONFIGURATION_POLICY' \
203	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
204	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
205	'-DENABLE_EGLIMAGE=1' \
206	'-DCLD_VERSION=1' \
207	'-DENABLE_PRINTING=1' \
208	'-DENABLE_MANAGED_USERS=1' \
209	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
210	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
211	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
212	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
213	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
214	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
215	'-DVIDEO_HOLE=1' \
216	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
217	'-DSK_ENABLE_INST_COUNT=0' \
218	'-DSK_SUPPORT_GPU=1' \
219	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
220	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
221	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
222	'-DGR_GL_IGNORE_ES3_MSAA=0' \
223	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
224	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
225	'-DSK_BUILD_FOR_ANDROID' \
226	'-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \
227	'-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \
228	'-DIGNORE_ROT_AA_RECT_OPT' \
229	'-DSK_IGNORE_BLURRED_RRECT_OPT' \
230	'-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \
231	'-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \
232	'-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \
233	'-DSK_GAMMA_APPLY_TO_A8' \
234	'-DSK_GAMMA_EXPONENT=1.4' \
235	'-DSK_GAMMA_CONTRAST=0.0' \
236	'-DSK_USE_POSIX_THREADS' \
237	'-DUSE_OPENSSL=1' \
238	'-DUSE_OPENSSL_CERTS=1' \
239	'-DANDROID' \
240	'-D__GNU_SOURCE=1' \
241	'-DUSE_STLPORT=1' \
242	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
243	'-DCHROME_BUILD_ID=""' \
244	'-DNDEBUG' \
245	'-DNVALGRIND' \
246	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
247
248
249# Include paths placed before CFLAGS/CPPFLAGS
250LOCAL_C_INCLUDES_Release := \
251	$(gyp_shared_intermediate_dir) \
252	$(LOCAL_PATH)/third_party/skia/include/core \
253	$(LOCAL_PATH)/third_party/skia/include/effects \
254	$(LOCAL_PATH)/third_party/skia/src/core \
255	$(LOCAL_PATH) \
256	$(LOCAL_PATH)/skia/config \
257	$(PWD)/frameworks/wilhelm/include \
258	$(PWD)/bionic \
259	$(PWD)/external/stlport/stlport
260
261
262# Flags passed to only C++ (and not C) files.
263LOCAL_CPPFLAGS_Release := \
264	-fno-exceptions \
265	-fno-rtti \
266	-fno-threadsafe-statics \
267	-fvisibility-inlines-hidden \
268	-Wno-deprecated \
269	-std=gnu++11 \
270	-Wno-narrowing \
271	-Wno-literal-suffix \
272	-Wno-non-virtual-dtor \
273	-Wno-sign-promo \
274	-Wno-non-virtual-dtor
275
276
277LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
278LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
279LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
280LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
281### Rules for final target.
282
283LOCAL_SHARED_LIBRARIES := \
284	libstlport \
285	libdl
286
287### Set directly by aosp_build_settings.
288LOCAL_FDO_SUPPORT := true
289
290# Add target alias to "gyp_all_modules" target.
291.PHONY: gyp_all_modules
292gyp_all_modules: skia_skia_opts_ssse3_gyp
293
294# Alias gyp target name.
295.PHONY: skia_opts_ssse3
296skia_opts_ssse3: skia_skia_opts_ssse3_gyp
297
298include $(BUILD_STATIC_LIBRARY)
299