1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_yasm_genperf_libs_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_IS_HOST_MODULE := true
9LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_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	$(call intermediates-dir-for,GYP,third_party_yasm_config_sources_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/config_sources.stamp
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/yasm/source/patched-yasm/libyasm/phash.c \
28	third_party/yasm/source/patched-yasm/libyasm/xmalloc.c \
29	third_party/yasm/source/patched-yasm/libyasm/xstrdup.c
30
31
32# Flags passed to both C and C++ files.
33MY_CFLAGS_Debug := \
34	-fstack-protector \
35	--param=ssp-buffer-size=4 \
36	-pthread \
37	-fno-strict-aliasing \
38	-Wno-unused-parameter \
39	-Wno-missing-field-initializers \
40	-fvisibility=hidden \
41	-pipe \
42	-fPIC \
43	-std=gnu99 \
44	-ansi \
45	-pedantic \
46	-Wno-format \
47	-Wheader-hygiene \
48	-Wno-char-subscripts \
49	-Wno-unneeded-internal-declaration \
50	-Wno-covered-switch-default \
51	-Wstring-conversion \
52	-Wno-c++11-narrowing \
53	-Wno-deprecated-register \
54	-Wno-unused-local-typedef \
55	-Os \
56	-g \
57	-gdwarf-4 \
58	-fdata-sections \
59	-ffunction-sections \
60	-fomit-frame-pointer \
61	-funwind-tables
62
63MY_DEFS_Debug := \
64	'-DV8_DEPRECATION_WARNINGS' \
65	'-D_FILE_OFFSET_BITS=64' \
66	'-DNO_TCMALLOC' \
67	'-DDISABLE_NACL' \
68	'-DCHROMIUM_BUILD' \
69	'-DUSE_LIBJPEG_TURBO=1' \
70	'-DENABLE_WEBRTC=1' \
71	'-DUSE_PROPRIETARY_CODECS' \
72	'-DENABLE_BROWSER_CDMS' \
73	'-DENABLE_CONFIGURATION_POLICY' \
74	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
75	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
76	'-DENABLE_EGLIMAGE=1' \
77	'-DCLD_VERSION=1' \
78	'-DENABLE_PRINTING=1' \
79	'-DENABLE_MANAGED_USERS=1' \
80	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
81	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
82	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
83	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
84	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
85	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
86	'-DVIDEO_HOLE=1' \
87	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
88	'-DHAVE_CONFIG_H' \
89	'-DUSE_OPENSSL=1' \
90	'-DUSE_OPENSSL_CERTS=1' \
91	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
92	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
93	'-D_DEBUG'
94
95
96# Include paths placed before CFLAGS/CPPFLAGS
97LOCAL_C_INCLUDES_Debug := \
98	$(gyp_shared_intermediate_dir) \
99	$(LOCAL_PATH)/third_party/yasm/source/config/android \
100	$(LOCAL_PATH)/third_party/yasm/source/patched-yasm
101
102
103# Flags passed to only C++ (and not C) files.
104LOCAL_CPPFLAGS_Debug := \
105	-fno-exceptions \
106	-fno-rtti \
107	-fno-threadsafe-statics \
108	-fvisibility-inlines-hidden \
109	-Wno-deprecated \
110	-std=gnu++11
111
112
113# Flags passed to both C and C++ files.
114MY_CFLAGS_Release := \
115	-fstack-protector \
116	--param=ssp-buffer-size=4 \
117	-pthread \
118	-fno-strict-aliasing \
119	-Wno-unused-parameter \
120	-Wno-missing-field-initializers \
121	-fvisibility=hidden \
122	-pipe \
123	-fPIC \
124	-std=gnu99 \
125	-ansi \
126	-pedantic \
127	-Wno-format \
128	-Wheader-hygiene \
129	-Wno-char-subscripts \
130	-Wno-unneeded-internal-declaration \
131	-Wno-covered-switch-default \
132	-Wstring-conversion \
133	-Wno-c++11-narrowing \
134	-Wno-deprecated-register \
135	-Wno-unused-local-typedef \
136	-Os \
137	-fno-ident \
138	-fdata-sections \
139	-ffunction-sections \
140	-fomit-frame-pointer \
141	-funwind-tables
142
143MY_DEFS_Release := \
144	'-DV8_DEPRECATION_WARNINGS' \
145	'-D_FILE_OFFSET_BITS=64' \
146	'-DNO_TCMALLOC' \
147	'-DDISABLE_NACL' \
148	'-DCHROMIUM_BUILD' \
149	'-DUSE_LIBJPEG_TURBO=1' \
150	'-DENABLE_WEBRTC=1' \
151	'-DUSE_PROPRIETARY_CODECS' \
152	'-DENABLE_BROWSER_CDMS' \
153	'-DENABLE_CONFIGURATION_POLICY' \
154	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
155	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
156	'-DENABLE_EGLIMAGE=1' \
157	'-DCLD_VERSION=1' \
158	'-DENABLE_PRINTING=1' \
159	'-DENABLE_MANAGED_USERS=1' \
160	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
161	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
162	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
163	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
164	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
165	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
166	'-DVIDEO_HOLE=1' \
167	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
168	'-DHAVE_CONFIG_H' \
169	'-DUSE_OPENSSL=1' \
170	'-DUSE_OPENSSL_CERTS=1' \
171	'-DNDEBUG' \
172	'-DNVALGRIND' \
173	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
174
175
176# Include paths placed before CFLAGS/CPPFLAGS
177LOCAL_C_INCLUDES_Release := \
178	$(gyp_shared_intermediate_dir) \
179	$(LOCAL_PATH)/third_party/yasm/source/config/android \
180	$(LOCAL_PATH)/third_party/yasm/source/patched-yasm
181
182
183# Flags passed to only C++ (and not C) files.
184LOCAL_CPPFLAGS_Release := \
185	-fno-exceptions \
186	-fno-rtti \
187	-fno-threadsafe-statics \
188	-fvisibility-inlines-hidden \
189	-Wno-deprecated \
190	-std=gnu++11
191
192
193LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
194# Undefine ANDROID for host modules
195LOCAL_CFLAGS += -UANDROID
196LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
197LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
198LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
199### Rules for final target.
200### Set directly by aosp_build_settings.
201LOCAL_CLANG := true
202
203# Add target alias to "gyp_all_modules" target.
204.PHONY: gyp_all_modules
205gyp_all_modules: third_party_yasm_genperf_libs_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
206
207# Alias gyp target name.
208.PHONY: genperf_libs
209genperf_libs: third_party_yasm_genperf_libs_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
210
211include $(BUILD_HOST_STATIC_LIBRARY)
212