1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := printing_printing_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	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
16	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
17	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \
18	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp \
19	$(call intermediates-dir-for,GYP,printing_printing_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/printing_jni_headers.stamp
20
21GYP_GENERATED_OUTPUTS :=
22
23# Make sure our deps and generated files are built first.
24LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
25
26LOCAL_CPP_EXTENSION := .cc
27LOCAL_GENERATED_SOURCES :=
28
29GYP_COPIED_SOURCE_ORIGIN_DIRS :=
30
31LOCAL_SRC_FILES := \
32	printing/backend/print_backend.cc \
33	printing/backend/print_backend_consts.cc \
34	printing/backend/print_backend_dummy.cc \
35	printing/image.cc \
36	printing/image_android.cc \
37	printing/metafile_skia_wrapper.cc \
38	printing/page_number.cc \
39	printing/page_range.cc \
40	printing/page_setup.cc \
41	printing/pdf_metafile_skia.cc \
42	printing/print_destination_none.cc \
43	printing/print_job_constants.cc \
44	printing/print_settings.cc \
45	printing/print_settings_conversion.cc \
46	printing/printed_document.cc \
47	printing/printed_page.cc \
48	printing/printing_context.cc \
49	printing/printing_utils.cc \
50	printing/units.cc \
51	printing/printing_context_android.cc
52
53
54# Flags passed to both C and C++ files.
55MY_CFLAGS_Debug := \
56	-fstack-protector \
57	--param=ssp-buffer-size=4 \
58	-Werror \
59	-fno-exceptions \
60	-fno-strict-aliasing \
61	-Wall \
62	-Wno-unused-parameter \
63	-Wno-missing-field-initializers \
64	-fvisibility=hidden \
65	-pipe \
66	-fPIC \
67	-Wno-unused-local-typedefs \
68	-fno-tree-sra \
69	-fno-partial-inlining \
70	-fno-early-inlining \
71	-fno-tree-copy-prop \
72	-fno-tree-loop-optimize \
73	-fno-move-loop-invariants \
74	-fno-caller-saves \
75	-Wno-psabi \
76	-ffunction-sections \
77	-funwind-tables \
78	-g \
79	-fstack-protector \
80	-fno-short-enums \
81	-finline-limit=64 \
82	-Wa,--noexecstack \
83	-U_FORTIFY_SOURCE \
84	-Wno-extra \
85	-Wno-ignored-qualifiers \
86	-Wno-type-limits \
87	-Wno-unused-but-set-variable \
88	-Os \
89	-g \
90	-fdata-sections \
91	-ffunction-sections \
92	-fomit-frame-pointer \
93	-funwind-tables
94
95MY_DEFS_Debug := \
96	'-DV8_DEPRECATION_WARNINGS' \
97	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
98	'-D_FILE_OFFSET_BITS=64' \
99	'-DNO_TCMALLOC' \
100	'-DDISABLE_NACL' \
101	'-DCHROMIUM_BUILD' \
102	'-DUSE_LIBJPEG_TURBO=1' \
103	'-DENABLE_WEBRTC=1' \
104	'-DUSE_PROPRIETARY_CODECS' \
105	'-DENABLE_BROWSER_CDMS' \
106	'-DENABLE_CONFIGURATION_POLICY' \
107	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
108	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
109	'-DENABLE_EGLIMAGE=1' \
110	'-DCLD_VERSION=1' \
111	'-DENABLE_PRINTING=1' \
112	'-DENABLE_MANAGED_USERS=1' \
113	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
114	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
115	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
116	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
117	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
118	'-DVIDEO_HOLE=1' \
119	'-DPRINTING_IMPLEMENTATION' \
120	'-DSK_ENABLE_INST_COUNT=0' \
121	'-DSK_SUPPORT_GPU=1' \
122	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
123	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
124	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
125	'-DGR_GL_IGNORE_ES3_MSAA=0' \
126	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
127	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
128	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
129	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
130	'-DSK_SUPPORT_LEGACY_N32_NAME' \
131	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
132	'-DSK_IGNORE_ETC1_SUPPORT' \
133	'-DSK_IGNORE_GPU_DITHER' \
134	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
135	'-DSK_BUILD_FOR_ANDROID' \
136	'-DSK_USE_POSIX_THREADS' \
137	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
138	'-DU_USING_ICU_NAMESPACE=0' \
139	'-DUSE_OPENSSL=1' \
140	'-DUSE_OPENSSL_CERTS=1' \
141	'-D__STDC_CONSTANT_MACROS' \
142	'-D__STDC_FORMAT_MACROS' \
143	'-DANDROID' \
144	'-D__GNU_SOURCE=1' \
145	'-DUSE_STLPORT=1' \
146	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
147	'-DCHROME_BUILD_ID=""' \
148	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
149	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
150	'-D_DEBUG'
151
152
153# Include paths placed before CFLAGS/CPPFLAGS
154LOCAL_C_INCLUDES_Debug := \
155	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
156	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
157	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
158	$(gyp_shared_intermediate_dir) \
159	$(LOCAL_PATH) \
160	$(LOCAL_PATH)/skia/config \
161	$(LOCAL_PATH)/third_party/skia/src/core \
162	$(LOCAL_PATH)/third_party/skia/include/core \
163	$(LOCAL_PATH)/third_party/skia/include/effects \
164	$(LOCAL_PATH)/third_party/skia/include/pdf \
165	$(LOCAL_PATH)/third_party/skia/include/gpu \
166	$(LOCAL_PATH)/third_party/skia/include/lazy \
167	$(LOCAL_PATH)/third_party/skia/include/pathops \
168	$(LOCAL_PATH)/third_party/skia/include/pipe \
169	$(LOCAL_PATH)/third_party/skia/include/ports \
170	$(LOCAL_PATH)/third_party/skia/include/utils \
171	$(LOCAL_PATH)/skia/ext \
172	$(PWD)/external/icu/icu4c/source/common \
173	$(PWD)/external/icu/icu4c/source/i18n \
174	$(gyp_shared_intermediate_dir)/printing \
175	$(PWD)/frameworks/wilhelm/include \
176	$(PWD)/bionic \
177	$(PWD)/external/stlport/stlport
178
179
180# Flags passed to only C++ (and not C) files.
181LOCAL_CPPFLAGS_Debug := \
182	-fno-rtti \
183	-fno-threadsafe-statics \
184	-fvisibility-inlines-hidden \
185	-Wsign-compare \
186	-Wno-abi \
187	-Wno-non-virtual-dtor \
188	-Wno-sign-promo
189
190
191LOCAL_FDO_SUPPORT_Debug := false
192
193# Flags passed to both C and C++ files.
194MY_CFLAGS_Release := \
195	-fstack-protector \
196	--param=ssp-buffer-size=4 \
197	-Werror \
198	-fno-exceptions \
199	-fno-strict-aliasing \
200	-Wall \
201	-Wno-unused-parameter \
202	-Wno-missing-field-initializers \
203	-fvisibility=hidden \
204	-pipe \
205	-fPIC \
206	-Wno-unused-local-typedefs \
207	-fno-tree-sra \
208	-fno-partial-inlining \
209	-fno-early-inlining \
210	-fno-tree-copy-prop \
211	-fno-tree-loop-optimize \
212	-fno-move-loop-invariants \
213	-fno-caller-saves \
214	-Wno-psabi \
215	-ffunction-sections \
216	-funwind-tables \
217	-g \
218	-fstack-protector \
219	-fno-short-enums \
220	-finline-limit=64 \
221	-Wa,--noexecstack \
222	-U_FORTIFY_SOURCE \
223	-Wno-extra \
224	-Wno-ignored-qualifiers \
225	-Wno-type-limits \
226	-Wno-unused-but-set-variable \
227	-Os \
228	-fno-ident \
229	-fdata-sections \
230	-ffunction-sections \
231	-fomit-frame-pointer \
232	-funwind-tables
233
234MY_DEFS_Release := \
235	'-DV8_DEPRECATION_WARNINGS' \
236	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
237	'-D_FILE_OFFSET_BITS=64' \
238	'-DNO_TCMALLOC' \
239	'-DDISABLE_NACL' \
240	'-DCHROMIUM_BUILD' \
241	'-DUSE_LIBJPEG_TURBO=1' \
242	'-DENABLE_WEBRTC=1' \
243	'-DUSE_PROPRIETARY_CODECS' \
244	'-DENABLE_BROWSER_CDMS' \
245	'-DENABLE_CONFIGURATION_POLICY' \
246	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
247	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
248	'-DENABLE_EGLIMAGE=1' \
249	'-DCLD_VERSION=1' \
250	'-DENABLE_PRINTING=1' \
251	'-DENABLE_MANAGED_USERS=1' \
252	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
253	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
254	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
255	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
256	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
257	'-DVIDEO_HOLE=1' \
258	'-DPRINTING_IMPLEMENTATION' \
259	'-DSK_ENABLE_INST_COUNT=0' \
260	'-DSK_SUPPORT_GPU=1' \
261	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
262	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
263	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
264	'-DGR_GL_IGNORE_ES3_MSAA=0' \
265	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
266	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
267	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
268	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
269	'-DSK_SUPPORT_LEGACY_N32_NAME' \
270	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
271	'-DSK_IGNORE_ETC1_SUPPORT' \
272	'-DSK_IGNORE_GPU_DITHER' \
273	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
274	'-DSK_BUILD_FOR_ANDROID' \
275	'-DSK_USE_POSIX_THREADS' \
276	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
277	'-DU_USING_ICU_NAMESPACE=0' \
278	'-DUSE_OPENSSL=1' \
279	'-DUSE_OPENSSL_CERTS=1' \
280	'-D__STDC_CONSTANT_MACROS' \
281	'-D__STDC_FORMAT_MACROS' \
282	'-DANDROID' \
283	'-D__GNU_SOURCE=1' \
284	'-DUSE_STLPORT=1' \
285	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
286	'-DCHROME_BUILD_ID=""' \
287	'-DNDEBUG' \
288	'-DNVALGRIND' \
289	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
290	'-D_FORTIFY_SOURCE=2'
291
292
293# Include paths placed before CFLAGS/CPPFLAGS
294LOCAL_C_INCLUDES_Release := \
295	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
296	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
297	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
298	$(gyp_shared_intermediate_dir) \
299	$(LOCAL_PATH) \
300	$(LOCAL_PATH)/skia/config \
301	$(LOCAL_PATH)/third_party/skia/src/core \
302	$(LOCAL_PATH)/third_party/skia/include/core \
303	$(LOCAL_PATH)/third_party/skia/include/effects \
304	$(LOCAL_PATH)/third_party/skia/include/pdf \
305	$(LOCAL_PATH)/third_party/skia/include/gpu \
306	$(LOCAL_PATH)/third_party/skia/include/lazy \
307	$(LOCAL_PATH)/third_party/skia/include/pathops \
308	$(LOCAL_PATH)/third_party/skia/include/pipe \
309	$(LOCAL_PATH)/third_party/skia/include/ports \
310	$(LOCAL_PATH)/third_party/skia/include/utils \
311	$(LOCAL_PATH)/skia/ext \
312	$(PWD)/external/icu/icu4c/source/common \
313	$(PWD)/external/icu/icu4c/source/i18n \
314	$(gyp_shared_intermediate_dir)/printing \
315	$(PWD)/frameworks/wilhelm/include \
316	$(PWD)/bionic \
317	$(PWD)/external/stlport/stlport
318
319
320# Flags passed to only C++ (and not C) files.
321LOCAL_CPPFLAGS_Release := \
322	-fno-rtti \
323	-fno-threadsafe-statics \
324	-fvisibility-inlines-hidden \
325	-Wsign-compare \
326	-Wno-abi \
327	-Wno-non-virtual-dtor \
328	-Wno-sign-promo
329
330
331LOCAL_FDO_SUPPORT_Release := false
332
333LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
334LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
335LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
336LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
337LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
338### Rules for final target.
339
340LOCAL_LDFLAGS_Debug := \
341	-Wl,-z,now \
342	-Wl,-z,relro \
343	-Wl,--fatal-warnings \
344	-Wl,-z,noexecstack \
345	-fPIC \
346	-Wl,-z,relro \
347	-Wl,-z,now \
348	-fuse-ld=gold \
349	-nostdlib \
350	-Wl,--no-undefined \
351	-Wl,--exclude-libs=ALL \
352	-Wl,--icf=safe \
353	-Wl,--warn-shared-textrel \
354	-Wl,-O1 \
355	-Wl,--as-needed
356
357
358LOCAL_LDFLAGS_Release := \
359	-Wl,-z,now \
360	-Wl,-z,relro \
361	-Wl,--fatal-warnings \
362	-Wl,-z,noexecstack \
363	-fPIC \
364	-Wl,-z,relro \
365	-Wl,-z,now \
366	-fuse-ld=gold \
367	-nostdlib \
368	-Wl,--no-undefined \
369	-Wl,--exclude-libs=ALL \
370	-Wl,--icf=safe \
371	-Wl,-O1 \
372	-Wl,--as-needed \
373	-Wl,--gc-sections \
374	-Wl,--warn-shared-textrel
375
376
377LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
378
379LOCAL_STATIC_LIBRARIES := \
380	skia_skia_library_gyp
381
382# Enable grouping to fix circular references
383LOCAL_GROUP_STATIC_LIBRARIES := true
384
385LOCAL_SHARED_LIBRARIES := \
386	libstlport \
387	libdl
388
389# Add target alias to "gyp_all_modules" target.
390.PHONY: gyp_all_modules
391gyp_all_modules: printing_printing_gyp
392
393# Alias gyp target name.
394.PHONY: printing
395printing: printing_printing_gyp
396
397include $(BUILD_STATIC_LIBRARY)
398