cityhash.target.darwin-mips.mk revision 7d4cd473f85ac64c3747c96c277f9e506a0d2246
15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# This file is generated by gyp; do not edit.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)include $(CLEAR_VARS)
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)LOCAL_MODULE_CLASS := STATIC_LIBRARIES
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)LOCAL_MODULE := third_party_smhasher_cityhash_gyp
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)LOCAL_MODULE_SUFFIX := .a
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)LOCAL_MODULE_TAGS := optional
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)gyp_intermediate_dir := $(call local-intermediates-dir)
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# Make sure our deps are built first.
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GYP_TARGET_DEPENDENCIES :=
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GYP_GENERATED_OUTPUTS :=
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# Make sure our deps and generated files are built first.
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)LOCAL_GENERATED_SOURCES :=
215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GYP_COPIED_SOURCE_ORIGIN_DIRS :=
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)LOCAL_SRC_FILES := \
255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	third_party/smhasher/src/City.cpp
265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# Flags passed to both C and C++ files.
295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)MY_CFLAGS := \
305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-fstack-protector \
315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	--param=ssp-buffer-size=4 \
325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	 \
335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-fno-exceptions \
345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-fno-strict-aliasing \
355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Wno-unused-parameter \
365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Wno-missing-field-initializers \
375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-fvisibility=hidden \
385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-pipe \
395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-fPIC \
405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Wno-format \
415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-EL \
425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-mhard-float \
435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-mips32r2 \
445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Wa,-mips32r2 \
455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	--sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \
465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-ffunction-sections \
475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-funwind-tables \
485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-g \
495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-fstack-protector \
505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-fno-short-enums \
515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-finline-limit=64 \
525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Wa,--noexecstack \
535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-U_FORTIFY_SOURCE \
545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Wno-extra \
555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Wno-ignored-qualifiers \
565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Wno-type-limits \
575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Wno-address \
585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Wno-format-security \
595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Wno-return-type \
605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Wno-sequence-point \
615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-Os \
625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-g \
635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)	-fomit-frame-pointer \
64	-fdata-sections \
65	-ffunction-sections
66
67MY_CFLAGS_C :=
68
69MY_DEFS := \
70	'-DANGLE_DX11' \
71	'-D_FILE_OFFSET_BITS=64' \
72	'-DNO_TCMALLOC' \
73	'-DDISABLE_NACL' \
74	'-DCHROMIUM_BUILD' \
75	'-DUSE_LIBJPEG_TURBO=1' \
76	'-DUSE_PROPRIETARY_CODECS' \
77	'-DENABLE_GPU=1' \
78	'-DUSE_OPENSSL=1' \
79	'-DENABLE_EGLIMAGE=1' \
80	'-DENABLE_LANGUAGE_DETECTION=1' \
81	'-DANDROID' \
82	'-D__GNU_SOURCE=1' \
83	'-DUSE_STLPORT=1' \
84	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
85	'-DCHROME_BUILD_ID=""' \
86	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
87	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
88	'-D_DEBUG'
89
90LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
91
92# Include paths placed before CFLAGS/CPPFLAGS
93LOCAL_C_INCLUDES := \
94	$(PWD)/frameworks/wilhelm/include \
95	$(PWD)/bionic \
96	$(PWD)/external/stlport/stlport
97
98LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
99
100# Flags passed to only C++ (and not C) files.
101LOCAL_CPPFLAGS := \
102	-fno-rtti \
103	-fno-threadsafe-statics \
104	-fvisibility-inlines-hidden \
105	-Wno-deprecated \
106	-Wno-uninitialized \
107	-Wno-error=c++0x-compat \
108	-Wno-non-virtual-dtor \
109	-Wno-sign-promo \
110	-Wno-non-virtual-dtor
111
112### Rules for final target.
113
114LOCAL_LDFLAGS := \
115	-Wl,-z,now \
116	-Wl,-z,relro \
117	-Wl,-z,noexecstack \
118	-fPIC \
119	-EL \
120	-Wl,--no-keep-memory \
121	--sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \
122	 \
123	-nostdlib \
124	-Wl,--no-undefined \
125	-Wl,--exclude-libs=ALL \
126	-Wl,--gc-sections \
127	-Wl,-O1 \
128	-Wl,--as-needed
129
130
131LOCAL_STATIC_LIBRARIES :=
132
133# Enable grouping to fix circular references
134LOCAL_GROUP_STATIC_LIBRARIES := true
135
136LOCAL_SHARED_LIBRARIES := \
137	libstlport \
138	libdl
139
140# Add target alias to "gyp_all_modules" target.
141.PHONY: gyp_all_modules
142gyp_all_modules: third_party_smhasher_cityhash_gyp
143
144# Alias gyp target name.
145.PHONY: cityhash
146cityhash: third_party_smhasher_cityhash_gyp
147
148include $(BUILD_STATIC_LIBRARY)
149