• 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 := media_shared_memory_support_sse_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
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_CPP_EXTENSION := .cc
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	media/base/simd/vector_math_sse.cc
27
28
29# Flags passed to both C and C++ files.
30MY_CFLAGS_Debug := \
31	--param=ssp-buffer-size=4 \
32	-Werror \
33	-fno-exceptions \
34	-fno-strict-aliasing \
35	-Wall \
36	-Wno-unused-parameter \
37	-Wno-missing-field-initializers \
38	-fvisibility=hidden \
39	-pipe \
40	-fPIC \
41	-msse \
42	-m32 \
43	-mmmx \
44	-march=pentium4 \
45	-msse2 \
46	-mfpmath=sse \
47	-fuse-ld=gold \
48	-ffunction-sections \
49	-funwind-tables \
50	-g \
51	-fno-short-enums \
52	-finline-limit=64 \
53	-Wa,--noexecstack \
54	-U_FORTIFY_SOURCE \
55	-Wno-extra \
56	-Wno-ignored-qualifiers \
57	-Wno-type-limits \
58	-fno-stack-protector \
59	-Os \
60	-g \
61	-fomit-frame-pointer \
62	-fdata-sections \
63	-ffunction-sections
64
65MY_DEFS_Debug := \
66	'-DV8_DEPRECATION_WARNINGS' \
67	'-D_FILE_OFFSET_BITS=64' \
68	'-DNO_TCMALLOC' \
69	'-DDISABLE_NACL' \
70	'-DCHROMIUM_BUILD' \
71	'-DUSE_LIBJPEG_TURBO=1' \
72	'-DUSE_PROPRIETARY_CODECS' \
73	'-DENABLE_CONFIGURATION_POLICY' \
74	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
75	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
76	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
77	'-DUSE_OPENSSL=1' \
78	'-DENABLE_EGLIMAGE=1' \
79	'-DCLD_VERSION=1' \
80	'-DENABLE_PRINTING=1' \
81	'-DENABLE_MANAGED_USERS=1' \
82	'-DMEDIA_IMPLEMENTATION' \
83	'-D__STDC_CONSTANT_MACROS' \
84	'-D__STDC_FORMAT_MACROS' \
85	'-DANDROID' \
86	'-D__GNU_SOURCE=1' \
87	'-DUSE_STLPORT=1' \
88	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
89	'-DCHROME_BUILD_ID=""' \
90	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
91	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
92	'-D_DEBUG'
93
94
95# Include paths placed before CFLAGS/CPPFLAGS
96LOCAL_C_INCLUDES_Debug := \
97	$(LOCAL_PATH) \
98	$(PWD)/frameworks/wilhelm/include \
99	$(PWD)/bionic \
100	$(PWD)/external/stlport/stlport
101
102
103# Flags passed to only C++ (and not C) files.
104LOCAL_CPPFLAGS_Debug := \
105	-fno-rtti \
106	-fno-threadsafe-statics \
107	-fvisibility-inlines-hidden \
108	-Wsign-compare \
109	-Wno-error=c++0x-compat \
110	-Wno-non-virtual-dtor \
111	-Wno-sign-promo
112
113
114# Flags passed to both C and C++ files.
115MY_CFLAGS_Release := \
116	--param=ssp-buffer-size=4 \
117	-Werror \
118	-fno-exceptions \
119	-fno-strict-aliasing \
120	-Wall \
121	-Wno-unused-parameter \
122	-Wno-missing-field-initializers \
123	-fvisibility=hidden \
124	-pipe \
125	-fPIC \
126	-msse \
127	-m32 \
128	-mmmx \
129	-march=pentium4 \
130	-msse2 \
131	-mfpmath=sse \
132	-fuse-ld=gold \
133	-ffunction-sections \
134	-funwind-tables \
135	-g \
136	-fno-short-enums \
137	-finline-limit=64 \
138	-Wa,--noexecstack \
139	-U_FORTIFY_SOURCE \
140	-Wno-extra \
141	-Wno-ignored-qualifiers \
142	-Wno-type-limits \
143	-fno-stack-protector \
144	-Os \
145	-fno-ident \
146	-fdata-sections \
147	-ffunction-sections \
148	-fomit-frame-pointer \
149	-fno-unwind-tables \
150	-fno-asynchronous-unwind-tables
151
152MY_DEFS_Release := \
153	'-DV8_DEPRECATION_WARNINGS' \
154	'-D_FILE_OFFSET_BITS=64' \
155	'-DNO_TCMALLOC' \
156	'-DDISABLE_NACL' \
157	'-DCHROMIUM_BUILD' \
158	'-DUSE_LIBJPEG_TURBO=1' \
159	'-DUSE_PROPRIETARY_CODECS' \
160	'-DENABLE_CONFIGURATION_POLICY' \
161	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
162	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
163	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
164	'-DUSE_OPENSSL=1' \
165	'-DENABLE_EGLIMAGE=1' \
166	'-DCLD_VERSION=1' \
167	'-DENABLE_PRINTING=1' \
168	'-DENABLE_MANAGED_USERS=1' \
169	'-DMEDIA_IMPLEMENTATION' \
170	'-D__STDC_CONSTANT_MACROS' \
171	'-D__STDC_FORMAT_MACROS' \
172	'-DANDROID' \
173	'-D__GNU_SOURCE=1' \
174	'-DUSE_STLPORT=1' \
175	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
176	'-DCHROME_BUILD_ID=""' \
177	'-DNDEBUG' \
178	'-DNVALGRIND' \
179	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
180	'-D_FORTIFY_SOURCE=2'
181
182
183# Include paths placed before CFLAGS/CPPFLAGS
184LOCAL_C_INCLUDES_Release := \
185	$(LOCAL_PATH) \
186	$(PWD)/frameworks/wilhelm/include \
187	$(PWD)/bionic \
188	$(PWD)/external/stlport/stlport
189
190
191# Flags passed to only C++ (and not C) files.
192LOCAL_CPPFLAGS_Release := \
193	-fno-rtti \
194	-fno-threadsafe-statics \
195	-fvisibility-inlines-hidden \
196	-Wsign-compare \
197	-Wno-error=c++0x-compat \
198	-Wno-non-virtual-dtor \
199	-Wno-sign-promo
200
201
202LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
203LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
204LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
205### Rules for final target.
206
207LOCAL_LDFLAGS_Debug := \
208	-Wl,-z,now \
209	-Wl,-z,relro \
210	-Wl,-z,noexecstack \
211	-fPIC \
212	-m32 \
213	-fuse-ld=gold \
214	-nostdlib \
215	-Wl,--no-undefined \
216	-Wl,--exclude-libs=ALL \
217	-Wl,--fatal-warnings \
218	-Wl,--gc-sections \
219	-Wl,--warn-shared-textrel \
220	-Wl,-O1 \
221	-Wl,--as-needed
222
223
224LOCAL_LDFLAGS_Release := \
225	-Wl,-z,now \
226	-Wl,-z,relro \
227	-Wl,-z,noexecstack \
228	-fPIC \
229	-m32 \
230	-fuse-ld=gold \
231	-nostdlib \
232	-Wl,--no-undefined \
233	-Wl,--exclude-libs=ALL \
234	-Wl,-O1 \
235	-Wl,--as-needed \
236	-Wl,--gc-sections \
237	-Wl,--fatal-warnings \
238	-Wl,--warn-shared-textrel
239
240
241LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
242
243LOCAL_STATIC_LIBRARIES :=
244
245# Enable grouping to fix circular references
246LOCAL_GROUP_STATIC_LIBRARIES := true
247
248LOCAL_SHARED_LIBRARIES := \
249	libstlport \
250	libdl
251
252# Add target alias to "gyp_all_modules" target.
253.PHONY: gyp_all_modules
254gyp_all_modules: media_shared_memory_support_sse_gyp
255
256# Alias gyp target name.
257.PHONY: shared_memory_support_sse
258shared_memory_support_sse: media_shared_memory_support_sse_gyp
259
260include $(BUILD_STATIC_LIBRARY)
261