• 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 := android_webview_native_webview_native_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_ui_gyp)/ui_ui_gyp.a \
16	$(call intermediates-dir-for,GYP,android_webview_native_android_webview_native_jni_gyp)/android_webview_native_jni.stamp
17
18GYP_GENERATED_OUTPUTS :=
19
20# Make sure our deps and generated files are built first.
21LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
22
23LOCAL_CPP_EXTENSION := .cc
24LOCAL_GENERATED_SOURCES :=
25
26GYP_COPIED_SOURCE_ORIGIN_DIRS :=
27
28LOCAL_SRC_FILES := \
29	android_webview/native/android_protocol_handler.cc \
30	android_webview/native/android_webview_jni_registrar.cc \
31	android_webview/native/aw_autofill_manager_delegate.cc \
32	android_webview/native/aw_browser_dependency_factory.cc \
33	android_webview/native/aw_contents.cc \
34	android_webview/native/aw_contents_client_bridge.cc \
35	android_webview/native/aw_contents_io_thread_client_impl.cc \
36	android_webview/native/aw_dev_tools_server.cc \
37	android_webview/native/aw_form_database.cc \
38	android_webview/native/aw_geolocation_permission_context.cc \
39	android_webview/native/aw_http_auth_handler.cc \
40	android_webview/native/aw_pdf_exporter.cc \
41	android_webview/native/aw_picture.cc \
42	android_webview/native/aw_quota_manager_bridge_impl.cc \
43	android_webview/native/aw_resource.cc \
44	android_webview/native/aw_settings.cc \
45	android_webview/native/aw_web_contents_delegate.cc \
46	android_webview/native/aw_web_contents_view_delegate.cc \
47	android_webview/native/aw_web_preferences_populater_impl.cc \
48	android_webview/native/cookie_manager.cc \
49	android_webview/native/input_stream_impl.cc \
50	android_webview/native/intercepted_request_data_impl.cc \
51	android_webview/native/java_browser_view_renderer_helper.cc \
52	android_webview/native/net_init_native_callback.cc \
53	android_webview/native/state_serializer.cc
54
55
56# Flags passed to both C and C++ files.
57MY_CFLAGS_Debug := \
58	-fstack-protector \
59	--param=ssp-buffer-size=4 \
60	-Werror \
61	-fno-exceptions \
62	-fno-strict-aliasing \
63	-Wall \
64	-Wno-unused-parameter \
65	-Wno-missing-field-initializers \
66	-fvisibility=hidden \
67	-pipe \
68	-fPIC \
69	-fno-tree-sra \
70	-fuse-ld=gold \
71	-Wno-psabi \
72	-ffunction-sections \
73	-funwind-tables \
74	-g \
75	-fstack-protector \
76	-fno-short-enums \
77	-finline-limit=64 \
78	-Wa,--noexecstack \
79	-U_FORTIFY_SOURCE \
80	-Wno-extra \
81	-Wno-ignored-qualifiers \
82	-Wno-type-limits \
83	-Os \
84	-g \
85	-fomit-frame-pointer \
86	-fdata-sections \
87	-ffunction-sections
88
89MY_DEFS_Debug := \
90	'-DV8_DEPRECATION_WARNINGS' \
91	'-D_FILE_OFFSET_BITS=64' \
92	'-DNO_TCMALLOC' \
93	'-DDISABLE_NACL' \
94	'-DCHROMIUM_BUILD' \
95	'-DUSE_LIBJPEG_TURBO=1' \
96	'-DUSE_PROPRIETARY_CODECS' \
97	'-DENABLE_CONFIGURATION_POLICY' \
98	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
99	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
100	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
101	'-DUSE_OPENSSL=1' \
102	'-DENABLE_EGLIMAGE=1' \
103	'-DCLD_VERSION=1' \
104	'-DENABLE_PRINTING=1' \
105	'-DENABLE_MANAGED_USERS=1' \
106	'-DPOSIX_AVOID_MMAP' \
107	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
108	'-DU_USING_ICU_NAMESPACE=0' \
109	'-DAPPCACHE_USE_SIMPLE_CACHE' \
110	'-D__STDC_CONSTANT_MACROS' \
111	'-D__STDC_FORMAT_MACROS' \
112	'-DANDROID' \
113	'-D__GNU_SOURCE=1' \
114	'-DUSE_STLPORT=1' \
115	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
116	'-DCHROME_BUILD_ID=""' \
117	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
118	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
119	'-D_DEBUG'
120
121
122# Include paths placed before CFLAGS/CPPFLAGS
123LOCAL_C_INCLUDES_Debug := \
124	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
125	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
126	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
127	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
128	$(LOCAL_PATH) \
129	$(LOCAL_PATH)/skia/config \
130	$(gyp_shared_intermediate_dir)/android_webview \
131	$(LOCAL_PATH)/third_party/khronos \
132	$(LOCAL_PATH)/gpu \
133	$(LOCAL_PATH)/third_party/WebKit/Source \
134	$(PWD)/external/skia/include \
135	$(PWD)/external/skia/include/core \
136	$(LOCAL_PATH)/third_party/skia/src/core \
137	$(LOCAL_PATH)/skia/ext \
138	$(PWD)/external/icu4c/common \
139	$(PWD)/external/icu4c/i18n \
140	$(PWD)/frameworks/wilhelm/include \
141	$(PWD)/bionic \
142	$(PWD)/external/stlport/stlport
143
144
145# Flags passed to only C++ (and not C) files.
146LOCAL_CPPFLAGS_Debug := \
147	-fno-rtti \
148	-fno-threadsafe-statics \
149	-fvisibility-inlines-hidden \
150	-Wsign-compare \
151	-Wno-abi \
152	-Wno-error=c++0x-compat \
153	-Wno-non-virtual-dtor \
154	-Wno-sign-promo
155
156
157# Flags passed to both C and C++ files.
158MY_CFLAGS_Release := \
159	-fstack-protector \
160	--param=ssp-buffer-size=4 \
161	-Werror \
162	-fno-exceptions \
163	-fno-strict-aliasing \
164	-Wall \
165	-Wno-unused-parameter \
166	-Wno-missing-field-initializers \
167	-fvisibility=hidden \
168	-pipe \
169	-fPIC \
170	-fno-tree-sra \
171	-fuse-ld=gold \
172	-Wno-psabi \
173	-ffunction-sections \
174	-funwind-tables \
175	-g \
176	-fstack-protector \
177	-fno-short-enums \
178	-finline-limit=64 \
179	-Wa,--noexecstack \
180	-U_FORTIFY_SOURCE \
181	-Wno-extra \
182	-Wno-ignored-qualifiers \
183	-Wno-type-limits \
184	-Os \
185	-fno-ident \
186	-fdata-sections \
187	-ffunction-sections \
188	-fomit-frame-pointer
189
190MY_DEFS_Release := \
191	'-DV8_DEPRECATION_WARNINGS' \
192	'-D_FILE_OFFSET_BITS=64' \
193	'-DNO_TCMALLOC' \
194	'-DDISABLE_NACL' \
195	'-DCHROMIUM_BUILD' \
196	'-DUSE_LIBJPEG_TURBO=1' \
197	'-DUSE_PROPRIETARY_CODECS' \
198	'-DENABLE_CONFIGURATION_POLICY' \
199	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
200	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
201	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
202	'-DUSE_OPENSSL=1' \
203	'-DENABLE_EGLIMAGE=1' \
204	'-DCLD_VERSION=1' \
205	'-DENABLE_PRINTING=1' \
206	'-DENABLE_MANAGED_USERS=1' \
207	'-DPOSIX_AVOID_MMAP' \
208	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
209	'-DU_USING_ICU_NAMESPACE=0' \
210	'-DAPPCACHE_USE_SIMPLE_CACHE' \
211	'-D__STDC_CONSTANT_MACROS' \
212	'-D__STDC_FORMAT_MACROS' \
213	'-DANDROID' \
214	'-D__GNU_SOURCE=1' \
215	'-DUSE_STLPORT=1' \
216	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
217	'-DCHROME_BUILD_ID=""' \
218	'-DNDEBUG' \
219	'-DNVALGRIND' \
220	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
221	'-D_FORTIFY_SOURCE=2'
222
223
224# Include paths placed before CFLAGS/CPPFLAGS
225LOCAL_C_INCLUDES_Release := \
226	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
227	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
228	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
229	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
230	$(LOCAL_PATH) \
231	$(LOCAL_PATH)/skia/config \
232	$(gyp_shared_intermediate_dir)/android_webview \
233	$(LOCAL_PATH)/third_party/khronos \
234	$(LOCAL_PATH)/gpu \
235	$(LOCAL_PATH)/third_party/WebKit/Source \
236	$(PWD)/external/skia/include \
237	$(PWD)/external/skia/include/core \
238	$(LOCAL_PATH)/third_party/skia/src/core \
239	$(LOCAL_PATH)/skia/ext \
240	$(PWD)/external/icu4c/common \
241	$(PWD)/external/icu4c/i18n \
242	$(PWD)/frameworks/wilhelm/include \
243	$(PWD)/bionic \
244	$(PWD)/external/stlport/stlport
245
246
247# Flags passed to only C++ (and not C) files.
248LOCAL_CPPFLAGS_Release := \
249	-fno-rtti \
250	-fno-threadsafe-statics \
251	-fvisibility-inlines-hidden \
252	-Wsign-compare \
253	-Wno-abi \
254	-Wno-error=c++0x-compat \
255	-Wno-non-virtual-dtor \
256	-Wno-sign-promo
257
258
259LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
260LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
261LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
262### Rules for final target.
263
264LOCAL_LDFLAGS_Debug := \
265	-Wl,-z,now \
266	-Wl,-z,relro \
267	-Wl,-z,noexecstack \
268	-fPIC \
269	-Wl,-z,relro \
270	-Wl,-z,now \
271	-fuse-ld=gold \
272	-nostdlib \
273	-Wl,--no-undefined \
274	-Wl,--exclude-libs=ALL \
275	-Wl,--icf=safe \
276	-Wl,--fatal-warnings \
277	-Wl,--gc-sections \
278	-Wl,--warn-shared-textrel \
279	-Wl,-O1 \
280	-Wl,--as-needed
281
282
283LOCAL_LDFLAGS_Release := \
284	-Wl,-z,now \
285	-Wl,-z,relro \
286	-Wl,-z,noexecstack \
287	-fPIC \
288	-Wl,-z,relro \
289	-Wl,-z,now \
290	-fuse-ld=gold \
291	-nostdlib \
292	-Wl,--no-undefined \
293	-Wl,--exclude-libs=ALL \
294	-Wl,--icf=safe \
295	-Wl,-O1 \
296	-Wl,--as-needed \
297	-Wl,--gc-sections \
298	-Wl,--fatal-warnings \
299	-Wl,--warn-shared-textrel
300
301
302LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
303
304LOCAL_STATIC_LIBRARIES := \
305	ui_ui_gyp
306
307# Enable grouping to fix circular references
308LOCAL_GROUP_STATIC_LIBRARIES := true
309
310LOCAL_SHARED_LIBRARIES := \
311	libskia \
312	libstlport \
313	libdl
314
315# Add target alias to "gyp_all_modules" target.
316.PHONY: gyp_all_modules
317gyp_all_modules: android_webview_native_webview_native_gyp
318
319# Alias gyp target name.
320.PHONY: webview_native
321webview_native: android_webview_native_webview_native_gyp
322
323include $(BUILD_STATIC_LIBRARY)
324