1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := ui_shell_dialogs_shell_dialogs_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	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
15	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
16	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \
17	$(call intermediates-dir-for,GYP,ui_strings_ui_strings_gyp,,,$(GYP_VAR_PREFIX))/ui_strings.stamp \
18	$(call intermediates-dir-for,GYP,ui_base_ui_base_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/ui_base_jni_headers.stamp
19
20GYP_GENERATED_OUTPUTS :=
21
22# Make sure our deps and generated files are built first.
23LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
24
25LOCAL_CPP_EXTENSION := .cc
26LOCAL_GENERATED_SOURCES :=
27
28GYP_COPIED_SOURCE_ORIGIN_DIRS :=
29
30LOCAL_SRC_FILES := \
31	ui/shell_dialogs/android/shell_dialogs_jni_registrar.cc \
32	ui/shell_dialogs/base_shell_dialog.cc \
33	ui/shell_dialogs/linux_shell_dialog.cc \
34	ui/shell_dialogs/select_file_dialog.cc \
35	ui/shell_dialogs/select_file_dialog_android.cc \
36	ui/shell_dialogs/select_file_dialog_factory.cc \
37	ui/shell_dialogs/select_file_policy.cc \
38	ui/shell_dialogs/selected_file_info.cc
39
40
41# Flags passed to both C and C++ files.
42MY_CFLAGS_Debug := \
43	--param=ssp-buffer-size=4 \
44	-Werror \
45	-fno-strict-aliasing \
46	-Wall \
47	-Wno-unused-parameter \
48	-Wno-missing-field-initializers \
49	-fvisibility=hidden \
50	-pipe \
51	-fPIC \
52	-Wno-unused-local-typedefs \
53	-msse2 \
54	-mfpmath=sse \
55	-mmmx \
56	-m32 \
57	-ffunction-sections \
58	-funwind-tables \
59	-g \
60	-fno-short-enums \
61	-finline-limit=64 \
62	-Wa,--noexecstack \
63	-U_FORTIFY_SOURCE \
64	-Wno-extra \
65	-Wno-ignored-qualifiers \
66	-Wno-type-limits \
67	-Wno-unused-but-set-variable \
68	-fno-stack-protector \
69	-Os \
70	-g \
71	-gdwarf-4 \
72	-fdata-sections \
73	-ffunction-sections \
74	-fomit-frame-pointer \
75	-funwind-tables
76
77MY_DEFS_Debug := \
78	'-DV8_DEPRECATION_WARNINGS' \
79	'-D_FILE_OFFSET_BITS=64' \
80	'-DNO_TCMALLOC' \
81	'-DDISABLE_NACL' \
82	'-DCHROMIUM_BUILD' \
83	'-DUSE_LIBJPEG_TURBO=1' \
84	'-DENABLE_WEBRTC=1' \
85	'-DUSE_PROPRIETARY_CODECS' \
86	'-DENABLE_BROWSER_CDMS' \
87	'-DENABLE_CONFIGURATION_POLICY' \
88	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
89	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
90	'-DENABLE_EGLIMAGE=1' \
91	'-DCLD_VERSION=1' \
92	'-DENABLE_PRINTING=1' \
93	'-DENABLE_MANAGED_USERS=1' \
94	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
95	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
96	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
97	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
98	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
99	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
100	'-DVIDEO_HOLE=1' \
101	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
102	'-DSHELL_DIALOGS_IMPLEMENTATION' \
103	'-DSK_ENABLE_INST_COUNT=0' \
104	'-DSK_SUPPORT_GPU=1' \
105	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
106	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
107	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
108	'-DGR_GL_IGNORE_ES3_MSAA=0' \
109	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
110	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
111	'-DSK_BUILD_FOR_ANDROID' \
112	'-DSK_USE_POSIX_THREADS' \
113	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
114	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
115	'-DU_USING_ICU_NAMESPACE=0' \
116	'-DU_ENABLE_DYLOAD=0' \
117	'-DUSE_OPENSSL=1' \
118	'-DUSE_OPENSSL_CERTS=1' \
119	'-D__STDC_CONSTANT_MACROS' \
120	'-D__STDC_FORMAT_MACROS' \
121	'-DANDROID' \
122	'-D__GNU_SOURCE=1' \
123	'-DUSE_STLPORT=1' \
124	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
125	'-DCHROME_BUILD_ID=""' \
126	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
127	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
128	'-D_DEBUG'
129
130
131# Include paths placed before CFLAGS/CPPFLAGS
132LOCAL_C_INCLUDES_Debug := \
133	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
134	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
135	$(gyp_shared_intermediate_dir) \
136	$(gyp_shared_intermediate_dir)/ui \
137	$(LOCAL_PATH) \
138	$(LOCAL_PATH)/skia/config \
139	$(LOCAL_PATH)/third_party/skia/src/core \
140	$(LOCAL_PATH)/third_party/skia/include/core \
141	$(LOCAL_PATH)/third_party/skia/include/effects \
142	$(LOCAL_PATH)/third_party/skia/include/pdf \
143	$(LOCAL_PATH)/third_party/skia/include/gpu \
144	$(LOCAL_PATH)/third_party/skia/include/lazy \
145	$(LOCAL_PATH)/third_party/skia/include/pathops \
146	$(LOCAL_PATH)/third_party/skia/include/pipe \
147	$(LOCAL_PATH)/third_party/skia/include/ports \
148	$(LOCAL_PATH)/third_party/skia/include/utils \
149	$(LOCAL_PATH)/skia/ext \
150	$(PWD)/external/icu/icu4c/source/common \
151	$(PWD)/external/icu/icu4c/source/i18n \
152	$(PWD)/frameworks/wilhelm/include \
153	$(PWD)/bionic \
154	$(PWD)/external/stlport/stlport
155
156
157# Flags passed to only C++ (and not C) files.
158LOCAL_CPPFLAGS_Debug := \
159	-fno-exceptions \
160	-fno-rtti \
161	-fno-threadsafe-statics \
162	-fvisibility-inlines-hidden \
163	-Wsign-compare \
164	-std=gnu++11 \
165	-Wno-narrowing \
166	-Wno-literal-suffix \
167	-Wno-non-virtual-dtor \
168	-Wno-sign-promo
169
170
171# Flags passed to both C and C++ files.
172MY_CFLAGS_Release := \
173	--param=ssp-buffer-size=4 \
174	-Werror \
175	-fno-strict-aliasing \
176	-Wall \
177	-Wno-unused-parameter \
178	-Wno-missing-field-initializers \
179	-fvisibility=hidden \
180	-pipe \
181	-fPIC \
182	-Wno-unused-local-typedefs \
183	-msse2 \
184	-mfpmath=sse \
185	-mmmx \
186	-m32 \
187	-ffunction-sections \
188	-funwind-tables \
189	-g \
190	-fno-short-enums \
191	-finline-limit=64 \
192	-Wa,--noexecstack \
193	-U_FORTIFY_SOURCE \
194	-Wno-extra \
195	-Wno-ignored-qualifiers \
196	-Wno-type-limits \
197	-Wno-unused-but-set-variable \
198	-fno-stack-protector \
199	-Os \
200	-fno-ident \
201	-fdata-sections \
202	-ffunction-sections \
203	-fomit-frame-pointer \
204	-funwind-tables
205
206MY_DEFS_Release := \
207	'-DV8_DEPRECATION_WARNINGS' \
208	'-D_FILE_OFFSET_BITS=64' \
209	'-DNO_TCMALLOC' \
210	'-DDISABLE_NACL' \
211	'-DCHROMIUM_BUILD' \
212	'-DUSE_LIBJPEG_TURBO=1' \
213	'-DENABLE_WEBRTC=1' \
214	'-DUSE_PROPRIETARY_CODECS' \
215	'-DENABLE_BROWSER_CDMS' \
216	'-DENABLE_CONFIGURATION_POLICY' \
217	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
218	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
219	'-DENABLE_EGLIMAGE=1' \
220	'-DCLD_VERSION=1' \
221	'-DENABLE_PRINTING=1' \
222	'-DENABLE_MANAGED_USERS=1' \
223	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
224	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
225	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
226	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
227	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
228	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
229	'-DVIDEO_HOLE=1' \
230	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
231	'-DSHELL_DIALOGS_IMPLEMENTATION' \
232	'-DSK_ENABLE_INST_COUNT=0' \
233	'-DSK_SUPPORT_GPU=1' \
234	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
235	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
236	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
237	'-DGR_GL_IGNORE_ES3_MSAA=0' \
238	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
239	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
240	'-DSK_BUILD_FOR_ANDROID' \
241	'-DSK_USE_POSIX_THREADS' \
242	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
243	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
244	'-DU_USING_ICU_NAMESPACE=0' \
245	'-DU_ENABLE_DYLOAD=0' \
246	'-DUSE_OPENSSL=1' \
247	'-DUSE_OPENSSL_CERTS=1' \
248	'-D__STDC_CONSTANT_MACROS' \
249	'-D__STDC_FORMAT_MACROS' \
250	'-DANDROID' \
251	'-D__GNU_SOURCE=1' \
252	'-DUSE_STLPORT=1' \
253	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
254	'-DCHROME_BUILD_ID=""' \
255	'-DNDEBUG' \
256	'-DNVALGRIND' \
257	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
258	'-D_FORTIFY_SOURCE=2'
259
260
261# Include paths placed before CFLAGS/CPPFLAGS
262LOCAL_C_INCLUDES_Release := \
263	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
264	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
265	$(gyp_shared_intermediate_dir) \
266	$(gyp_shared_intermediate_dir)/ui \
267	$(LOCAL_PATH) \
268	$(LOCAL_PATH)/skia/config \
269	$(LOCAL_PATH)/third_party/skia/src/core \
270	$(LOCAL_PATH)/third_party/skia/include/core \
271	$(LOCAL_PATH)/third_party/skia/include/effects \
272	$(LOCAL_PATH)/third_party/skia/include/pdf \
273	$(LOCAL_PATH)/third_party/skia/include/gpu \
274	$(LOCAL_PATH)/third_party/skia/include/lazy \
275	$(LOCAL_PATH)/third_party/skia/include/pathops \
276	$(LOCAL_PATH)/third_party/skia/include/pipe \
277	$(LOCAL_PATH)/third_party/skia/include/ports \
278	$(LOCAL_PATH)/third_party/skia/include/utils \
279	$(LOCAL_PATH)/skia/ext \
280	$(PWD)/external/icu/icu4c/source/common \
281	$(PWD)/external/icu/icu4c/source/i18n \
282	$(PWD)/frameworks/wilhelm/include \
283	$(PWD)/bionic \
284	$(PWD)/external/stlport/stlport
285
286
287# Flags passed to only C++ (and not C) files.
288LOCAL_CPPFLAGS_Release := \
289	-fno-exceptions \
290	-fno-rtti \
291	-fno-threadsafe-statics \
292	-fvisibility-inlines-hidden \
293	-Wsign-compare \
294	-std=gnu++11 \
295	-Wno-narrowing \
296	-Wno-literal-suffix \
297	-Wno-non-virtual-dtor \
298	-Wno-sign-promo
299
300
301LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
302LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
303LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
304LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
305### Rules for final target.
306
307LOCAL_SHARED_LIBRARIES := \
308	libstlport \
309	libdl
310
311# Add target alias to "gyp_all_modules" target.
312.PHONY: gyp_all_modules
313gyp_all_modules: ui_shell_dialogs_shell_dialogs_gyp
314
315# Alias gyp target name.
316.PHONY: shell_dialogs
317shell_dialogs: ui_shell_dialogs_shell_dialogs_gyp
318
319include $(BUILD_STATIC_LIBRARY)
320