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