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