• 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 := webkit_child_webkit_child_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,GYP,third_party_WebKit_public_blink_gyp)/blink.stamp \
16	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \
17	$(call intermediates-dir-for,GYP,v8_tools_gyp_v8_gyp)/v8.stamp \
18	$(call intermediates-dir-for,GYP,webkit_child_overscroller_jni_headers_gyp)/overscroller_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	webkit/child/fling_animator_impl_android.cc \
32	webkit/child/fling_curve_configuration.cc \
33	webkit/child/ftp_directory_listing_response_delegate.cc \
34	webkit/child/multipart_response_delegate.cc \
35	webkit/child/resource_loader_bridge.cc \
36	webkit/child/touch_fling_gesture_curve.cc \
37	webkit/child/web_discardable_memory_impl.cc \
38	webkit/child/webfallbackthemeengine_impl.cc \
39	webkit/child/webkit_child_helpers.cc \
40	webkit/child/webkitplatformsupport_child_impl.cc \
41	webkit/child/webkitplatformsupport_impl.cc \
42	webkit/child/websocketstreamhandle_impl.cc \
43	webkit/child/webthemeengine_impl_android.cc \
44	webkit/child/webthread_impl.cc \
45	webkit/child/weburlloader_impl.cc \
46	webkit/child/weburlrequest_extradata_impl.cc \
47	webkit/child/weburlresponse_extradata_impl.cc \
48	webkit/child/worker_task_runner.cc
49
50
51# Flags passed to both C and C++ files.
52MY_CFLAGS_Debug := \
53	--param=ssp-buffer-size=4 \
54	-Werror \
55	-fno-exceptions \
56	-fno-strict-aliasing \
57	-Wall \
58	-Wno-unused-parameter \
59	-Wno-missing-field-initializers \
60	-fvisibility=hidden \
61	-pipe \
62	-fPIC \
63	-m32 \
64	-mmmx \
65	-march=pentium4 \
66	-msse2 \
67	-mfpmath=sse \
68	-fuse-ld=gold \
69	-ffunction-sections \
70	-funwind-tables \
71	-g \
72	-fno-short-enums \
73	-finline-limit=64 \
74	-Wa,--noexecstack \
75	-U_FORTIFY_SOURCE \
76	-Wno-extra \
77	-Wno-ignored-qualifiers \
78	-Wno-type-limits \
79	-fno-stack-protector \
80	-Os \
81	-g \
82	-fomit-frame-pointer \
83	-fdata-sections \
84	-ffunction-sections
85
86MY_DEFS_Debug := \
87	'-DV8_DEPRECATION_WARNINGS' \
88	'-D_FILE_OFFSET_BITS=64' \
89	'-DNO_TCMALLOC' \
90	'-DDISABLE_NACL' \
91	'-DCHROMIUM_BUILD' \
92	'-DUSE_LIBJPEG_TURBO=1' \
93	'-DUSE_PROPRIETARY_CODECS' \
94	'-DENABLE_CONFIGURATION_POLICY' \
95	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
96	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
97	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
98	'-DUSE_OPENSSL=1' \
99	'-DENABLE_EGLIMAGE=1' \
100	'-DCLD_VERSION=1' \
101	'-DENABLE_PRINTING=1' \
102	'-DENABLE_MANAGED_USERS=1' \
103	'-DWEBKIT_CHILD_IMPLEMENTATION' \
104	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
105	'-DU_USING_ICU_NAMESPACE=0' \
106	'-DCHROME_PNG_WRITE_SUPPORT' \
107	'-DPNG_USER_CONFIG' \
108	'-DCHROME_PNG_READ_PACK_SUPPORT' \
109	'-DUSE_SYSTEM_LIBJPEG' \
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	$(gyp_shared_intermediate_dir)/webkit \
129	$(LOCAL_PATH) \
130	$(LOCAL_PATH)/skia/config \
131	$(LOCAL_PATH)/third_party/WebKit/Source \
132	$(LOCAL_PATH)/third_party/khronos \
133	$(LOCAL_PATH)/gpu \
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	$(LOCAL_PATH)/third_party/WebKit \
139	$(PWD)/external/icu4c/common \
140	$(PWD)/external/icu4c/i18n \
141	$(LOCAL_PATH)/third_party/npapi \
142	$(LOCAL_PATH)/third_party/npapi/bindings \
143	$(LOCAL_PATH)/third_party/libpng \
144	$(LOCAL_PATH)/third_party/zlib \
145	$(LOCAL_PATH)/third_party/libwebp \
146	$(LOCAL_PATH)/third_party/ots/include \
147	$(LOCAL_PATH)/third_party/qcms/src \
148	$(LOCAL_PATH)/third_party/iccjpeg \
149	$(PWD)/external/jpeg \
150	$(LOCAL_PATH)/v8/include \
151	$(PWD)/frameworks/wilhelm/include \
152	$(PWD)/bionic \
153	$(PWD)/external/stlport/stlport
154
155
156# Flags passed to only C++ (and not C) files.
157LOCAL_CPPFLAGS_Debug := \
158	-fno-rtti \
159	-fno-threadsafe-statics \
160	-fvisibility-inlines-hidden \
161	-Wsign-compare \
162	-Wno-error=c++0x-compat \
163	-Wno-non-virtual-dtor \
164	-Wno-sign-promo
165
166
167# Flags passed to both C and C++ files.
168MY_CFLAGS_Release := \
169	--param=ssp-buffer-size=4 \
170	-Werror \
171	-fno-exceptions \
172	-fno-strict-aliasing \
173	-Wall \
174	-Wno-unused-parameter \
175	-Wno-missing-field-initializers \
176	-fvisibility=hidden \
177	-pipe \
178	-fPIC \
179	-m32 \
180	-mmmx \
181	-march=pentium4 \
182	-msse2 \
183	-mfpmath=sse \
184	-fuse-ld=gold \
185	-ffunction-sections \
186	-funwind-tables \
187	-g \
188	-fno-short-enums \
189	-finline-limit=64 \
190	-Wa,--noexecstack \
191	-U_FORTIFY_SOURCE \
192	-Wno-extra \
193	-Wno-ignored-qualifiers \
194	-Wno-type-limits \
195	-fno-stack-protector \
196	-Os \
197	-fno-ident \
198	-fdata-sections \
199	-ffunction-sections \
200	-fomit-frame-pointer \
201	-fno-unwind-tables \
202	-fno-asynchronous-unwind-tables
203
204MY_DEFS_Release := \
205	'-DV8_DEPRECATION_WARNINGS' \
206	'-D_FILE_OFFSET_BITS=64' \
207	'-DNO_TCMALLOC' \
208	'-DDISABLE_NACL' \
209	'-DCHROMIUM_BUILD' \
210	'-DUSE_LIBJPEG_TURBO=1' \
211	'-DUSE_PROPRIETARY_CODECS' \
212	'-DENABLE_CONFIGURATION_POLICY' \
213	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
214	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
215	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
216	'-DUSE_OPENSSL=1' \
217	'-DENABLE_EGLIMAGE=1' \
218	'-DCLD_VERSION=1' \
219	'-DENABLE_PRINTING=1' \
220	'-DENABLE_MANAGED_USERS=1' \
221	'-DWEBKIT_CHILD_IMPLEMENTATION' \
222	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
223	'-DU_USING_ICU_NAMESPACE=0' \
224	'-DCHROME_PNG_WRITE_SUPPORT' \
225	'-DPNG_USER_CONFIG' \
226	'-DCHROME_PNG_READ_PACK_SUPPORT' \
227	'-DUSE_SYSTEM_LIBJPEG' \
228	'-D__STDC_CONSTANT_MACROS' \
229	'-D__STDC_FORMAT_MACROS' \
230	'-DANDROID' \
231	'-D__GNU_SOURCE=1' \
232	'-DUSE_STLPORT=1' \
233	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
234	'-DCHROME_BUILD_ID=""' \
235	'-DNDEBUG' \
236	'-DNVALGRIND' \
237	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
238	'-D_FORTIFY_SOURCE=2'
239
240
241# Include paths placed before CFLAGS/CPPFLAGS
242LOCAL_C_INCLUDES_Release := \
243	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
244	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
245	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
246	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
247	$(gyp_shared_intermediate_dir)/webkit \
248	$(LOCAL_PATH) \
249	$(LOCAL_PATH)/skia/config \
250	$(LOCAL_PATH)/third_party/WebKit/Source \
251	$(LOCAL_PATH)/third_party/khronos \
252	$(LOCAL_PATH)/gpu \
253	$(PWD)/external/skia/include \
254	$(PWD)/external/skia/include/core \
255	$(LOCAL_PATH)/third_party/skia/src/core \
256	$(LOCAL_PATH)/skia/ext \
257	$(LOCAL_PATH)/third_party/WebKit \
258	$(PWD)/external/icu4c/common \
259	$(PWD)/external/icu4c/i18n \
260	$(LOCAL_PATH)/third_party/npapi \
261	$(LOCAL_PATH)/third_party/npapi/bindings \
262	$(LOCAL_PATH)/third_party/libpng \
263	$(LOCAL_PATH)/third_party/zlib \
264	$(LOCAL_PATH)/third_party/libwebp \
265	$(LOCAL_PATH)/third_party/ots/include \
266	$(LOCAL_PATH)/third_party/qcms/src \
267	$(LOCAL_PATH)/third_party/iccjpeg \
268	$(PWD)/external/jpeg \
269	$(LOCAL_PATH)/v8/include \
270	$(PWD)/frameworks/wilhelm/include \
271	$(PWD)/bionic \
272	$(PWD)/external/stlport/stlport
273
274
275# Flags passed to only C++ (and not C) files.
276LOCAL_CPPFLAGS_Release := \
277	-fno-rtti \
278	-fno-threadsafe-statics \
279	-fvisibility-inlines-hidden \
280	-Wsign-compare \
281	-Wno-error=c++0x-compat \
282	-Wno-non-virtual-dtor \
283	-Wno-sign-promo
284
285
286LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
287LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
288LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
289### Rules for final target.
290
291LOCAL_LDFLAGS_Debug := \
292	-Wl,-z,now \
293	-Wl,-z,relro \
294	-Wl,-z,noexecstack \
295	-fPIC \
296	-m32 \
297	-fuse-ld=gold \
298	-nostdlib \
299	-Wl,--no-undefined \
300	-Wl,--exclude-libs=ALL \
301	-Wl,--fatal-warnings \
302	-Wl,--gc-sections \
303	-Wl,--warn-shared-textrel \
304	-Wl,-O1 \
305	-Wl,--as-needed
306
307
308LOCAL_LDFLAGS_Release := \
309	-Wl,-z,now \
310	-Wl,-z,relro \
311	-Wl,-z,noexecstack \
312	-fPIC \
313	-m32 \
314	-fuse-ld=gold \
315	-nostdlib \
316	-Wl,--no-undefined \
317	-Wl,--exclude-libs=ALL \
318	-Wl,-O1 \
319	-Wl,--as-needed \
320	-Wl,--gc-sections \
321	-Wl,--fatal-warnings \
322	-Wl,--warn-shared-textrel
323
324
325LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
326
327LOCAL_STATIC_LIBRARIES := \
328	ui_ui_gyp
329
330# Enable grouping to fix circular references
331LOCAL_GROUP_STATIC_LIBRARIES := true
332
333LOCAL_SHARED_LIBRARIES := \
334	libskia \
335	libstlport \
336	libdl
337
338# Add target alias to "gyp_all_modules" target.
339.PHONY: gyp_all_modules
340gyp_all_modules: webkit_child_webkit_child_gyp
341
342# Alias gyp target name.
343.PHONY: webkit_child
344webkit_child: webkit_child_webkit_child_gyp
345
346include $(BUILD_STATIC_LIBRARY)
347