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