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