cityhash.target.linux-arm.mk revision eb525c5499e34cc9c4b825d6d9e75bb07cc06ace
19682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall# This file is generated by gyp; do not edit.
29682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
39682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallinclude $(CLEAR_VARS)
49682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
59682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse HallLOCAL_MODULE_CLASS := STATIC_LIBRARIES
69682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse HallLOCAL_MODULE := third_party_smhasher_cityhash_gyp
79682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse HallLOCAL_MODULE_SUFFIX := .a
89682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse HallLOCAL_MODULE_TAGS := optional
99682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallgyp_intermediate_dir := $(call local-intermediates-dir)
109682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallgyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
119682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
129682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall# Make sure our deps are built first.
139682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse HallGYP_TARGET_DEPENDENCIES :=
149682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
159682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse HallGYP_GENERATED_OUTPUTS :=
169682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
179682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall# Make sure our deps and generated files are built first.
189682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse HallLOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
199682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
209682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse HallLOCAL_GENERATED_SOURCES :=
219682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
229682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse HallGYP_COPIED_SOURCE_ORIGIN_DIRS :=
239682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
249682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse HallLOCAL_SRC_FILES := \
259682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	third_party/smhasher/src/City.cpp
269682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
279682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
289682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall# Flags passed to both C and C++ files.
299682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse HallMY_CFLAGS_Debug := \
309682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-fstack-protector \
319682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	--param=ssp-buffer-size=4 \
329682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-fno-exceptions \
339682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-fno-strict-aliasing \
349682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-Wno-unused-parameter \
359682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-Wno-missing-field-initializers \
369682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-fvisibility=hidden \
379682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-pipe \
389682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-fPIC \
399682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-Wno-format \
409682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-fno-tree-sra \
419682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-fuse-ld=gold \
429682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-Wno-psabi \
439682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-ffunction-sections \
449682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-funwind-tables \
459682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-g \
469682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-fstack-protector \
479682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-fno-short-enums \
489682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-finline-limit=64 \
499682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-Wa,--noexecstack \
509682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-U_FORTIFY_SOURCE \
519682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	-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