cityhash.target.darwin-mips.mk revision e31802ad5b5d9fdf7daba665b671e9ecee368cb8
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 := \
30	-fstack-protector \
31	--param=ssp-buffer-size=4 \
32	 \
33	-fno-exceptions \
34	-fno-strict-aliasing \
35	-Wno-unused-parameter \
36	-Wno-missing-field-initializers \
37	-fvisibility=hidden \
38	-pipe \
39	-fPIC \
40	-Wno-format \
41	-EL \
42	-mhard-float \
43	--sysroot=/usr/local/google2/src/clank/webview/external/chromium_org/mipsel-sysroot/sysroot \
44	-ffunction-sections \
45	-funwind-tables \
46	-g \
47	-fstack-protector \
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	-Os \
60	-g \
61	-fomit-frame-pointer \
62	-fdata-sections \
63	-ffunction-sections
64
65MY_CFLAGS_C :=
66
67MY_DEFS := \
68	'-DANGLE_DX11' \
69	'-D_FILE_OFFSET_BITS=64' \
70	'-DNO_TCMALLOC' \
71	'-DDISABLE_NACL' \
72	'-DCHROMIUM_BUILD' \
73	'-DUSE_LIBJPEG_TURBO=1' \
74	'-DUSE_PROPRIETARY_CODECS' \
75	'-DENABLE_GPU=1' \
76	'-DUSE_OPENSSL=1' \
77	'-DENABLE_EGLIMAGE=1' \
78	'-DENABLE_LANGUAGE_DETECTION=1' \
79	'-DANDROID' \
80	'-D__GNU_SOURCE=1' \
81	'-DUSE_STLPORT=1' \
82	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
83	'-DCHROME_BUILD_ID=""' \
84	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
85	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
86	'-D_DEBUG'
87
88LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
89
90# Include paths placed before CFLAGS/CPPFLAGS
91LOCAL_C_INCLUDES := \
92	$(PWD)/frameworks/wilhelm/include \
93	$(PWD)/bionic \
94	$(PWD)/external/stlport/stlport
95
96LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
97
98# Flags passed to only C++ (and not C) files.
99LOCAL_CPPFLAGS := \
100	-fno-rtti \
101	-fno-threadsafe-statics \
102	-fvisibility-inlines-hidden \
103	-Wno-deprecated \
104	-Wno-uninitialized \
105	-Wno-error=c++0x-compat \
106	-Wno-non-virtual-dtor \
107	-Wno-sign-promo \
108	-Wno-non-virtual-dtor
109
110### Rules for final target.
111
112LOCAL_LDFLAGS := \
113	-Wl,-z,now \
114	-Wl,-z,relro \
115	-Wl,-z,noexecstack \
116	-fPIC \
117	-EL \
118	-Wl,--no-keep-memory \
119	--sysroot=/usr/local/google2/src/clank/webview/external/chromium_org/mipsel-sysroot/sysroot \
120	 \
121	-nostdlib \
122	-Wl,--no-undefined \
123	-Wl,--exclude-libs=ALL \
124	-Wl,--gc-sections \
125	-Wl,-O1 \
126	-Wl,--as-needed
127
128
129LOCAL_STATIC_LIBRARIES :=
130
131# Enable grouping to fix circular references
132LOCAL_GROUP_STATIC_LIBRARIES := true
133
134LOCAL_SHARED_LIBRARIES := \
135	libstlport \
136	libdl
137
138# Add target alias to "gyp_all_modules" target.
139.PHONY: gyp_all_modules
140gyp_all_modules: third_party_smhasher_cityhash_gyp
141
142# Alias gyp target name.
143.PHONY: cityhash
144cityhash: third_party_smhasher_cityhash_gyp
145
146include $(BUILD_STATIC_LIBRARY)
147