cdm_common.target.linux-arm.mk revision bee9932bab44713b74b422b4b759b49f5a222977
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := components_cdm_common_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
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	components/cdm/common/cdm_message_generator.cc
28
29
30# Flags passed to both C and C++ files.
31MY_CFLAGS_Debug := \
32	-fstack-protector \
33	--param=ssp-buffer-size=4 \
34	-Werror \
35	-fno-exceptions \
36	-fno-strict-aliasing \
37	-Wall \
38	-Wno-unused-parameter \
39	-Wno-missing-field-initializers \
40	-fvisibility=hidden \
41	-pipe \
42	-fPIC \
43	-Wno-unused-local-typedefs \
44	-fno-tree-sra \
45	-fno-partial-inlining \
46	-fno-early-inlining \
47	-fno-tree-copy-prop \
48	-fno-tree-loop-optimize \
49	-fno-move-loop-invariants \
50	-fno-caller-saves \
51	-Wno-psabi \
52	-ffunction-sections \
53	-funwind-tables \
54	-g \
55	-fstack-protector \
56	-fno-short-enums \
57	-finline-limit=64 \
58	-Wa,--noexecstack \
59	-U_FORTIFY_SOURCE \
60	-Wno-extra \
61	-Wno-ignored-qualifiers \
62	-Wno-type-limits \
63	-Wno-unused-but-set-variable \
64	-Os \
65	-g \
66	-fdata-sections \
67	-ffunction-sections \
68	-fomit-frame-pointer \
69	-funwind-tables
70
71MY_DEFS_Debug := \
72	'-DV8_DEPRECATION_WARNINGS' \
73	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
74	'-D_FILE_OFFSET_BITS=64' \
75	'-DNO_TCMALLOC' \
76	'-DDISABLE_NACL' \
77	'-DCHROMIUM_BUILD' \
78	'-DUSE_LIBJPEG_TURBO=1' \
79	'-DENABLE_WEBRTC=1' \
80	'-DUSE_PROPRIETARY_CODECS' \
81	'-DENABLE_BROWSER_CDMS' \
82	'-DENABLE_CONFIGURATION_POLICY' \
83	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
84	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
85	'-DENABLE_EGLIMAGE=1' \
86	'-DCLD_VERSION=1' \
87	'-DENABLE_PRINTING=1' \
88	'-DENABLE_MANAGED_USERS=1' \
89	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
90	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
91	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
92	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
93	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
94	'-DVIDEO_HOLE=1' \
95	'-DMOJO_USE_SYSTEM_IMPL' \
96	'-DUSE_OPENSSL=1' \
97	'-DUSE_OPENSSL_CERTS=1' \
98	'-D__STDC_CONSTANT_MACROS' \
99	'-D__STDC_FORMAT_MACROS' \
100	'-DANDROID' \
101	'-D__GNU_SOURCE=1' \
102	'-DUSE_STLPORT=1' \
103	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
104	'-DCHROME_BUILD_ID=""' \
105	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
106	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
107	'-D_DEBUG'
108
109
110# Include paths placed before CFLAGS/CPPFLAGS
111LOCAL_C_INCLUDES_Debug := \
112	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
113	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
114	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
115	$(gyp_shared_intermediate_dir) \
116	$(LOCAL_PATH)/third_party/khronos \
117	$(LOCAL_PATH)/gpu \
118	$(LOCAL_PATH) \
119	$(LOCAL_PATH)/skia/config \
120	$(LOCAL_PATH)/third_party/WebKit/Source \
121	$(LOCAL_PATH)/third_party/WebKit \
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-abi \
134	-Wno-non-virtual-dtor \
135	-Wno-sign-promo
136
137
138# Flags passed to both C and C++ files.
139MY_CFLAGS_Release := \
140	-fstack-protector \
141	--param=ssp-buffer-size=4 \
142	-Werror \
143	-fno-exceptions \
144	-fno-strict-aliasing \
145	-Wall \
146	-Wno-unused-parameter \
147	-Wno-missing-field-initializers \
148	-fvisibility=hidden \
149	-pipe \
150	-fPIC \
151	-Wno-unused-local-typedefs \
152	-fno-tree-sra \
153	-fno-partial-inlining \
154	-fno-early-inlining \
155	-fno-tree-copy-prop \
156	-fno-tree-loop-optimize \
157	-fno-move-loop-invariants \
158	-fno-caller-saves \
159	-Wno-psabi \
160	-ffunction-sections \
161	-funwind-tables \
162	-g \
163	-fstack-protector \
164	-fno-short-enums \
165	-finline-limit=64 \
166	-Wa,--noexecstack \
167	-U_FORTIFY_SOURCE \
168	-Wno-extra \
169	-Wno-ignored-qualifiers \
170	-Wno-type-limits \
171	-Wno-unused-but-set-variable \
172	-Os \
173	-fno-ident \
174	-fdata-sections \
175	-ffunction-sections \
176	-fomit-frame-pointer \
177	-funwind-tables
178
179MY_DEFS_Release := \
180	'-DV8_DEPRECATION_WARNINGS' \
181	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
182	'-D_FILE_OFFSET_BITS=64' \
183	'-DNO_TCMALLOC' \
184	'-DDISABLE_NACL' \
185	'-DCHROMIUM_BUILD' \
186	'-DUSE_LIBJPEG_TURBO=1' \
187	'-DENABLE_WEBRTC=1' \
188	'-DUSE_PROPRIETARY_CODECS' \
189	'-DENABLE_BROWSER_CDMS' \
190	'-DENABLE_CONFIGURATION_POLICY' \
191	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
192	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
193	'-DENABLE_EGLIMAGE=1' \
194	'-DCLD_VERSION=1' \
195	'-DENABLE_PRINTING=1' \
196	'-DENABLE_MANAGED_USERS=1' \
197	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
198	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
199	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
200	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
201	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
202	'-DVIDEO_HOLE=1' \
203	'-DMOJO_USE_SYSTEM_IMPL' \
204	'-DUSE_OPENSSL=1' \
205	'-DUSE_OPENSSL_CERTS=1' \
206	'-D__STDC_CONSTANT_MACROS' \
207	'-D__STDC_FORMAT_MACROS' \
208	'-DANDROID' \
209	'-D__GNU_SOURCE=1' \
210	'-DUSE_STLPORT=1' \
211	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
212	'-DCHROME_BUILD_ID=""' \
213	'-DNDEBUG' \
214	'-DNVALGRIND' \
215	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
216	'-D_FORTIFY_SOURCE=2'
217
218
219# Include paths placed before CFLAGS/CPPFLAGS
220LOCAL_C_INCLUDES_Release := \
221	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
222	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
223	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
224	$(gyp_shared_intermediate_dir) \
225	$(LOCAL_PATH)/third_party/khronos \
226	$(LOCAL_PATH)/gpu \
227	$(LOCAL_PATH) \
228	$(LOCAL_PATH)/skia/config \
229	$(LOCAL_PATH)/third_party/WebKit/Source \
230	$(LOCAL_PATH)/third_party/WebKit \
231	$(PWD)/frameworks/wilhelm/include \
232	$(PWD)/bionic \
233	$(PWD)/external/stlport/stlport
234
235
236# Flags passed to only C++ (and not C) files.
237LOCAL_CPPFLAGS_Release := \
238	-fno-rtti \
239	-fno-threadsafe-statics \
240	-fvisibility-inlines-hidden \
241	-Wsign-compare \
242	-Wno-abi \
243	-Wno-non-virtual-dtor \
244	-Wno-sign-promo
245
246
247LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
248LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
249LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
250LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
251### Rules for final target.
252
253LOCAL_LDFLAGS_Debug := \
254	-Wl,-z,now \
255	-Wl,-z,relro \
256	-Wl,--fatal-warnings \
257	-Wl,-z,noexecstack \
258	-fPIC \
259	-Wl,-z,relro \
260	-Wl,-z,now \
261	-fuse-ld=gold \
262	-nostdlib \
263	-Wl,--no-undefined \
264	-Wl,--exclude-libs=ALL \
265	-Wl,--icf=safe \
266	-Wl,--warn-shared-textrel \
267	-Wl,-O1 \
268	-Wl,--as-needed
269
270
271LOCAL_LDFLAGS_Release := \
272	-Wl,-z,now \
273	-Wl,-z,relro \
274	-Wl,--fatal-warnings \
275	-Wl,-z,noexecstack \
276	-fPIC \
277	-Wl,-z,relro \
278	-Wl,-z,now \
279	-fuse-ld=gold \
280	-nostdlib \
281	-Wl,--no-undefined \
282	-Wl,--exclude-libs=ALL \
283	-Wl,--icf=safe \
284	-Wl,-O1 \
285	-Wl,--as-needed \
286	-Wl,--gc-sections \
287	-Wl,--warn-shared-textrel
288
289
290LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
291
292LOCAL_STATIC_LIBRARIES :=
293
294# Enable grouping to fix circular references
295LOCAL_GROUP_STATIC_LIBRARIES := true
296
297LOCAL_SHARED_LIBRARIES := \
298	libstlport \
299	libdl
300
301# Add target alias to "gyp_all_modules" target.
302.PHONY: gyp_all_modules
303gyp_all_modules: components_cdm_common_gyp
304
305# Alias gyp target name.
306.PHONY: cdm_common
307cdm_common: components_cdm_common_gyp
308
309include $(BUILD_STATIC_LIBRARY)
310