• 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_base_ui_base_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,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \
17	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp \
18	$(call intermediates-dir-for,GYP,ui_resources_ui_resources_gyp,,,$(GYP_VAR_PREFIX))/ui_resources.stamp \
19	$(call intermediates-dir-for,GYP,ui_strings_ui_strings_gyp,,,$(GYP_VAR_PREFIX))/ui_strings.stamp \
20	$(call intermediates-dir-for,GYP,ui_base_ui_base_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/ui_base_jni_headers.stamp
21
22GYP_GENERATED_OUTPUTS :=
23
24# Make sure our deps and generated files are built first.
25LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
26
27LOCAL_CPP_EXTENSION := .cc
28LOCAL_GENERATED_SOURCES :=
29
30GYP_COPIED_SOURCE_ORIGIN_DIRS :=
31
32LOCAL_SRC_FILES := \
33	ui/base/accelerators/accelerator.cc \
34	ui/base/accelerators/accelerator_manager.cc \
35	ui/base/android/ui_base_jni_registrar.cc \
36	ui/base/android/view_android.cc \
37	ui/base/android/window_android.cc \
38	ui/base/base_window.cc \
39	ui/base/clipboard/clipboard.cc \
40	ui/base/clipboard/clipboard_android.cc \
41	ui/base/clipboard/clipboard_constants.cc \
42	ui/base/clipboard/custom_data_helper.cc \
43	ui/base/clipboard/scoped_clipboard_writer.cc \
44	ui/base/cursor/cursor_util.cc \
45	ui/base/device_form_factor_android.cc \
46	ui/base/dragdrop/file_info.cc \
47	ui/base/ime/candidate_window.cc \
48	ui/base/ime/composition_text.cc \
49	ui/base/ime/dummy_input_method_delegate.cc \
50	ui/base/ime/infolist_entry.cc \
51	ui/base/ime/input_method_base.cc \
52	ui/base/ime/input_method_initializer.cc \
53	ui/base/ime/mock_input_method.cc \
54	ui/base/ime/text_input_client.cc \
55	ui/base/ime/text_input_focus_manager.cc \
56	ui/base/l10n/formatter.cc \
57	ui/base/l10n/l10n_util.cc \
58	ui/base/l10n/l10n_util_android.cc \
59	ui/base/l10n/l10n_util_plurals.cc \
60	ui/base/l10n/l10n_util_posix.cc \
61	ui/base/l10n/time_format.cc \
62	ui/base/layout.cc \
63	ui/base/models/combobox_model.cc \
64	ui/base/models/list_selection_model.cc \
65	ui/base/models/menu_model.cc \
66	ui/base/models/simple_combobox_model.cc \
67	ui/base/models/simple_menu_model.cc \
68	ui/base/models/table_model.cc \
69	ui/base/models/tree_model.cc \
70	ui/base/page_transition_types.cc \
71	ui/base/resource/data_pack.cc \
72	ui/base/resource/resource_bundle.cc \
73	ui/base/resource/resource_bundle_android.cc \
74	ui/base/text/bytes_formatting.cc \
75	ui/base/touch/touch_device_android.cc \
76	ui/base/touch/touch_enabled.cc \
77	ui/base/ui_base_exports.cc \
78	ui/base/ui_base_paths.cc \
79	ui/base/ui_base_switches.cc \
80	ui/base/ui_base_switches_util.cc \
81	ui/base/webui/jstemplate_builder.cc \
82	ui/base/webui/web_ui_util.cc \
83	ui/base/window_open_disposition.cc
84
85
86# Flags passed to both C and C++ files.
87MY_CFLAGS_Debug := \
88	-fstack-protector \
89	--param=ssp-buffer-size=4 \
90	 \
91	-fno-strict-aliasing \
92	-Wall \
93	-Wno-unused-parameter \
94	-Wno-missing-field-initializers \
95	-fvisibility=hidden \
96	-pipe \
97	-fPIC \
98	-Wno-unused-local-typedefs \
99	-ffunction-sections \
100	-funwind-tables \
101	-g \
102	-fstack-protector \
103	-fno-short-enums \
104	-finline-limit=64 \
105	-Wa,--noexecstack \
106	-U_FORTIFY_SOURCE \
107	-Wno-extra \
108	-Wno-ignored-qualifiers \
109	-Wno-type-limits \
110	-Wno-unused-but-set-variable \
111	-Os \
112	-g \
113	-gdwarf-4 \
114	-fdata-sections \
115	-ffunction-sections \
116	-fomit-frame-pointer \
117	-funwind-tables
118
119MY_DEFS_Debug := \
120	'-DV8_DEPRECATION_WARNINGS' \
121	'-D_FILE_OFFSET_BITS=64' \
122	'-DNO_TCMALLOC' \
123	'-DDISABLE_NACL' \
124	'-DCHROMIUM_BUILD' \
125	'-DUSE_LIBJPEG_TURBO=1' \
126	'-DENABLE_WEBRTC=1' \
127	'-DUSE_PROPRIETARY_CODECS' \
128	'-DENABLE_BROWSER_CDMS' \
129	'-DENABLE_CONFIGURATION_POLICY' \
130	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
131	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
132	'-DENABLE_EGLIMAGE=1' \
133	'-DCLD_VERSION=1' \
134	'-DENABLE_PRINTING=1' \
135	'-DENABLE_MANAGED_USERS=1' \
136	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
137	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
138	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
139	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
140	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
141	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
142	'-DVIDEO_HOLE=1' \
143	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
144	'-DUI_BASE_IMPLEMENTATION' \
145	'-DPOSIX_AVOID_MMAP' \
146	'-DSK_ENABLE_INST_COUNT=0' \
147	'-DSK_SUPPORT_GPU=1' \
148	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
149	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
150	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
151	'-DGR_GL_IGNORE_ES3_MSAA=0' \
152	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
153	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
154	'-DSK_BUILD_FOR_ANDROID' \
155	'-DSK_USE_POSIX_THREADS' \
156	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
157	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
158	'-DU_USING_ICU_NAMESPACE=0' \
159	'-DU_ENABLE_DYLOAD=0' \
160	'-DUSE_OPENSSL=1' \
161	'-DUSE_OPENSSL_CERTS=1' \
162	'-D__STDC_CONSTANT_MACROS' \
163	'-D__STDC_FORMAT_MACROS' \
164	'-DANDROID' \
165	'-D__GNU_SOURCE=1' \
166	'-DUSE_STLPORT=1' \
167	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
168	'-DCHROME_BUILD_ID=""' \
169	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
170	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
171	'-D_DEBUG'
172
173
174# Include paths placed before CFLAGS/CPPFLAGS
175LOCAL_C_INCLUDES_Debug := \
176	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
177	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
178	$(gyp_shared_intermediate_dir) \
179	$(LOCAL_PATH) \
180	$(LOCAL_PATH)/skia/config \
181	$(LOCAL_PATH)/third_party/skia/src/core \
182	$(LOCAL_PATH)/third_party/skia/include/core \
183	$(LOCAL_PATH)/third_party/skia/include/effects \
184	$(LOCAL_PATH)/third_party/skia/include/pdf \
185	$(LOCAL_PATH)/third_party/skia/include/gpu \
186	$(LOCAL_PATH)/third_party/skia/include/lazy \
187	$(LOCAL_PATH)/third_party/skia/include/pathops \
188	$(LOCAL_PATH)/third_party/skia/include/pipe \
189	$(LOCAL_PATH)/third_party/skia/include/ports \
190	$(LOCAL_PATH)/third_party/skia/include/utils \
191	$(LOCAL_PATH)/skia/ext \
192	$(PWD)/external/icu/icu4c/source/common \
193	$(PWD)/external/icu/icu4c/source/i18n \
194	$(gyp_shared_intermediate_dir)/ui/resources \
195	$(gyp_shared_intermediate_dir)/ui \
196	$(PWD)/frameworks/wilhelm/include \
197	$(PWD)/bionic \
198	$(PWD)/external/stlport/stlport
199
200
201# Flags passed to only C++ (and not C) files.
202LOCAL_CPPFLAGS_Debug := \
203	-fno-exceptions \
204	-fno-rtti \
205	-fno-threadsafe-statics \
206	-fvisibility-inlines-hidden \
207	-Wsign-compare \
208	-Wno-uninitialized \
209	-std=gnu++11 \
210	-Wno-narrowing \
211	-Wno-literal-suffix \
212	-Wno-non-virtual-dtor \
213	-Wno-sign-promo
214
215
216# Flags passed to both C and C++ files.
217MY_CFLAGS_Release := \
218	-fstack-protector \
219	--param=ssp-buffer-size=4 \
220	 \
221	-fno-strict-aliasing \
222	-Wall \
223	-Wno-unused-parameter \
224	-Wno-missing-field-initializers \
225	-fvisibility=hidden \
226	-pipe \
227	-fPIC \
228	-Wno-unused-local-typedefs \
229	-ffunction-sections \
230	-funwind-tables \
231	-g \
232	-fstack-protector \
233	-fno-short-enums \
234	-finline-limit=64 \
235	-Wa,--noexecstack \
236	-U_FORTIFY_SOURCE \
237	-Wno-extra \
238	-Wno-ignored-qualifiers \
239	-Wno-type-limits \
240	-Wno-unused-but-set-variable \
241	-Os \
242	-fno-ident \
243	-fdata-sections \
244	-ffunction-sections \
245	-fomit-frame-pointer \
246	-funwind-tables
247
248MY_DEFS_Release := \
249	'-DV8_DEPRECATION_WARNINGS' \
250	'-D_FILE_OFFSET_BITS=64' \
251	'-DNO_TCMALLOC' \
252	'-DDISABLE_NACL' \
253	'-DCHROMIUM_BUILD' \
254	'-DUSE_LIBJPEG_TURBO=1' \
255	'-DENABLE_WEBRTC=1' \
256	'-DUSE_PROPRIETARY_CODECS' \
257	'-DENABLE_BROWSER_CDMS' \
258	'-DENABLE_CONFIGURATION_POLICY' \
259	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
260	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
261	'-DENABLE_EGLIMAGE=1' \
262	'-DCLD_VERSION=1' \
263	'-DENABLE_PRINTING=1' \
264	'-DENABLE_MANAGED_USERS=1' \
265	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
266	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
267	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
268	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
269	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
270	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
271	'-DVIDEO_HOLE=1' \
272	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
273	'-DUI_BASE_IMPLEMENTATION' \
274	'-DPOSIX_AVOID_MMAP' \
275	'-DSK_ENABLE_INST_COUNT=0' \
276	'-DSK_SUPPORT_GPU=1' \
277	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
278	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
279	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
280	'-DGR_GL_IGNORE_ES3_MSAA=0' \
281	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
282	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
283	'-DSK_BUILD_FOR_ANDROID' \
284	'-DSK_USE_POSIX_THREADS' \
285	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
286	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
287	'-DU_USING_ICU_NAMESPACE=0' \
288	'-DU_ENABLE_DYLOAD=0' \
289	'-DUSE_OPENSSL=1' \
290	'-DUSE_OPENSSL_CERTS=1' \
291	'-D__STDC_CONSTANT_MACROS' \
292	'-D__STDC_FORMAT_MACROS' \
293	'-DANDROID' \
294	'-D__GNU_SOURCE=1' \
295	'-DUSE_STLPORT=1' \
296	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
297	'-DCHROME_BUILD_ID=""' \
298	'-DNDEBUG' \
299	'-DNVALGRIND' \
300	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
301	'-D_FORTIFY_SOURCE=2'
302
303
304# Include paths placed before CFLAGS/CPPFLAGS
305LOCAL_C_INCLUDES_Release := \
306	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
307	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
308	$(gyp_shared_intermediate_dir) \
309	$(LOCAL_PATH) \
310	$(LOCAL_PATH)/skia/config \
311	$(LOCAL_PATH)/third_party/skia/src/core \
312	$(LOCAL_PATH)/third_party/skia/include/core \
313	$(LOCAL_PATH)/third_party/skia/include/effects \
314	$(LOCAL_PATH)/third_party/skia/include/pdf \
315	$(LOCAL_PATH)/third_party/skia/include/gpu \
316	$(LOCAL_PATH)/third_party/skia/include/lazy \
317	$(LOCAL_PATH)/third_party/skia/include/pathops \
318	$(LOCAL_PATH)/third_party/skia/include/pipe \
319	$(LOCAL_PATH)/third_party/skia/include/ports \
320	$(LOCAL_PATH)/third_party/skia/include/utils \
321	$(LOCAL_PATH)/skia/ext \
322	$(PWD)/external/icu/icu4c/source/common \
323	$(PWD)/external/icu/icu4c/source/i18n \
324	$(gyp_shared_intermediate_dir)/ui/resources \
325	$(gyp_shared_intermediate_dir)/ui \
326	$(PWD)/frameworks/wilhelm/include \
327	$(PWD)/bionic \
328	$(PWD)/external/stlport/stlport
329
330
331# Flags passed to only C++ (and not C) files.
332LOCAL_CPPFLAGS_Release := \
333	-fno-exceptions \
334	-fno-rtti \
335	-fno-threadsafe-statics \
336	-fvisibility-inlines-hidden \
337	-Wsign-compare \
338	-Wno-uninitialized \
339	-std=gnu++11 \
340	-Wno-narrowing \
341	-Wno-literal-suffix \
342	-Wno-non-virtual-dtor \
343	-Wno-sign-promo
344
345
346LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
347LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
348LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
349LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
350### Rules for final target.
351
352LOCAL_SHARED_LIBRARIES := \
353	libstlport \
354	libdl
355
356# Add target alias to "gyp_all_modules" target.
357.PHONY: gyp_all_modules
358gyp_all_modules: ui_base_ui_base_gyp
359
360# Alias gyp target name.
361.PHONY: ui_base
362ui_base: ui_base_ui_base_gyp
363
364include $(BUILD_STATIC_LIBRARY)
365