• 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 := content_content_app_both_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES := \
15	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \
16	$(call intermediates-dir-for,GYP,content_content_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/content_jni_headers.stamp \
17	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
18	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
19	$(call intermediates-dir-for,STATIC_LIBRARIES,mojo_mojo_service_provider_bindings_gyp,,,$(GYP_VAR_PREFIX))/mojo_mojo_service_provider_bindings_gyp.a
20
21GYP_GENERATED_OUTPUTS :=
22
23# Make sure our deps and generated files are built first.
24LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
25
26LOCAL_CPP_EXTENSION := .cc
27LOCAL_GENERATED_SOURCES :=
28
29GYP_COPIED_SOURCE_ORIGIN_DIRS :=
30
31LOCAL_SRC_FILES := \
32	content/app/android/app_jni_registrar.cc \
33	content/app/android/child_process_service.cc \
34	content/app/android/content_main.cc \
35	content/app/android/library_loader_hooks.cc \
36	content/app/content_main_runner.cc \
37	content/app/mojo/mojo_init.cc \
38	content/public/app/content_main_delegate.cc
39
40
41# Flags passed to both C and C++ files.
42MY_CFLAGS_Debug := \
43	--param=ssp-buffer-size=4 \
44	-Werror \
45	-fno-exceptions \
46	-fno-strict-aliasing \
47	-Wall \
48	-Wno-unused-parameter \
49	-Wno-missing-field-initializers \
50	-fvisibility=hidden \
51	-pipe \
52	-fPIC \
53	-Wno-unused-local-typedefs \
54	-ffunction-sections \
55	-funwind-tables \
56	-g \
57	-fno-short-enums \
58	-finline-limit=64 \
59	-Wa,--noexecstack \
60	-U_FORTIFY_SOURCE \
61	-Wno-extra \
62	-Wno-ignored-qualifiers \
63	-Wno-type-limits \
64	-Wno-unused-but-set-variable \
65	-Os \
66	-g \
67	-fdata-sections \
68	-ffunction-sections \
69	-funwind-tables
70
71MY_DEFS_Debug := \
72	'-DCONTENT_IMPLEMENTATION' \
73	'-DV8_DEPRECATION_WARNINGS' \
74	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
75	'-D_FILE_OFFSET_BITS=64' \
76	'-DNO_TCMALLOC' \
77	'-DDISABLE_NACL' \
78	'-DCHROMIUM_BUILD' \
79	'-DUSE_LIBJPEG_TURBO=1' \
80	'-DENABLE_WEBRTC=1' \
81	'-DUSE_PROPRIETARY_CODECS' \
82	'-DENABLE_BROWSER_CDMS' \
83	'-DENABLE_CONFIGURATION_POLICY' \
84	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
85	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
86	'-DENABLE_EGLIMAGE=1' \
87	'-DCLD_VERSION=1' \
88	'-DENABLE_PRINTING=1' \
89	'-DENABLE_MANAGED_USERS=1' \
90	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
91	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
92	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
93	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
94	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
95	'-DVIDEO_HOLE=1' \
96	'-DMOJO_USE_SYSTEM_IMPL' \
97	'-DPOSIX_AVOID_MMAP' \
98	'-DU_USING_ICU_NAMESPACE=0' \
99	'-DSK_ENABLE_INST_COUNT=0' \
100	'-DSK_SUPPORT_GPU=1' \
101	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
102	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
103	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
104	'-DGR_GL_IGNORE_ES3_MSAA=0' \
105	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
106	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
107	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
108	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
109	'-DSK_SUPPORT_LEGACY_N32_NAME' \
110	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
111	'-DSK_IGNORE_ETC1_SUPPORT' \
112	'-DSK_IGNORE_GPU_DITHER' \
113	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
114	'-DSK_BUILD_FOR_ANDROID' \
115	'-DSK_USE_POSIX_THREADS' \
116	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
117	'-DUSE_OPENSSL=1' \
118	'-DUSE_OPENSSL_CERTS=1' \
119	'-D__STDC_CONSTANT_MACROS' \
120	'-D__STDC_FORMAT_MACROS' \
121	'-DANDROID' \
122	'-D__GNU_SOURCE=1' \
123	'-DUSE_STLPORT=1' \
124	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
125	'-DCHROME_BUILD_ID=""' \
126	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
127	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
128	'-D_DEBUG'
129
130
131# Include paths placed before CFLAGS/CPPFLAGS
132LOCAL_C_INCLUDES_Debug := \
133	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
134	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
135	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
136	$(gyp_shared_intermediate_dir) \
137	$(LOCAL_PATH) \
138	$(LOCAL_PATH)/third_party/khronos \
139	$(LOCAL_PATH)/gpu \
140	$(LOCAL_PATH)/skia/config \
141	$(LOCAL_PATH)/third_party/WebKit/Source \
142	$(LOCAL_PATH)/third_party/WebKit \
143	$(PWD)/external/icu/icu4c/source/common \
144	$(PWD)/external/icu/icu4c/source/i18n \
145	$(gyp_shared_intermediate_dir)/content \
146	$(LOCAL_PATH)/third_party/skia/src/core \
147	$(LOCAL_PATH)/third_party/skia/include/core \
148	$(LOCAL_PATH)/third_party/skia/include/effects \
149	$(LOCAL_PATH)/third_party/skia/include/pdf \
150	$(LOCAL_PATH)/third_party/skia/include/gpu \
151	$(LOCAL_PATH)/third_party/skia/include/lazy \
152	$(LOCAL_PATH)/third_party/skia/include/pathops \
153	$(LOCAL_PATH)/third_party/skia/include/pipe \
154	$(LOCAL_PATH)/third_party/skia/include/ports \
155	$(LOCAL_PATH)/third_party/skia/include/utils \
156	$(LOCAL_PATH)/skia/ext \
157	$(PWD)/frameworks/wilhelm/include \
158	$(PWD)/bionic \
159	$(PWD)/external/stlport/stlport
160
161
162# Flags passed to only C++ (and not C) files.
163LOCAL_CPPFLAGS_Debug := \
164	-fno-rtti \
165	-fno-threadsafe-statics \
166	-fvisibility-inlines-hidden \
167	-Wsign-compare \
168	-Wno-non-virtual-dtor \
169	-Wno-sign-promo
170
171
172LOCAL_FDO_SUPPORT_Debug := false
173
174# Flags passed to both C and C++ files.
175MY_CFLAGS_Release := \
176	--param=ssp-buffer-size=4 \
177	-Werror \
178	-fno-exceptions \
179	-fno-strict-aliasing \
180	-Wall \
181	-Wno-unused-parameter \
182	-Wno-missing-field-initializers \
183	-fvisibility=hidden \
184	-pipe \
185	-fPIC \
186	-Wno-unused-local-typedefs \
187	-ffunction-sections \
188	-funwind-tables \
189	-g \
190	-fno-short-enums \
191	-finline-limit=64 \
192	-Wa,--noexecstack \
193	-U_FORTIFY_SOURCE \
194	-Wno-extra \
195	-Wno-ignored-qualifiers \
196	-Wno-type-limits \
197	-Wno-unused-but-set-variable \
198	-Os \
199	-fno-ident \
200	-fdata-sections \
201	-ffunction-sections \
202	-funwind-tables
203
204MY_DEFS_Release := \
205	'-DCONTENT_IMPLEMENTATION' \
206	'-DV8_DEPRECATION_WARNINGS' \
207	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
208	'-D_FILE_OFFSET_BITS=64' \
209	'-DNO_TCMALLOC' \
210	'-DDISABLE_NACL' \
211	'-DCHROMIUM_BUILD' \
212	'-DUSE_LIBJPEG_TURBO=1' \
213	'-DENABLE_WEBRTC=1' \
214	'-DUSE_PROPRIETARY_CODECS' \
215	'-DENABLE_BROWSER_CDMS' \
216	'-DENABLE_CONFIGURATION_POLICY' \
217	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
218	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
219	'-DENABLE_EGLIMAGE=1' \
220	'-DCLD_VERSION=1' \
221	'-DENABLE_PRINTING=1' \
222	'-DENABLE_MANAGED_USERS=1' \
223	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
224	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
225	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
226	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
227	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
228	'-DVIDEO_HOLE=1' \
229	'-DMOJO_USE_SYSTEM_IMPL' \
230	'-DPOSIX_AVOID_MMAP' \
231	'-DU_USING_ICU_NAMESPACE=0' \
232	'-DSK_ENABLE_INST_COUNT=0' \
233	'-DSK_SUPPORT_GPU=1' \
234	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
235	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
236	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
237	'-DGR_GL_IGNORE_ES3_MSAA=0' \
238	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
239	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
240	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
241	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
242	'-DSK_SUPPORT_LEGACY_N32_NAME' \
243	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
244	'-DSK_IGNORE_ETC1_SUPPORT' \
245	'-DSK_IGNORE_GPU_DITHER' \
246	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
247	'-DSK_BUILD_FOR_ANDROID' \
248	'-DSK_USE_POSIX_THREADS' \
249	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
250	'-DUSE_OPENSSL=1' \
251	'-DUSE_OPENSSL_CERTS=1' \
252	'-D__STDC_CONSTANT_MACROS' \
253	'-D__STDC_FORMAT_MACROS' \
254	'-DANDROID' \
255	'-D__GNU_SOURCE=1' \
256	'-DUSE_STLPORT=1' \
257	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
258	'-DCHROME_BUILD_ID=""' \
259	'-DNDEBUG' \
260	'-DNVALGRIND' \
261	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
262	'-D_FORTIFY_SOURCE=2'
263
264
265# Include paths placed before CFLAGS/CPPFLAGS
266LOCAL_C_INCLUDES_Release := \
267	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
268	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
269	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
270	$(gyp_shared_intermediate_dir) \
271	$(LOCAL_PATH) \
272	$(LOCAL_PATH)/third_party/khronos \
273	$(LOCAL_PATH)/gpu \
274	$(LOCAL_PATH)/skia/config \
275	$(LOCAL_PATH)/third_party/WebKit/Source \
276	$(LOCAL_PATH)/third_party/WebKit \
277	$(PWD)/external/icu/icu4c/source/common \
278	$(PWD)/external/icu/icu4c/source/i18n \
279	$(gyp_shared_intermediate_dir)/content \
280	$(LOCAL_PATH)/third_party/skia/src/core \
281	$(LOCAL_PATH)/third_party/skia/include/core \
282	$(LOCAL_PATH)/third_party/skia/include/effects \
283	$(LOCAL_PATH)/third_party/skia/include/pdf \
284	$(LOCAL_PATH)/third_party/skia/include/gpu \
285	$(LOCAL_PATH)/third_party/skia/include/lazy \
286	$(LOCAL_PATH)/third_party/skia/include/pathops \
287	$(LOCAL_PATH)/third_party/skia/include/pipe \
288	$(LOCAL_PATH)/third_party/skia/include/ports \
289	$(LOCAL_PATH)/third_party/skia/include/utils \
290	$(LOCAL_PATH)/skia/ext \
291	$(PWD)/frameworks/wilhelm/include \
292	$(PWD)/bionic \
293	$(PWD)/external/stlport/stlport
294
295
296# Flags passed to only C++ (and not C) files.
297LOCAL_CPPFLAGS_Release := \
298	-fno-rtti \
299	-fno-threadsafe-statics \
300	-fvisibility-inlines-hidden \
301	-Wsign-compare \
302	-Wno-non-virtual-dtor \
303	-Wno-sign-promo
304
305
306LOCAL_FDO_SUPPORT_Release := false
307
308LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
309LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
310LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
311LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
312LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
313### Rules for final target.
314
315LOCAL_LDFLAGS_Debug := \
316	-Wl,-z,now \
317	-Wl,-z,relro \
318	-Wl,--fatal-warnings \
319	-Wl,-z,noexecstack \
320	-fPIC \
321	-nostdlib \
322	-Wl,--no-undefined \
323	-Wl,--exclude-libs=ALL \
324	-Wl,--warn-shared-textrel \
325	-Wl,-O1 \
326	-Wl,--as-needed
327
328
329LOCAL_LDFLAGS_Release := \
330	-Wl,-z,now \
331	-Wl,-z,relro \
332	-Wl,--fatal-warnings \
333	-Wl,-z,noexecstack \
334	-fPIC \
335	-nostdlib \
336	-Wl,--no-undefined \
337	-Wl,--exclude-libs=ALL \
338	-Wl,-O1 \
339	-Wl,--as-needed \
340	-Wl,--gc-sections \
341	-Wl,--warn-shared-textrel
342
343
344LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
345
346LOCAL_STATIC_LIBRARIES := \
347	cpufeatures \
348	ui_base_ui_base_gyp \
349	skia_skia_library_gyp \
350	mojo_mojo_service_provider_bindings_gyp
351
352# Enable grouping to fix circular references
353LOCAL_GROUP_STATIC_LIBRARIES := true
354
355LOCAL_SHARED_LIBRARIES := \
356	libstlport \
357	libdl
358
359# Add target alias to "gyp_all_modules" target.
360.PHONY: gyp_all_modules
361gyp_all_modules: content_content_app_both_gyp
362
363# Alias gyp target name.
364.PHONY: content_app_both
365content_app_both: content_content_app_both_gyp
366
367include $(BUILD_STATIC_LIBRARY)
368