cityhash.target.darwin-mips.mk revision f2477e01787aa58f445919b809d89e252beef54f
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_smhasher_cityhash_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_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25	third_party/smhasher/src/City.cpp
26
27
28# Flags passed to both C and C++ files.
29MY_CFLAGS_Debug := \
30	-fstack-protector \
31	--param=ssp-buffer-size=4 \
32	 \
33	-fno-exceptions \
34	-fno-strict-aliasing \
35	-Wno-unused-parameter \
36	-Wno-missing-field-initializers \
37	-fvisibility=hidden \
38	-pipe \
39	-fPIC \
40	-Wno-format \
41	-EL \
42	-mhard-float \
43	-ffunction-sections \
44	-funwind-tables \
45	-g \
46	-fstack-protector \
47	-fno-short-enums \
48	-finline-limit=64 \
49	-Wa,--noexecstack \
50	-U_FORTIFY_SOURCE \
51	-Wno-extra \
52	-Wno-ignored-qualifiers \
53	-Wno-type-limits \
54	-Wno-address \
55	-Wno-format-security \
56	-Wno-return-type \
57	-Wno-sequence-point \
58	-Os \
59	-g \
60	-fomit-frame-pointer \
61	-fdata-sections \
62	-ffunction-sections
63
64MY_DEFS_Debug := \
65	'-DANGLE_DX11' \
66	'-D_FILE_OFFSET_BITS=64' \
67	'-DNO_TCMALLOC' \
68	'-DDISABLE_NACL' \
69	'-DCHROMIUM_BUILD' \
70	'-DUSE_LIBJPEG_TURBO=1' \
71	'-DUSE_PROPRIETARY_CODECS' \
72	'-DENABLE_CONFIGURATION_POLICY' \
73	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
74	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
75	'-DUSE_OPENSSL=1' \
76	'-DENABLE_EGLIMAGE=1' \
77	'-DCLD_VERSION=1' \
78	'-DENABLE_MANAGED_USERS=1' \
79	'-DANDROID' \
80	'-D__GNU_SOURCE=1' \
81	'-DUSE_STLPORT=1' \
82	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
83	'-DCHROME_BUILD_ID=""' \
84	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
85	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
86	'-D_DEBUG'
87
88
89# Include paths placed before CFLAGS/CPPFLAGS
90LOCAL_C_INCLUDES_Debug := \
91	$(PWD)/frameworks/wilhelm/include \
92	$(PWD)/bionic \
93	$(PWD)/external/stlport/stlport
94
95
96# Flags passed to only C++ (and not C) files.
97LOCAL_CPPFLAGS_Debug := \
98	-fno-rtti \
99	-fno-threadsafe-statics \
100	-fvisibility-inlines-hidden \
101	-Wno-deprecated \
102	-Wno-uninitialized \
103	-Wno-error=c++0x-compat \
104	-Wno-non-virtual-dtor \
105	-Wno-sign-promo \
106	-Wno-non-virtual-dtor
107
108
109# Flags passed to both C and C++ files.
110MY_CFLAGS_Release := \
111	-fstack-protector \
112	--param=ssp-buffer-size=4 \
113	 \
114	-fno-exceptions \
115	-fno-strict-aliasing \
116	-Wno-unused-parameter \
117	-Wno-missing-field-initializers \
118	-fvisibility=hidden \
119	-pipe \
120	-fPIC \
121	-Wno-format \
122	-EL \
123	-mhard-float \
124	-ffunction-sections \
125	-funwind-tables \
126	-g \
127	-fstack-protector \
128	-fno-short-enums \
129	-finline-limit=64 \
130	-Wa,--noexecstack \
131	-U_FORTIFY_SOURCE \
132	-Wno-extra \
133	-Wno-ignored-qualifiers \
134	-Wno-type-limits \
135	-Wno-address \
136	-Wno-format-security \
137	-Wno-return-type \
138	-Wno-sequence-point \
139	-Os \
140	-fno-ident \
141	-fdata-sections \
142	-ffunction-sections \
143	-fomit-frame-pointer
144
145MY_DEFS_Release := \
146	'-DANGLE_DX11' \
147	'-D_FILE_OFFSET_BITS=64' \
148	'-DNO_TCMALLOC' \
149	'-DDISABLE_NACL' \
150	'-DCHROMIUM_BUILD' \
151	'-DUSE_LIBJPEG_TURBO=1' \
152	'-DUSE_PROPRIETARY_CODECS' \
153	'-DENABLE_CONFIGURATION_POLICY' \
154	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
155	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
156	'-DUSE_OPENSSL=1' \
157	'-DENABLE_EGLIMAGE=1' \
158	'-DCLD_VERSION=1' \
159	'-DENABLE_MANAGED_USERS=1' \
160	'-DANDROID' \
161	'-D__GNU_SOURCE=1' \
162	'-DUSE_STLPORT=1' \
163	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
164	'-DCHROME_BUILD_ID=""' \
165	'-DNDEBUG' \
166	'-DNVALGRIND' \
167	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
168
169
170# Include paths placed before CFLAGS/CPPFLAGS
171LOCAL_C_INCLUDES_Release := \
172	$(PWD)/frameworks/wilhelm/include \
173	$(PWD)/bionic \
174	$(PWD)/external/stlport/stlport
175
176
177# Flags passed to only C++ (and not C) files.
178LOCAL_CPPFLAGS_Release := \
179	-fno-rtti \
180	-fno-threadsafe-statics \
181	-fvisibility-inlines-hidden \
182	-Wno-deprecated \
183	-Wno-uninitialized \
184	-Wno-error=c++0x-compat \
185	-Wno-non-virtual-dtor \
186	-Wno-sign-promo \
187	-Wno-non-virtual-dtor
188
189
190LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
191LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
192LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
193### Rules for final target.
194
195LOCAL_LDFLAGS_Debug := \
196	-Wl,-z,now \
197	-Wl,-z,relro \
198	-Wl,-z,noexecstack \
199	-fPIC \
200	-EL \
201	-Wl,--no-keep-memory \
202	-nostdlib \
203	-Wl,--no-undefined \
204	-Wl,--exclude-libs=ALL \
205	-Wl,--fatal-warnings \
206	-Wl,--gc-sections \
207	-Wl,--warn-shared-textrel \
208	-Wl,-O1 \
209	-Wl,--as-needed
210
211
212LOCAL_LDFLAGS_Release := \
213	-Wl,-z,now \
214	-Wl,-z,relro \
215	-Wl,-z,noexecstack \
216	-fPIC \
217	-EL \
218	-Wl,--no-keep-memory \
219	-nostdlib \
220	-Wl,--no-undefined \
221	-Wl,--exclude-libs=ALL \
222	-Wl,-O1 \
223	-Wl,--as-needed \
224	-Wl,--gc-sections \
225	-Wl,--fatal-warnings \
226	-Wl,--warn-shared-textrel
227
228
229LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
230
231LOCAL_STATIC_LIBRARIES :=
232
233# Enable grouping to fix circular references
234LOCAL_GROUP_STATIC_LIBRARIES := true
235
236LOCAL_SHARED_LIBRARIES := \
237	libstlport \
238	libdl
239
240# Add target alias to "gyp_all_modules" target.
241.PHONY: gyp_all_modules
242gyp_all_modules: third_party_smhasher_cityhash_gyp
243
244# Alias gyp target name.
245.PHONY: cityhash
246cityhash: third_party_smhasher_cityhash_gyp
247
248include $(BUILD_STATIC_LIBRARY)
249