cityhash.target.darwin-x86.mk revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
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	'-D_FILE_OFFSET_BITS=64' \
70	'-DUSE_LINUX_BREAKPAD' \
71	'-DNO_TCMALLOC' \
72	'-DDISABLE_NACL' \
73	'-DCHROMIUM_BUILD' \
74	'-DUSE_LIBJPEG_TURBO=1' \
75	'-DUSE_PROPRIETARY_CODECS' \
76	'-DENABLE_GPU=1' \
77	'-DUSE_OPENSSL=1' \
78	'-DENABLE_EGLIMAGE=1' \
79	'-DENABLE_LANGUAGE_DETECTION=1' \
80	'-DANDROID' \
81	'-D__GNU_SOURCE=1' \
82	'-DUSE_STLPORT=1' \
83	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
84	'-DCHROME_BUILD_ID=""' \
85	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
86	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
87	'-D_DEBUG'
88
89LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
90
91# Include paths placed before CFLAGS/CPPFLAGS
92LOCAL_C_INCLUDES := \
93	$(GYP_ABS_ANDROID_TOP_DIR)/frameworks/wilhelm/include \
94	$(GYP_ABS_ANDROID_TOP_DIR)/bionic \
95	$(GYP_ABS_ANDROID_TOP_DIR)/external/stlport/stlport
96
97LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
98
99# Flags passed to only C++ (and not C) files.
100LOCAL_CPPFLAGS := \
101	-fno-rtti \
102	-fno-threadsafe-statics \
103	-fvisibility-inlines-hidden \
104	-Wno-deprecated \
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	-m32 \
118	-fuse-ld=gold \
119	-nostdlib \
120	-Wl,--no-undefined \
121	-Wl,--exclude-libs=ALL \
122	-Wl,--gc-sections \
123	-Wl,-O1 \
124	-Wl,--as-needed
125
126
127LOCAL_STATIC_LIBRARIES :=
128
129# Enable grouping to fix circular references
130LOCAL_GROUP_STATIC_LIBRARIES := true
131
132LOCAL_SHARED_LIBRARIES := \
133	libstlport \
134	libdl
135
136# Add target alias to "gyp_all_modules" target.
137.PHONY: gyp_all_modules
138gyp_all_modules: third_party_smhasher_cityhash_gyp
139
140# Alias gyp target name.
141.PHONY: cityhash
142cityhash: third_party_smhasher_cityhash_gyp
143
144include $(BUILD_STATIC_LIBRARY)
145