visitedlink_browser.target.darwin-x86.mk revision eb525c5499e34cc9c4b825d6d9e75bb07cc06ace
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := components_visitedlink_browser_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_CPP_EXTENSION := .cc
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	components/visitedlink/browser/visitedlink_event_listener.cc \
27	components/visitedlink/browser/visitedlink_master.cc
28
29
30# Flags passed to both C and C++ files.
31MY_CFLAGS_Debug := \
32	--param=ssp-buffer-size=4 \
33	-Werror \
34	-fno-exceptions \
35	-fno-strict-aliasing \
36	-Wall \
37	-Wno-unused-parameter \
38	-Wno-missing-field-initializers \
39	-fvisibility=hidden \
40	-pipe \
41	-fPIC \
42	-m32 \
43	-mmmx \
44	-march=pentium4 \
45	-msse2 \
46	-mfpmath=sse \
47	-fuse-ld=gold \
48	-ffunction-sections \
49	-funwind-tables \
50	-g \
51	-fno-short-enums \
52	-finline-limit=64 \
53	-Wa,--noexecstack \
54	-U_FORTIFY_SOURCE \
55	-Wno-extra \
56	-Wno-ignored-qualifiers \
57	-Wno-type-limits \
58	-fno-stack-protector \
59	-Os \
60	-g \
61	-fomit-frame-pointer \
62	-fdata-sections \
63	-ffunction-sections
64
65MY_DEFS_Debug := \
66	'-DANGLE_DX11' \
67	'-D_FILE_OFFSET_BITS=64' \
68	'-DUSE_LINUX_BREAKPAD' \
69	'-DNO_TCMALLOC' \
70	'-DDISABLE_NACL' \
71	'-DCHROMIUM_BUILD' \
72	'-DUSE_LIBJPEG_TURBO=1' \
73	'-DUSE_PROPRIETARY_CODECS' \
74	'-DENABLE_GPU=1' \
75	'-DUSE_OPENSSL=1' \
76	'-DENABLE_EGLIMAGE=1' \
77	'-DENABLE_LANGUAGE_DETECTION=1' \
78	'-D__STDC_CONSTANT_MACROS' \
79	'-D__STDC_FORMAT_MACROS' \
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
89
90# Include paths placed before CFLAGS/CPPFLAGS
91LOCAL_C_INCLUDES_Debug := \
92	$(LOCAL_PATH)/skia/config \
93	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
94	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
95	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
96	$(LOCAL_PATH)/third_party/khronos \
97	$(LOCAL_PATH)/gpu \
98	$(LOCAL_PATH) \
99	$(PWD)/frameworks/wilhelm/include \
100	$(PWD)/bionic \
101	$(PWD)/external/stlport/stlport
102
103
104# Flags passed to only C++ (and not C) files.
105LOCAL_CPPFLAGS_Debug := \
106	-fno-rtti \
107	-fno-threadsafe-statics \
108	-fvisibility-inlines-hidden \
109	-Wsign-compare \
110	-Wno-error=c++0x-compat \
111	-Wno-non-virtual-dtor \
112	-Wno-sign-promo
113
114
115# Flags passed to both C and C++ files.
116MY_CFLAGS_Release := \
117	--param=ssp-buffer-size=4 \
118	-Werror \
119	-fno-exceptions \
120	-fno-strict-aliasing \
121	-Wall \
122	-Wno-unused-parameter \
123	-Wno-missing-field-initializers \
124	-fvisibility=hidden \
125	-pipe \
126	-fPIC \
127	-m32 \
128	-mmmx \
129	-march=pentium4 \
130	-msse2 \
131	-mfpmath=sse \
132	-fuse-ld=gold \
133	-ffunction-sections \
134	-funwind-tables \
135	-g \
136	-fno-short-enums \
137	-finline-limit=64 \
138	-Wa,--noexecstack \
139	-U_FORTIFY_SOURCE \
140	-Wno-extra \
141	-Wno-ignored-qualifiers \
142	-Wno-type-limits \
143	-fno-stack-protector \
144	-Os \
145	-fno-ident \
146	-fdata-sections \
147	-ffunction-sections \
148	-fomit-frame-pointer \
149	-fno-unwind-tables \
150	-fno-asynchronous-unwind-tables
151
152MY_DEFS_Release := \
153	'-DANGLE_DX11' \
154	'-D_FILE_OFFSET_BITS=64' \
155	'-DUSE_LINUX_BREAKPAD' \
156	'-DNO_TCMALLOC' \
157	'-DDISABLE_NACL' \
158	'-DCHROMIUM_BUILD' \
159	'-DUSE_LIBJPEG_TURBO=1' \
160	'-DUSE_PROPRIETARY_CODECS' \
161	'-DENABLE_GPU=1' \
162	'-DUSE_OPENSSL=1' \
163	'-DENABLE_EGLIMAGE=1' \
164	'-DENABLE_LANGUAGE_DETECTION=1' \
165	'-D__STDC_CONSTANT_MACROS' \
166	'-D__STDC_FORMAT_MACROS' \
167	'-DANDROID' \
168	'-D__GNU_SOURCE=1' \
169	'-DUSE_STLPORT=1' \
170	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
171	'-DCHROME_BUILD_ID=""' \
172	'-DNDEBUG' \
173	'-DNVALGRIND' \
174	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
175	'-D_FORTIFY_SOURCE=2'
176
177
178# Include paths placed before CFLAGS/CPPFLAGS
179LOCAL_C_INCLUDES_Release := \
180	$(LOCAL_PATH)/skia/config \
181	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
182	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
183	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
184	$(LOCAL_PATH)/third_party/khronos \
185	$(LOCAL_PATH)/gpu \
186	$(LOCAL_PATH) \
187	$(PWD)/frameworks/wilhelm/include \
188	$(PWD)/bionic \
189	$(PWD)/external/stlport/stlport
190
191
192# Flags passed to only C++ (and not C) files.
193LOCAL_CPPFLAGS_Release := \
194	-fno-rtti \
195	-fno-threadsafe-statics \
196	-fvisibility-inlines-hidden \
197	-Wsign-compare \
198	-Wno-error=c++0x-compat \
199	-Wno-non-virtual-dtor \
200	-Wno-sign-promo
201
202
203LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
204LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
205LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
206### Rules for final target.
207
208LOCAL_LDFLAGS_Debug := \
209	-Wl,-z,now \
210	-Wl,-z,relro \
211	-Wl,-z,noexecstack \
212	-fPIC \
213	-m32 \
214	-fuse-ld=gold \
215	-nostdlib \
216	-Wl,--no-undefined \
217	-Wl,--exclude-libs=ALL \
218	-Wl,--gc-sections \
219	-Wl,-O1 \
220	-Wl,--as-needed
221
222
223LOCAL_LDFLAGS_Release := \
224	-Wl,-z,now \
225	-Wl,-z,relro \
226	-Wl,-z,noexecstack \
227	-fPIC \
228	-m32 \
229	-fuse-ld=gold \
230	-nostdlib \
231	-Wl,--no-undefined \
232	-Wl,--exclude-libs=ALL \
233	-Wl,-O1 \
234	-Wl,--as-needed \
235	-Wl,--gc-sections
236
237
238LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
239
240LOCAL_STATIC_LIBRARIES :=
241
242# Enable grouping to fix circular references
243LOCAL_GROUP_STATIC_LIBRARIES := true
244
245LOCAL_SHARED_LIBRARIES := \
246	libstlport \
247	libdl
248
249# Add target alias to "gyp_all_modules" target.
250.PHONY: gyp_all_modules
251gyp_all_modules: components_visitedlink_browser_gyp
252
253# Alias gyp target name.
254.PHONY: visitedlink_browser
255visitedlink_browser: components_visitedlink_browser_gyp
256
257include $(BUILD_STATIC_LIBRARY)
258