cityhash.target.darwin-x86.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	--param=ssp-buffer-size=4 \
31	-fno-exceptions \
32	-fno-strict-aliasing \
33	-Wno-unused-parameter \
34	-Wno-missing-field-initializers \
35	-fvisibility=hidden \
36	-pipe \
37	-fPIC \
38	-Wno-format \
39	-m32 \
40	-mmmx \
41	-march=pentium4 \
42	-msse2 \
43	-mfpmath=sse \
44	-fuse-ld=gold \
45	-ffunction-sections \
46	-funwind-tables \
47	-g \
48	-fno-short-enums \
49	-finline-limit=64 \
50	-Wa,--noexecstack \
51	-U_FORTIFY_SOURCE \
52	-Wno-extra \
53	-Wno-ignored-qualifiers \
54	-Wno-type-limits \
55	-Wno-address \
56	-Wno-format-security \
57	-Wno-return-type \
58	-Wno-sequence-point \
59	-fno-stack-protector \
60	-Os \
61	-g \
62	-fomit-frame-pointer \
63	-fdata-sections \
64	-ffunction-sections
65
66MY_DEFS_Debug := \
67	'-DANGLE_DX11' \
68	'-D_FILE_OFFSET_BITS=64' \
69	'-DNO_TCMALLOC' \
70	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
71	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
72	'-DDISABLE_NACL' \
73	'-DCHROMIUM_BUILD' \
74	'-DUSE_LIBJPEG_TURBO=1' \
75	'-DUSE_PROPRIETARY_CODECS' \
76	'-DENABLE_GPU=1' \
77	'-DUSE_OPENSSL=1' \
78	'-DENABLE_EGLIMAGE=1' \
79	'-DENABLE_LANGUAGE_DETECTION=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-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	--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	-m32 \
121	-mmmx \
122	-march=pentium4 \
123	-msse2 \
124	-mfpmath=sse \
125	-fuse-ld=gold \
126	-ffunction-sections \
127	-funwind-tables \
128	-g \
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	-fno-stack-protector \
141	-Os \
142	-fno-ident \
143	-fdata-sections \
144	-ffunction-sections \
145	-fomit-frame-pointer \
146	-fno-unwind-tables \
147	-fno-asynchronous-unwind-tables
148
149MY_DEFS_Release := \
150	'-DANGLE_DX11' \
151	'-D_FILE_OFFSET_BITS=64' \
152	'-DNO_TCMALLOC' \
153	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
154	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
155	'-DDISABLE_NACL' \
156	'-DCHROMIUM_BUILD' \
157	'-DUSE_LIBJPEG_TURBO=1' \
158	'-DUSE_PROPRIETARY_CODECS' \
159	'-DENABLE_GPU=1' \
160	'-DUSE_OPENSSL=1' \
161	'-DENABLE_EGLIMAGE=1' \
162	'-DENABLE_LANGUAGE_DETECTION=1' \
163	'-DANDROID' \
164	'-D__GNU_SOURCE=1' \
165	'-DUSE_STLPORT=1' \
166	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
167	'-DCHROME_BUILD_ID=""' \
168	'-DNDEBUG' \
169	'-DNVALGRIND' \
170	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
171
172
173# Include paths placed before CFLAGS/CPPFLAGS
174LOCAL_C_INCLUDES_Release := \
175	$(PWD)/frameworks/wilhelm/include \
176	$(PWD)/bionic \
177	$(PWD)/external/stlport/stlport
178
179
180# Flags passed to only C++ (and not C) files.
181LOCAL_CPPFLAGS_Release := \
182	-fno-rtti \
183	-fno-threadsafe-statics \
184	-fvisibility-inlines-hidden \
185	-Wno-deprecated \
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	-m32 \
203	-fuse-ld=gold \
204	-nostdlib \
205	-Wl,--no-undefined \
206	-Wl,--exclude-libs=ALL \
207	-Wl,--gc-sections \
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	-m32 \
218	-fuse-ld=gold \
219	-nostdlib \
220	-Wl,--no-undefined \
221	-Wl,--exclude-libs=ALL \
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