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