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