• 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 := ui_gfx_gfx_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_icu_icui18n_gyp)/icui18n.stamp \
16	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \
17	$(call intermediates-dir-for,GYP,third_party_libjpeg_libjpeg_gyp)/libjpeg.stamp \
18	$(call intermediates-dir-for,GYP,ui_gfx_gfx_jni_headers_gyp)/gfx_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/gfx/android/device_display_info.cc \
32	ui/gfx/android/gfx_jni_registrar.cc \
33	ui/gfx/android/java_bitmap.cc \
34	ui/gfx/android/shared_device_display_info.cc \
35	ui/gfx/android/view_configuration.cc \
36	ui/gfx/animation/animation.cc \
37	ui/gfx/animation/animation_container.cc \
38	ui/gfx/animation/linear_animation.cc \
39	ui/gfx/animation/multi_animation.cc \
40	ui/gfx/animation/slide_animation.cc \
41	ui/gfx/animation/tween.cc \
42	ui/gfx/blit.cc \
43	ui/gfx/box_f.cc \
44	ui/gfx/canvas.cc \
45	ui/gfx/canvas_android.cc \
46	ui/gfx/codec/jpeg_codec.cc \
47	ui/gfx/codec/png_codec.cc \
48	ui/gfx/color_analysis.cc \
49	ui/gfx/color_profile.cc \
50	ui/gfx/color_utils.cc \
51	ui/gfx/display.cc \
52	ui/gfx/favicon_size.cc \
53	ui/gfx/font.cc \
54	ui/gfx/font_list.cc \
55	ui/gfx/font_render_params_android.cc \
56	ui/gfx/gfx_paths.cc \
57	ui/gfx/gpu_memory_buffer.cc \
58	ui/gfx/image/canvas_image_source.cc \
59	ui/gfx/image/image.cc \
60	ui/gfx/image/image_family.cc \
61	ui/gfx/image/image_png_rep.cc \
62	ui/gfx/image/image_skia.cc \
63	ui/gfx/image/image_skia_operations.cc \
64	ui/gfx/image/image_skia_rep.cc \
65	ui/gfx/image/image_util.cc \
66	ui/gfx/insets.cc \
67	ui/gfx/insets_f.cc \
68	ui/gfx/interpolated_transform.cc \
69	ui/gfx/matrix3_f.cc \
70	ui/gfx/platform_font_android.cc \
71	ui/gfx/point.cc \
72	ui/gfx/point3_f.cc \
73	ui/gfx/point_conversions.cc \
74	ui/gfx/point_f.cc \
75	ui/gfx/quad_f.cc \
76	ui/gfx/range/range.cc \
77	ui/gfx/rect.cc \
78	ui/gfx/rect_conversions.cc \
79	ui/gfx/rect_f.cc \
80	ui/gfx/screen.cc \
81	ui/gfx/screen_android.cc \
82	ui/gfx/scrollbar_size.cc \
83	ui/gfx/sequential_id_generator.cc \
84	ui/gfx/shadow_value.cc \
85	ui/gfx/size.cc \
86	ui/gfx/size_conversions.cc \
87	ui/gfx/size_f.cc \
88	ui/gfx/skbitmap_operations.cc \
89	ui/gfx/skia_util.cc \
90	ui/gfx/switches.cc \
91	ui/gfx/sys_color_change_listener.cc \
92	ui/gfx/text_elider.cc \
93	ui/gfx/text_utils.cc \
94	ui/gfx/text_utils_android.cc \
95	ui/gfx/transform.cc \
96	ui/gfx/transform_util.cc \
97	ui/gfx/ui_gfx_exports.cc \
98	ui/gfx/utf16_indexing.cc \
99	ui/gfx/vector2d.cc \
100	ui/gfx/vector2d_conversions.cc \
101	ui/gfx/vector2d_f.cc \
102	ui/gfx/vector3d_f.cc
103
104
105# Flags passed to both C and C++ files.
106MY_CFLAGS_Debug := \
107	--param=ssp-buffer-size=4 \
108	-Werror \
109	-fno-exceptions \
110	-fno-strict-aliasing \
111	-Wall \
112	-Wno-unused-parameter \
113	-Wno-missing-field-initializers \
114	-fvisibility=hidden \
115	-pipe \
116	-fPIC \
117	-m32 \
118	-mmmx \
119	-march=pentium4 \
120	-msse2 \
121	-mfpmath=sse \
122	-fuse-ld=gold \
123	-ffunction-sections \
124	-funwind-tables \
125	-g \
126	-fno-short-enums \
127	-finline-limit=64 \
128	-Wa,--noexecstack \
129	-U_FORTIFY_SOURCE \
130	-Wno-extra \
131	-Wno-ignored-qualifiers \
132	-Wno-type-limits \
133	-fno-stack-protector \
134	-Os \
135	-g \
136	-fomit-frame-pointer \
137	-fdata-sections \
138	-ffunction-sections
139
140MY_DEFS_Debug := \
141	'-DV8_DEPRECATION_WARNINGS' \
142	'-D_FILE_OFFSET_BITS=64' \
143	'-DNO_TCMALLOC' \
144	'-DDISABLE_NACL' \
145	'-DCHROMIUM_BUILD' \
146	'-DUSE_LIBJPEG_TURBO=1' \
147	'-DUSE_PROPRIETARY_CODECS' \
148	'-DENABLE_CONFIGURATION_POLICY' \
149	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
150	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
151	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
152	'-DUSE_OPENSSL=1' \
153	'-DENABLE_EGLIMAGE=1' \
154	'-DCLD_VERSION=1' \
155	'-DENABLE_PRINTING=1' \
156	'-DENABLE_MANAGED_USERS=1' \
157	'-DGFX_IMPLEMENTATION' \
158	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
159	'-DU_USING_ICU_NAMESPACE=0' \
160	'-DCHROME_PNG_WRITE_SUPPORT' \
161	'-DPNG_USER_CONFIG' \
162	'-DCHROME_PNG_READ_PACK_SUPPORT' \
163	'-DUSE_SYSTEM_LIBJPEG' \
164	'-D__STDC_CONSTANT_MACROS' \
165	'-D__STDC_FORMAT_MACROS' \
166	'-DANDROID' \
167	'-D__GNU_SOURCE=1' \
168	'-DUSE_STLPORT=1' \
169	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
170	'-DCHROME_BUILD_ID=""' \
171	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
172	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
173	'-D_DEBUG'
174
175
176# Include paths placed before CFLAGS/CPPFLAGS
177LOCAL_C_INCLUDES_Debug := \
178	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
179	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
180	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
181	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
182	$(LOCAL_PATH) \
183	$(LOCAL_PATH)/skia/config \
184	$(PWD)/external/skia/include \
185	$(PWD)/external/skia/include/core \
186	$(LOCAL_PATH)/third_party/skia/src/core \
187	$(LOCAL_PATH)/skia/ext \
188	$(PWD)/external/icu4c/common \
189	$(PWD)/external/icu4c/i18n \
190	$(LOCAL_PATH)/third_party/libpng \
191	$(LOCAL_PATH)/third_party/zlib \
192	$(PWD)/external/jpeg \
193	$(gyp_shared_intermediate_dir)/ui/gfx \
194	$(PWD)/frameworks/wilhelm/include \
195	$(PWD)/bionic \
196	$(PWD)/external/stlport/stlport
197
198
199# Flags passed to only C++ (and not C) files.
200LOCAL_CPPFLAGS_Debug := \
201	-fno-rtti \
202	-fno-threadsafe-statics \
203	-fvisibility-inlines-hidden \
204	-Wsign-compare \
205	-Wno-error=c++0x-compat \
206	-Wno-non-virtual-dtor \
207	-Wno-sign-promo
208
209
210# Flags passed to both C and C++ files.
211MY_CFLAGS_Release := \
212	--param=ssp-buffer-size=4 \
213	-Werror \
214	-fno-exceptions \
215	-fno-strict-aliasing \
216	-Wall \
217	-Wno-unused-parameter \
218	-Wno-missing-field-initializers \
219	-fvisibility=hidden \
220	-pipe \
221	-fPIC \
222	-m32 \
223	-mmmx \
224	-march=pentium4 \
225	-msse2 \
226	-mfpmath=sse \
227	-fuse-ld=gold \
228	-ffunction-sections \
229	-funwind-tables \
230	-g \
231	-fno-short-enums \
232	-finline-limit=64 \
233	-Wa,--noexecstack \
234	-U_FORTIFY_SOURCE \
235	-Wno-extra \
236	-Wno-ignored-qualifiers \
237	-Wno-type-limits \
238	-fno-stack-protector \
239	-Os \
240	-fno-ident \
241	-fdata-sections \
242	-ffunction-sections \
243	-fomit-frame-pointer \
244	-fno-unwind-tables \
245	-fno-asynchronous-unwind-tables
246
247MY_DEFS_Release := \
248	'-DV8_DEPRECATION_WARNINGS' \
249	'-D_FILE_OFFSET_BITS=64' \
250	'-DNO_TCMALLOC' \
251	'-DDISABLE_NACL' \
252	'-DCHROMIUM_BUILD' \
253	'-DUSE_LIBJPEG_TURBO=1' \
254	'-DUSE_PROPRIETARY_CODECS' \
255	'-DENABLE_CONFIGURATION_POLICY' \
256	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
257	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
258	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
259	'-DUSE_OPENSSL=1' \
260	'-DENABLE_EGLIMAGE=1' \
261	'-DCLD_VERSION=1' \
262	'-DENABLE_PRINTING=1' \
263	'-DENABLE_MANAGED_USERS=1' \
264	'-DGFX_IMPLEMENTATION' \
265	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
266	'-DU_USING_ICU_NAMESPACE=0' \
267	'-DCHROME_PNG_WRITE_SUPPORT' \
268	'-DPNG_USER_CONFIG' \
269	'-DCHROME_PNG_READ_PACK_SUPPORT' \
270	'-DUSE_SYSTEM_LIBJPEG' \
271	'-D__STDC_CONSTANT_MACROS' \
272	'-D__STDC_FORMAT_MACROS' \
273	'-DANDROID' \
274	'-D__GNU_SOURCE=1' \
275	'-DUSE_STLPORT=1' \
276	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
277	'-DCHROME_BUILD_ID=""' \
278	'-DNDEBUG' \
279	'-DNVALGRIND' \
280	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
281	'-D_FORTIFY_SOURCE=2'
282
283
284# Include paths placed before CFLAGS/CPPFLAGS
285LOCAL_C_INCLUDES_Release := \
286	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
287	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
288	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
289	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
290	$(LOCAL_PATH) \
291	$(LOCAL_PATH)/skia/config \
292	$(PWD)/external/skia/include \
293	$(PWD)/external/skia/include/core \
294	$(LOCAL_PATH)/third_party/skia/src/core \
295	$(LOCAL_PATH)/skia/ext \
296	$(PWD)/external/icu4c/common \
297	$(PWD)/external/icu4c/i18n \
298	$(LOCAL_PATH)/third_party/libpng \
299	$(LOCAL_PATH)/third_party/zlib \
300	$(PWD)/external/jpeg \
301	$(gyp_shared_intermediate_dir)/ui/gfx \
302	$(PWD)/frameworks/wilhelm/include \
303	$(PWD)/bionic \
304	$(PWD)/external/stlport/stlport
305
306
307# Flags passed to only C++ (and not C) files.
308LOCAL_CPPFLAGS_Release := \
309	-fno-rtti \
310	-fno-threadsafe-statics \
311	-fvisibility-inlines-hidden \
312	-Wsign-compare \
313	-Wno-error=c++0x-compat \
314	-Wno-non-virtual-dtor \
315	-Wno-sign-promo
316
317
318LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
319LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
320LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
321### Rules for final target.
322
323LOCAL_LDFLAGS_Debug := \
324	-Wl,-z,now \
325	-Wl,-z,relro \
326	-Wl,-z,noexecstack \
327	-fPIC \
328	-m32 \
329	-fuse-ld=gold \
330	-nostdlib \
331	-Wl,--no-undefined \
332	-Wl,--exclude-libs=ALL \
333	-Wl,--fatal-warnings \
334	-Wl,--gc-sections \
335	-Wl,--warn-shared-textrel \
336	-Wl,-O1 \
337	-Wl,--as-needed
338
339
340LOCAL_LDFLAGS_Release := \
341	-Wl,-z,now \
342	-Wl,-z,relro \
343	-Wl,-z,noexecstack \
344	-fPIC \
345	-m32 \
346	-fuse-ld=gold \
347	-nostdlib \
348	-Wl,--no-undefined \
349	-Wl,--exclude-libs=ALL \
350	-Wl,-O1 \
351	-Wl,--as-needed \
352	-Wl,--gc-sections \
353	-Wl,--fatal-warnings \
354	-Wl,--warn-shared-textrel
355
356
357LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
358
359LOCAL_STATIC_LIBRARIES :=
360
361# Enable grouping to fix circular references
362LOCAL_GROUP_STATIC_LIBRARIES := true
363
364LOCAL_SHARED_LIBRARIES := \
365	libskia \
366	libstlport \
367	libdl
368
369# Add target alias to "gyp_all_modules" target.
370.PHONY: gyp_all_modules
371gyp_all_modules: ui_gfx_gfx_gyp
372
373# Alias gyp target name.
374.PHONY: gfx
375gfx: ui_gfx_gfx_gyp
376
377include $(BUILD_STATIC_LIBRARY)
378