1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := android_webview_android_webview_common_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \
15	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \
16	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_gyp)/blink.stamp \
17	$(call intermediates-dir-for,GYP,android_webview_android_webview_pak_gyp)/android_webview_pak.stamp
18
19GYP_GENERATED_OUTPUTS :=
20
21# Make sure our deps and generated files are built first.
22LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
23
24LOCAL_CPP_EXTENSION := .cc
25LOCAL_GENERATED_SOURCES :=
26
27GYP_COPIED_SOURCE_ORIGIN_DIRS :=
28
29LOCAL_SRC_FILES := \
30	android_webview/browser/aw_browser_context.cc \
31	android_webview/browser/aw_browser_main_parts.cc \
32	android_webview/browser/aw_contents_client_bridge_base.cc \
33	android_webview/browser/aw_content_browser_client.cc \
34	android_webview/browser/aw_cookie_access_policy.cc \
35	android_webview/browser/aw_download_manager_delegate.cc \
36	android_webview/browser/aw_form_database_service.cc \
37	android_webview/browser/aw_gl_surface.cc \
38	android_webview/browser/aw_http_auth_handler_base.cc \
39	android_webview/browser/aw_javascript_dialog_manager.cc \
40	android_webview/browser/aw_login_delegate.cc \
41	android_webview/browser/aw_pref_store.cc \
42	android_webview/browser/aw_quota_manager_bridge.cc \
43	android_webview/browser/aw_quota_permission_context.cc \
44	android_webview/browser/aw_request_interceptor.cc \
45	android_webview/browser/aw_web_preferences_populater.cc \
46	android_webview/browser/find_helper.cc \
47	android_webview/browser/gpu_memory_buffer_factory_impl.cc \
48	android_webview/browser/gpu_memory_handle_impl.cc \
49	android_webview/browser/icon_helper.cc \
50	android_webview/browser/in_process_view_renderer.cc \
51	android_webview/browser/gl_view_renderer_manager.cc \
52	android_webview/browser/net/android_stream_reader_url_request_job.cc \
53	android_webview/browser/net/aw_network_delegate.cc \
54	android_webview/browser/net/aw_url_request_context_getter.cc \
55	android_webview/browser/net/aw_url_request_job_factory.cc \
56	android_webview/browser/net_disk_cache_remover.cc \
57	android_webview/browser/net/input_stream_reader.cc \
58	android_webview/browser/renderer_host/aw_render_view_host_ext.cc \
59	android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc \
60	android_webview/browser/scoped_app_gl_state_restore.cc \
61	android_webview/common/android_webview_message_generator.cc \
62	android_webview/common/aw_content_client.cc \
63	android_webview/common/aw_hit_test_data.cc \
64	android_webview/common/aw_switches.cc \
65	android_webview/common/render_view_messages.cc \
66	android_webview/common/url_constants.cc \
67	android_webview/lib/aw_browser_dependency_factory_impl.cc \
68	android_webview/lib/main/aw_main_delegate.cc \
69	android_webview/renderer/aw_content_renderer_client.cc \
70	android_webview/renderer/aw_render_process_observer.cc \
71	android_webview/renderer/aw_render_view_ext.cc \
72	android_webview/browser/renderer_host/print_manager.cc \
73	android_webview/common/print_messages.cc \
74	android_webview/renderer/print_web_view_helper.cc \
75	android_webview/renderer/print_web_view_helper_android.cc
76
77
78# Flags passed to both C and C++ files.
79MY_CFLAGS_Debug := \
80	--param=ssp-buffer-size=4 \
81	-Werror \
82	-fno-exceptions \
83	-fno-strict-aliasing \
84	-Wall \
85	-Wno-unused-parameter \
86	-Wno-missing-field-initializers \
87	-fvisibility=hidden \
88	-pipe \
89	-fPIC \
90	-Wno-unknown-pragmas \
91	-m32 \
92	-mmmx \
93	-march=pentium4 \
94	-msse2 \
95	-mfpmath=sse \
96	-fuse-ld=gold \
97	-ffunction-sections \
98	-funwind-tables \
99	-g \
100	-fno-short-enums \
101	-finline-limit=64 \
102	-Wa,--noexecstack \
103	-U_FORTIFY_SOURCE \
104	-Wno-extra \
105	-Wno-ignored-qualifiers \
106	-Wno-type-limits \
107	-fno-stack-protector \
108	-Os \
109	-g \
110	-fomit-frame-pointer \
111	-fdata-sections \
112	-ffunction-sections
113
114MY_DEFS_Debug := \
115	'-DANGLE_DX11' \
116	'-D_FILE_OFFSET_BITS=64' \
117	'-DNO_TCMALLOC' \
118	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
119	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
120	'-DDISABLE_NACL' \
121	'-DCHROMIUM_BUILD' \
122	'-DUSE_LIBJPEG_TURBO=1' \
123	'-DUSE_PROPRIETARY_CODECS' \
124	'-DENABLE_CONFIGURATION_POLICY' \
125	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
126	'-DTRACING_IS_OFFICIAL_BUILD=1' \
127	'-DENABLE_GPU=1' \
128	'-DUSE_OPENSSL=1' \
129	'-DENABLE_EGLIMAGE=1' \
130	'-DENABLE_PRINTING=1' \
131	'-DMESA_EGL_NO_X11_HEADERS' \
132	'-DU_USING_ICU_NAMESPACE=0' \
133	'-D__STDC_CONSTANT_MACROS' \
134	'-D__STDC_FORMAT_MACROS' \
135	'-DANDROID' \
136	'-D__GNU_SOURCE=1' \
137	'-DUSE_STLPORT=1' \
138	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
139	'-DCHROME_BUILD_ID=""' \
140	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
141	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
142	'-D_DEBUG'
143
144
145# Include paths placed before CFLAGS/CPPFLAGS
146LOCAL_C_INCLUDES_Debug := \
147	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
148	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
149	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
150	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
151	$(LOCAL_PATH) \
152	$(LOCAL_PATH)/skia/config \
153	$(gyp_shared_intermediate_dir)/ui/ui_resources \
154	$(LOCAL_PATH)/third_party/khronos \
155	$(LOCAL_PATH)/gpu \
156	$(LOCAL_PATH)/third_party/skia/src/core \
157	$(LOCAL_PATH)/skia/ext \
158	$(gyp_shared_intermediate_dir)/ui/gl \
159	$(LOCAL_PATH)/third_party/mesa/src/include \
160	$(LOCAL_PATH)/third_party/WebKit \
161	$(PWD)/external/icu4c/common \
162	$(PWD)/external/icu4c/i18n \
163	$(LOCAL_PATH)/third_party/npapi \
164	$(LOCAL_PATH)/third_party/npapi/bindings \
165	$(LOCAL_PATH)/v8/include \
166	$(PWD)/frameworks/wilhelm/include \
167	$(PWD)/bionic \
168	$(PWD)/external/stlport/stlport
169
170
171# Flags passed to only C++ (and not C) files.
172LOCAL_CPPFLAGS_Debug := \
173	-fno-rtti \
174	-fno-threadsafe-statics \
175	-fvisibility-inlines-hidden \
176	-Wsign-compare \
177	-Wno-error=c++0x-compat \
178	-Wno-non-virtual-dtor \
179	-Wno-sign-promo
180
181
182# Flags passed to both C and C++ files.
183MY_CFLAGS_Release := \
184	--param=ssp-buffer-size=4 \
185	-Werror \
186	-fno-exceptions \
187	-fno-strict-aliasing \
188	-Wall \
189	-Wno-unused-parameter \
190	-Wno-missing-field-initializers \
191	-fvisibility=hidden \
192	-pipe \
193	-fPIC \
194	-Wno-unknown-pragmas \
195	-m32 \
196	-mmmx \
197	-march=pentium4 \
198	-msse2 \
199	-mfpmath=sse \
200	-fuse-ld=gold \
201	-ffunction-sections \
202	-funwind-tables \
203	-g \
204	-fno-short-enums \
205	-finline-limit=64 \
206	-Wa,--noexecstack \
207	-U_FORTIFY_SOURCE \
208	-Wno-extra \
209	-Wno-ignored-qualifiers \
210	-Wno-type-limits \
211	-fno-stack-protector \
212	-Os \
213	-fno-ident \
214	-fdata-sections \
215	-ffunction-sections \
216	-fomit-frame-pointer \
217	-fno-unwind-tables \
218	-fno-asynchronous-unwind-tables
219
220MY_DEFS_Release := \
221	'-DANGLE_DX11' \
222	'-D_FILE_OFFSET_BITS=64' \
223	'-DNO_TCMALLOC' \
224	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
225	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
226	'-DDISABLE_NACL' \
227	'-DCHROMIUM_BUILD' \
228	'-DUSE_LIBJPEG_TURBO=1' \
229	'-DUSE_PROPRIETARY_CODECS' \
230	'-DENABLE_CONFIGURATION_POLICY' \
231	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
232	'-DTRACING_IS_OFFICIAL_BUILD=1' \
233	'-DENABLE_GPU=1' \
234	'-DUSE_OPENSSL=1' \
235	'-DENABLE_EGLIMAGE=1' \
236	'-DENABLE_PRINTING=1' \
237	'-DMESA_EGL_NO_X11_HEADERS' \
238	'-DU_USING_ICU_NAMESPACE=0' \
239	'-D__STDC_CONSTANT_MACROS' \
240	'-D__STDC_FORMAT_MACROS' \
241	'-DANDROID' \
242	'-D__GNU_SOURCE=1' \
243	'-DUSE_STLPORT=1' \
244	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
245	'-DCHROME_BUILD_ID=""' \
246	'-DNDEBUG' \
247	'-DNVALGRIND' \
248	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
249	'-D_FORTIFY_SOURCE=2'
250
251
252# Include paths placed before CFLAGS/CPPFLAGS
253LOCAL_C_INCLUDES_Release := \
254	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
255	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
256	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
257	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
258	$(LOCAL_PATH) \
259	$(LOCAL_PATH)/skia/config \
260	$(gyp_shared_intermediate_dir)/ui/ui_resources \
261	$(LOCAL_PATH)/third_party/khronos \
262	$(LOCAL_PATH)/gpu \
263	$(LOCAL_PATH)/third_party/skia/src/core \
264	$(LOCAL_PATH)/skia/ext \
265	$(gyp_shared_intermediate_dir)/ui/gl \
266	$(LOCAL_PATH)/third_party/mesa/src/include \
267	$(LOCAL_PATH)/third_party/WebKit \
268	$(PWD)/external/icu4c/common \
269	$(PWD)/external/icu4c/i18n \
270	$(LOCAL_PATH)/third_party/npapi \
271	$(LOCAL_PATH)/third_party/npapi/bindings \
272	$(LOCAL_PATH)/v8/include \
273	$(PWD)/frameworks/wilhelm/include \
274	$(PWD)/bionic \
275	$(PWD)/external/stlport/stlport
276
277
278# Flags passed to only C++ (and not C) files.
279LOCAL_CPPFLAGS_Release := \
280	-fno-rtti \
281	-fno-threadsafe-statics \
282	-fvisibility-inlines-hidden \
283	-Wsign-compare \
284	-Wno-error=c++0x-compat \
285	-Wno-non-virtual-dtor \
286	-Wno-sign-promo
287
288
289LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
290LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
291LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
292### Rules for final target.
293
294LOCAL_LDFLAGS_Debug := \
295	-Wl,-z,now \
296	-Wl,-z,relro \
297	-Wl,-z,noexecstack \
298	-fPIC \
299	-m32 \
300	-fuse-ld=gold \
301	-nostdlib \
302	-Wl,--no-undefined \
303	-Wl,--exclude-libs=ALL \
304	-Wl,--fatal-warnings \
305	-Wl,--gc-sections \
306	-Wl,--warn-shared-textrel \
307	-Wl,-O1 \
308	-Wl,--as-needed
309
310
311LOCAL_LDFLAGS_Release := \
312	-Wl,-z,now \
313	-Wl,-z,relro \
314	-Wl,-z,noexecstack \
315	-fPIC \
316	-m32 \
317	-fuse-ld=gold \
318	-nostdlib \
319	-Wl,--no-undefined \
320	-Wl,--exclude-libs=ALL \
321	-Wl,-O1 \
322	-Wl,--as-needed \
323	-Wl,--gc-sections \
324	-Wl,--fatal-warnings \
325	-Wl,--warn-shared-textrel
326
327
328LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
329
330LOCAL_STATIC_LIBRARIES := \
331	ui_gl_gl_gyp
332
333# Enable grouping to fix circular references
334LOCAL_GROUP_STATIC_LIBRARIES := true
335
336LOCAL_SHARED_LIBRARIES := \
337	libskia \
338	libstlport \
339	libdl
340
341# Add target alias to "gyp_all_modules" target.
342.PHONY: gyp_all_modules
343gyp_all_modules: android_webview_android_webview_common_gyp
344
345# Alias gyp target name.
346.PHONY: android_webview_common
347android_webview_common: android_webview_android_webview_common_gyp
348
349include $(BUILD_STATIC_LIBRARY)
350