cityhash.target.linux-x86.mk revision 7d4cd473f85ac64c3747c96c277f9e506a0d2246
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	--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_CFLAGS_C :=
67
68MY_DEFS := \
69	'-DANGLE_DX11' \
70	'-D_FILE_OFFSET_BITS=64' \
71	'-DUSE_LINUX_BREAKPAD' \
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-error=c++0x-compat \
107	-Wno-non-virtual-dtor \
108	-Wno-sign-promo \
109	-Wno-non-virtual-dtor
110
111### Rules for final target.
112
113LOCAL_LDFLAGS := \
114	-Wl,-z,now \
115	-Wl,-z,relro \
116	-Wl,-z,noexecstack \
117	-fPIC \
118	-m32 \
119	-fuse-ld=gold \
120	-nostdlib \
121	-Wl,--no-undefined \
122	-Wl,--exclude-libs=ALL \
123	-Wl,--gc-sections \
124	-Wl,-O1 \
125	-Wl,--as-needed
126
127
128LOCAL_STATIC_LIBRARIES :=
129
130# Enable grouping to fix circular references
131LOCAL_GROUP_STATIC_LIBRARIES := true
132
133LOCAL_SHARED_LIBRARIES := \
134	libstlport \
135	libdl
136
137# Add target alias to "gyp_all_modules" target.
138.PHONY: gyp_all_modules
139gyp_all_modules: third_party_smhasher_cityhash_gyp
140
141# Alias gyp target name.
142.PHONY: cityhash
143cityhash: third_party_smhasher_cityhash_gyp
144
145include $(BUILD_STATIC_LIBRARY)
146