• 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_media_asm_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	$(gyp_shared_intermediate_dir)/yasm
15
16
17### Generated for rule "media_media_gyp_media_asm_target_assemble":
18# "{'inputs': ['$(gyp_shared_intermediate_dir)/yasm', '../third_party/x86inc/x86inc.asm', 'base/simd/convert_rgb_to_yuv_ssse3.inc', 'base/simd/convert_yuv_to_rgb_mmx.inc', 'base/simd/convert_yuva_to_argb_mmx.inc', 'base/simd/linear_scale_yuv_to_rgb_mmx.inc', 'base/simd/media_export.asm', 'base/simd/scale_yuv_to_rgb_mmx.inc'], 'extension': 'asm', 'process_outputs_as_sources': '1', 'outputs': ['$(gyp_shared_intermediate_dir)/media/%(INPUT_ROOT)s.o'], 'rule_name': 'assemble', 'rule_sources': ['base/simd/convert_rgb_to_yuv_ssse3.asm', 'base/simd/convert_yuv_to_rgb_mmx.asm', 'base/simd/convert_yuv_to_rgb_sse.asm', 'base/simd/convert_yuva_to_argb_mmx.asm', 'base/simd/empty_register_state_mmx.asm', 'base/simd/linear_scale_yuv_to_rgb_mmx.asm', 'base/simd/linear_scale_yuv_to_rgb_sse.asm', 'base/simd/scale_yuv_to_rgb_mmx.asm', 'base/simd/scale_yuv_to_rgb_sse.asm'], 'action': ['$(gyp_shared_intermediate_dir)/yasm', '-DCHROMIUM', '-I..', '-felf32', '-m', 'x86', '-DX86_32', '-DELF', '-o', '$(gyp_shared_intermediate_dir)/media/%(INPUT_ROOT)s.o', '$(RULE_SOURCES)'], 'message': 'Compile assembly $(RULE_SOURCES)'}":
19$(gyp_shared_intermediate_dir)/media/convert_rgb_to_yuv_ssse3.o: gyp_local_path := $(LOCAL_PATH)
20$(gyp_shared_intermediate_dir)/media/convert_rgb_to_yuv_ssse3.o: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
21$(gyp_shared_intermediate_dir)/media/convert_rgb_to_yuv_ssse3.o: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
22$(gyp_shared_intermediate_dir)/media/convert_rgb_to_yuv_ssse3.o: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
23$(gyp_shared_intermediate_dir)/media/convert_rgb_to_yuv_ssse3.o: $(LOCAL_PATH)/media/base/simd/convert_rgb_to_yuv_ssse3.asm $(gyp_shared_intermediate_dir)/yasm $(LOCAL_PATH)/third_party/x86inc/x86inc.asm $(LOCAL_PATH)/media/base/simd/convert_rgb_to_yuv_ssse3.inc $(LOCAL_PATH)/media/base/simd/convert_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/convert_yuva_to_argb_mmx.inc $(LOCAL_PATH)/media/base/simd/linear_scale_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/media_export.asm $(LOCAL_PATH)/media/base/simd/scale_yuv_to_rgb_mmx.inc $(GYP_TARGET_DEPENDENCIES)
24	mkdir -p $(gyp_shared_intermediate_dir)/media; cd $(gyp_local_path)/media; "$(gyp_shared_intermediate_dir)/yasm" -DCHROMIUM -I.. -felf32 -m x86 -DX86_32 -DELF -o "$(gyp_shared_intermediate_dir)/media/convert_rgb_to_yuv_ssse3.o" base/simd/convert_rgb_to_yuv_ssse3.asm
25
26.PHONY: media_media_asm_gyp_rule_trigger
27media_media_asm_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/convert_rgb_to_yuv_ssse3.o
28
29$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_mmx.o: gyp_local_path := $(LOCAL_PATH)
30$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_mmx.o: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
31$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_mmx.o: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
32$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_mmx.o: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
33$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_mmx.o: $(LOCAL_PATH)/media/base/simd/convert_yuv_to_rgb_mmx.asm $(gyp_shared_intermediate_dir)/yasm $(LOCAL_PATH)/third_party/x86inc/x86inc.asm $(LOCAL_PATH)/media/base/simd/convert_rgb_to_yuv_ssse3.inc $(LOCAL_PATH)/media/base/simd/convert_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/convert_yuva_to_argb_mmx.inc $(LOCAL_PATH)/media/base/simd/linear_scale_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/media_export.asm $(LOCAL_PATH)/media/base/simd/scale_yuv_to_rgb_mmx.inc $(GYP_TARGET_DEPENDENCIES)
34	mkdir -p $(gyp_shared_intermediate_dir)/media; cd $(gyp_local_path)/media; "$(gyp_shared_intermediate_dir)/yasm" -DCHROMIUM -I.. -felf32 -m x86 -DX86_32 -DELF -o "$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_mmx.o" base/simd/convert_yuv_to_rgb_mmx.asm
35
36.PHONY: media_media_asm_gyp_rule_trigger
37media_media_asm_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_mmx.o
38
39$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_sse.o: gyp_local_path := $(LOCAL_PATH)
40$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_sse.o: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
41$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_sse.o: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
42$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_sse.o: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
43$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_sse.o: $(LOCAL_PATH)/media/base/simd/convert_yuv_to_rgb_sse.asm $(gyp_shared_intermediate_dir)/yasm $(LOCAL_PATH)/third_party/x86inc/x86inc.asm $(LOCAL_PATH)/media/base/simd/convert_rgb_to_yuv_ssse3.inc $(LOCAL_PATH)/media/base/simd/convert_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/convert_yuva_to_argb_mmx.inc $(LOCAL_PATH)/media/base/simd/linear_scale_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/media_export.asm $(LOCAL_PATH)/media/base/simd/scale_yuv_to_rgb_mmx.inc $(GYP_TARGET_DEPENDENCIES)
44	mkdir -p $(gyp_shared_intermediate_dir)/media; cd $(gyp_local_path)/media; "$(gyp_shared_intermediate_dir)/yasm" -DCHROMIUM -I.. -felf32 -m x86 -DX86_32 -DELF -o "$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_sse.o" base/simd/convert_yuv_to_rgb_sse.asm
45
46.PHONY: media_media_asm_gyp_rule_trigger
47media_media_asm_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_sse.o
48
49$(gyp_shared_intermediate_dir)/media/convert_yuva_to_argb_mmx.o: gyp_local_path := $(LOCAL_PATH)
50$(gyp_shared_intermediate_dir)/media/convert_yuva_to_argb_mmx.o: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
51$(gyp_shared_intermediate_dir)/media/convert_yuva_to_argb_mmx.o: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
52$(gyp_shared_intermediate_dir)/media/convert_yuva_to_argb_mmx.o: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
53$(gyp_shared_intermediate_dir)/media/convert_yuva_to_argb_mmx.o: $(LOCAL_PATH)/media/base/simd/convert_yuva_to_argb_mmx.asm $(gyp_shared_intermediate_dir)/yasm $(LOCAL_PATH)/third_party/x86inc/x86inc.asm $(LOCAL_PATH)/media/base/simd/convert_rgb_to_yuv_ssse3.inc $(LOCAL_PATH)/media/base/simd/convert_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/convert_yuva_to_argb_mmx.inc $(LOCAL_PATH)/media/base/simd/linear_scale_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/media_export.asm $(LOCAL_PATH)/media/base/simd/scale_yuv_to_rgb_mmx.inc $(GYP_TARGET_DEPENDENCIES)
54	mkdir -p $(gyp_shared_intermediate_dir)/media; cd $(gyp_local_path)/media; "$(gyp_shared_intermediate_dir)/yasm" -DCHROMIUM -I.. -felf32 -m x86 -DX86_32 -DELF -o "$(gyp_shared_intermediate_dir)/media/convert_yuva_to_argb_mmx.o" base/simd/convert_yuva_to_argb_mmx.asm
55
56.PHONY: media_media_asm_gyp_rule_trigger
57media_media_asm_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/convert_yuva_to_argb_mmx.o
58
59$(gyp_shared_intermediate_dir)/media/empty_register_state_mmx.o: gyp_local_path := $(LOCAL_PATH)
60$(gyp_shared_intermediate_dir)/media/empty_register_state_mmx.o: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
61$(gyp_shared_intermediate_dir)/media/empty_register_state_mmx.o: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
62$(gyp_shared_intermediate_dir)/media/empty_register_state_mmx.o: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
63$(gyp_shared_intermediate_dir)/media/empty_register_state_mmx.o: $(LOCAL_PATH)/media/base/simd/empty_register_state_mmx.asm $(gyp_shared_intermediate_dir)/yasm $(LOCAL_PATH)/third_party/x86inc/x86inc.asm $(LOCAL_PATH)/media/base/simd/convert_rgb_to_yuv_ssse3.inc $(LOCAL_PATH)/media/base/simd/convert_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/convert_yuva_to_argb_mmx.inc $(LOCAL_PATH)/media/base/simd/linear_scale_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/media_export.asm $(LOCAL_PATH)/media/base/simd/scale_yuv_to_rgb_mmx.inc $(GYP_TARGET_DEPENDENCIES)
64	mkdir -p $(gyp_shared_intermediate_dir)/media; cd $(gyp_local_path)/media; "$(gyp_shared_intermediate_dir)/yasm" -DCHROMIUM -I.. -felf32 -m x86 -DX86_32 -DELF -o "$(gyp_shared_intermediate_dir)/media/empty_register_state_mmx.o" base/simd/empty_register_state_mmx.asm
65
66.PHONY: media_media_asm_gyp_rule_trigger
67media_media_asm_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/empty_register_state_mmx.o
68
69$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_mmx.o: gyp_local_path := $(LOCAL_PATH)
70$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_mmx.o: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
71$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_mmx.o: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
72$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_mmx.o: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
73$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_mmx.o: $(LOCAL_PATH)/media/base/simd/linear_scale_yuv_to_rgb_mmx.asm $(gyp_shared_intermediate_dir)/yasm $(LOCAL_PATH)/third_party/x86inc/x86inc.asm $(LOCAL_PATH)/media/base/simd/convert_rgb_to_yuv_ssse3.inc $(LOCAL_PATH)/media/base/simd/convert_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/convert_yuva_to_argb_mmx.inc $(LOCAL_PATH)/media/base/simd/linear_scale_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/media_export.asm $(LOCAL_PATH)/media/base/simd/scale_yuv_to_rgb_mmx.inc $(GYP_TARGET_DEPENDENCIES)
74	mkdir -p $(gyp_shared_intermediate_dir)/media; cd $(gyp_local_path)/media; "$(gyp_shared_intermediate_dir)/yasm" -DCHROMIUM -I.. -felf32 -m x86 -DX86_32 -DELF -o "$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_mmx.o" base/simd/linear_scale_yuv_to_rgb_mmx.asm
75
76.PHONY: media_media_asm_gyp_rule_trigger
77media_media_asm_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_mmx.o
78
79$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_sse.o: gyp_local_path := $(LOCAL_PATH)
80$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_sse.o: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
81$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_sse.o: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
82$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_sse.o: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
83$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_sse.o: $(LOCAL_PATH)/media/base/simd/linear_scale_yuv_to_rgb_sse.asm $(gyp_shared_intermediate_dir)/yasm $(LOCAL_PATH)/third_party/x86inc/x86inc.asm $(LOCAL_PATH)/media/base/simd/convert_rgb_to_yuv_ssse3.inc $(LOCAL_PATH)/media/base/simd/convert_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/convert_yuva_to_argb_mmx.inc $(LOCAL_PATH)/media/base/simd/linear_scale_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/media_export.asm $(LOCAL_PATH)/media/base/simd/scale_yuv_to_rgb_mmx.inc $(GYP_TARGET_DEPENDENCIES)
84	mkdir -p $(gyp_shared_intermediate_dir)/media; cd $(gyp_local_path)/media; "$(gyp_shared_intermediate_dir)/yasm" -DCHROMIUM -I.. -felf32 -m x86 -DX86_32 -DELF -o "$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_sse.o" base/simd/linear_scale_yuv_to_rgb_sse.asm
85
86.PHONY: media_media_asm_gyp_rule_trigger
87media_media_asm_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_sse.o
88
89$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_mmx.o: gyp_local_path := $(LOCAL_PATH)
90$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_mmx.o: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
91$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_mmx.o: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
92$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_mmx.o: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
93$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_mmx.o: $(LOCAL_PATH)/media/base/simd/scale_yuv_to_rgb_mmx.asm $(gyp_shared_intermediate_dir)/yasm $(LOCAL_PATH)/third_party/x86inc/x86inc.asm $(LOCAL_PATH)/media/base/simd/convert_rgb_to_yuv_ssse3.inc $(LOCAL_PATH)/media/base/simd/convert_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/convert_yuva_to_argb_mmx.inc $(LOCAL_PATH)/media/base/simd/linear_scale_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/media_export.asm $(LOCAL_PATH)/media/base/simd/scale_yuv_to_rgb_mmx.inc $(GYP_TARGET_DEPENDENCIES)
94	mkdir -p $(gyp_shared_intermediate_dir)/media; cd $(gyp_local_path)/media; "$(gyp_shared_intermediate_dir)/yasm" -DCHROMIUM -I.. -felf32 -m x86 -DX86_32 -DELF -o "$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_mmx.o" base/simd/scale_yuv_to_rgb_mmx.asm
95
96.PHONY: media_media_asm_gyp_rule_trigger
97media_media_asm_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_mmx.o
98
99$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_sse.o: gyp_local_path := $(LOCAL_PATH)
100$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_sse.o: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
101$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_sse.o: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
102$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_sse.o: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
103$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_sse.o: $(LOCAL_PATH)/media/base/simd/scale_yuv_to_rgb_sse.asm $(gyp_shared_intermediate_dir)/yasm $(LOCAL_PATH)/third_party/x86inc/x86inc.asm $(LOCAL_PATH)/media/base/simd/convert_rgb_to_yuv_ssse3.inc $(LOCAL_PATH)/media/base/simd/convert_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/convert_yuva_to_argb_mmx.inc $(LOCAL_PATH)/media/base/simd/linear_scale_yuv_to_rgb_mmx.inc $(LOCAL_PATH)/media/base/simd/media_export.asm $(LOCAL_PATH)/media/base/simd/scale_yuv_to_rgb_mmx.inc $(GYP_TARGET_DEPENDENCIES)
104	mkdir -p $(gyp_shared_intermediate_dir)/media; cd $(gyp_local_path)/media; "$(gyp_shared_intermediate_dir)/yasm" -DCHROMIUM -I.. -felf32 -m x86 -DX86_32 -DELF -o "$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_sse.o" base/simd/scale_yuv_to_rgb_sse.asm
105
106.PHONY: media_media_asm_gyp_rule_trigger
107media_media_asm_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_sse.o
108
109### Finished generating for all rules
110
111GYP_GENERATED_OUTPUTS := \
112	$(gyp_shared_intermediate_dir)/media/convert_rgb_to_yuv_ssse3.o \
113	$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_mmx.o \
114	$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_sse.o \
115	$(gyp_shared_intermediate_dir)/media/convert_yuva_to_argb_mmx.o \
116	$(gyp_shared_intermediate_dir)/media/empty_register_state_mmx.o \
117	$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_mmx.o \
118	$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_sse.o \
119	$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_mmx.o \
120	$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_sse.o
121
122# Make sure our deps and generated files are built first.
123LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
124
125LOCAL_GENERATED_SOURCES := \
126	$(gyp_shared_intermediate_dir)/media/convert_rgb_to_yuv_ssse3.o \
127	$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_mmx.o \
128	$(gyp_shared_intermediate_dir)/media/convert_yuv_to_rgb_sse.o \
129	$(gyp_shared_intermediate_dir)/media/convert_yuva_to_argb_mmx.o \
130	$(gyp_shared_intermediate_dir)/media/empty_register_state_mmx.o \
131	$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_mmx.o \
132	$(gyp_shared_intermediate_dir)/media/linear_scale_yuv_to_rgb_sse.o \
133	$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_mmx.o \
134	$(gyp_shared_intermediate_dir)/media/scale_yuv_to_rgb_sse.o \
135	media_media_asm_gyp_rule_trigger
136
137GYP_COPIED_SOURCE_ORIGIN_DIRS :=
138
139LOCAL_SRC_FILES :=
140
141
142# Flags passed to both C and C++ files.
143MY_CFLAGS_Debug := \
144	--param=ssp-buffer-size=4 \
145	-Werror \
146	-fno-exceptions \
147	-fno-strict-aliasing \
148	-Wall \
149	-Wno-unused-parameter \
150	-Wno-missing-field-initializers \
151	-fvisibility=hidden \
152	-pipe \
153	-fPIC \
154	-m32 \
155	-mmmx \
156	-march=pentium4 \
157	-msse2 \
158	-mfpmath=sse \
159	-fuse-ld=gold \
160	-ffunction-sections \
161	-funwind-tables \
162	-g \
163	-fno-short-enums \
164	-finline-limit=64 \
165	-Wa,--noexecstack \
166	-U_FORTIFY_SOURCE \
167	-Wno-extra \
168	-Wno-ignored-qualifiers \
169	-Wno-type-limits \
170	-fno-stack-protector \
171	-Os \
172	-g \
173	-fomit-frame-pointer \
174	-fdata-sections \
175	-ffunction-sections
176
177MY_DEFS_Debug := \
178	'-DV8_DEPRECATION_WARNINGS' \
179	'-D_FILE_OFFSET_BITS=64' \
180	'-DNO_TCMALLOC' \
181	'-DDISABLE_NACL' \
182	'-DCHROMIUM_BUILD' \
183	'-DUSE_LIBJPEG_TURBO=1' \
184	'-DUSE_PROPRIETARY_CODECS' \
185	'-DENABLE_CONFIGURATION_POLICY' \
186	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
187	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
188	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
189	'-DUSE_OPENSSL=1' \
190	'-DENABLE_EGLIMAGE=1' \
191	'-DCLD_VERSION=1' \
192	'-DENABLE_PRINTING=1' \
193	'-DENABLE_MANAGED_USERS=1' \
194	'-D__STDC_CONSTANT_MACROS' \
195	'-D__STDC_FORMAT_MACROS' \
196	'-DANDROID' \
197	'-D__GNU_SOURCE=1' \
198	'-DUSE_STLPORT=1' \
199	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
200	'-DCHROME_BUILD_ID=""' \
201	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
202	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
203	'-D_DEBUG'
204
205
206# Include paths placed before CFLAGS/CPPFLAGS
207LOCAL_C_INCLUDES_Debug := \
208	$(PWD)/frameworks/wilhelm/include \
209	$(PWD)/bionic \
210	$(PWD)/external/stlport/stlport
211
212
213# Flags passed to only C++ (and not C) files.
214LOCAL_CPPFLAGS_Debug := \
215	-fno-rtti \
216	-fno-threadsafe-statics \
217	-fvisibility-inlines-hidden \
218	-Wsign-compare \
219	-Wno-error=c++0x-compat \
220	-Wno-non-virtual-dtor \
221	-Wno-sign-promo
222
223
224# Flags passed to both C and C++ files.
225MY_CFLAGS_Release := \
226	--param=ssp-buffer-size=4 \
227	-Werror \
228	-fno-exceptions \
229	-fno-strict-aliasing \
230	-Wall \
231	-Wno-unused-parameter \
232	-Wno-missing-field-initializers \
233	-fvisibility=hidden \
234	-pipe \
235	-fPIC \
236	-m32 \
237	-mmmx \
238	-march=pentium4 \
239	-msse2 \
240	-mfpmath=sse \
241	-fuse-ld=gold \
242	-ffunction-sections \
243	-funwind-tables \
244	-g \
245	-fno-short-enums \
246	-finline-limit=64 \
247	-Wa,--noexecstack \
248	-U_FORTIFY_SOURCE \
249	-Wno-extra \
250	-Wno-ignored-qualifiers \
251	-Wno-type-limits \
252	-fno-stack-protector \
253	-Os \
254	-fno-ident \
255	-fdata-sections \
256	-ffunction-sections \
257	-fomit-frame-pointer \
258	-fno-unwind-tables \
259	-fno-asynchronous-unwind-tables
260
261MY_DEFS_Release := \
262	'-DV8_DEPRECATION_WARNINGS' \
263	'-D_FILE_OFFSET_BITS=64' \
264	'-DNO_TCMALLOC' \
265	'-DDISABLE_NACL' \
266	'-DCHROMIUM_BUILD' \
267	'-DUSE_LIBJPEG_TURBO=1' \
268	'-DUSE_PROPRIETARY_CODECS' \
269	'-DENABLE_CONFIGURATION_POLICY' \
270	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
271	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
272	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
273	'-DUSE_OPENSSL=1' \
274	'-DENABLE_EGLIMAGE=1' \
275	'-DCLD_VERSION=1' \
276	'-DENABLE_PRINTING=1' \
277	'-DENABLE_MANAGED_USERS=1' \
278	'-D__STDC_CONSTANT_MACROS' \
279	'-D__STDC_FORMAT_MACROS' \
280	'-DANDROID' \
281	'-D__GNU_SOURCE=1' \
282	'-DUSE_STLPORT=1' \
283	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
284	'-DCHROME_BUILD_ID=""' \
285	'-DNDEBUG' \
286	'-DNVALGRIND' \
287	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
288	'-D_FORTIFY_SOURCE=2'
289
290
291# Include paths placed before CFLAGS/CPPFLAGS
292LOCAL_C_INCLUDES_Release := \
293	$(PWD)/frameworks/wilhelm/include \
294	$(PWD)/bionic \
295	$(PWD)/external/stlport/stlport
296
297
298# Flags passed to only C++ (and not C) files.
299LOCAL_CPPFLAGS_Release := \
300	-fno-rtti \
301	-fno-threadsafe-statics \
302	-fvisibility-inlines-hidden \
303	-Wsign-compare \
304	-Wno-error=c++0x-compat \
305	-Wno-non-virtual-dtor \
306	-Wno-sign-promo
307
308
309LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
310LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
311LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
312### Rules for final target.
313
314LOCAL_LDFLAGS_Debug := \
315	-Wl,-z,now \
316	-Wl,-z,relro \
317	-Wl,-z,noexecstack \
318	-fPIC \
319	-m32 \
320	-fuse-ld=gold \
321	-nostdlib \
322	-Wl,--no-undefined \
323	-Wl,--exclude-libs=ALL \
324	-Wl,--fatal-warnings \
325	-Wl,--gc-sections \
326	-Wl,--warn-shared-textrel \
327	-Wl,-O1 \
328	-Wl,--as-needed
329
330
331LOCAL_LDFLAGS_Release := \
332	-Wl,-z,now \
333	-Wl,-z,relro \
334	-Wl,-z,noexecstack \
335	-fPIC \
336	-m32 \
337	-fuse-ld=gold \
338	-nostdlib \
339	-Wl,--no-undefined \
340	-Wl,--exclude-libs=ALL \
341	-Wl,-O1 \
342	-Wl,--as-needed \
343	-Wl,--gc-sections \
344	-Wl,--fatal-warnings \
345	-Wl,--warn-shared-textrel
346
347
348LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
349
350LOCAL_STATIC_LIBRARIES :=
351
352# Enable grouping to fix circular references
353LOCAL_GROUP_STATIC_LIBRARIES := true
354
355LOCAL_SHARED_LIBRARIES := \
356	libstlport \
357	libdl
358
359# Add target alias to "gyp_all_modules" target.
360.PHONY: gyp_all_modules
361gyp_all_modules: media_media_asm_gyp
362
363# Alias gyp target name.
364.PHONY: media_asm
365media_asm: media_media_asm_gyp
366
367include $(BUILD_STATIC_LIBRARY)
368