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