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