blob: a4ba25e29d4f7ed2e3c49621766f831d6a859127 [file] [log] [blame]
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +01001# 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 \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010031 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 \
Torne (Richard Coles)424c4d72013-08-30 15:14:49 +010040 google_apis/gaia/oauth2_token_service.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010041 google_apis/google_api_keys.cc
42
43
44# Flags passed to both C and C++ files.
Ben Murdocheb525c52013-07-10 11:40:50 +010045MY_CFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010046 -fstack-protector \
47 --param=ssp-buffer-size=4 \
48 \
49 -fno-exceptions \
50 -fno-strict-aliasing \
51 -Wall \
52 -Wno-unused-parameter \
53 -Wno-missing-field-initializers \
54 -fvisibility=hidden \
55 -pipe \
56 -fPIC \
57 -EL \
58 -mhard-float \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010059 -ffunction-sections \
60 -funwind-tables \
61 -g \
62 -fstack-protector \
63 -fno-short-enums \
64 -finline-limit=64 \
65 -Wa,--noexecstack \
66 -U_FORTIFY_SOURCE \
67 -Wno-extra \
68 -Wno-ignored-qualifiers \
69 -Wno-type-limits \
70 -Os \
71 -g \
72 -fomit-frame-pointer \
73 -fdata-sections \
74 -ffunction-sections
75
Ben Murdocheb525c52013-07-10 11:40:50 +010076MY_DEFS_Debug := \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010077 '-DANGLE_DX11' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010078 '-D_FILE_OFFSET_BITS=64' \
79 '-DNO_TCMALLOC' \
80 '-DDISABLE_NACL' \
81 '-DCHROMIUM_BUILD' \
82 '-DUSE_LIBJPEG_TURBO=1' \
83 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +010084 '-DENABLE_CONFIGURATION_POLICY' \
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +000085 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
86 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010087 '-DUSE_OPENSSL=1' \
88 '-DENABLE_EGLIMAGE=1' \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +010089 '-DCLD_VERSION=1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +000090 '-DENABLE_MANAGED_USERS=1' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010091 '-DPOSIX_AVOID_MMAP' \
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
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100103
104# Include paths placed before CFLAGS/CPPFLAGS
Ben Murdocheb525c52013-07-10 11:40:50 +0100105LOCAL_C_INCLUDES_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100106 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
Ben Murdochbbcdd452013-07-25 10:06:34 +0100107 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
108 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100109 $(LOCAL_PATH) \
110 $(LOCAL_PATH)/third_party/openssl/openssl/include \
111 $(PWD)/frameworks/wilhelm/include \
112 $(PWD)/bionic \
113 $(PWD)/external/stlport/stlport
114
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100115
116# Flags passed to only C++ (and not C) files.
Ben Murdocheb525c52013-07-10 11:40:50 +0100117LOCAL_CPPFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100118 -fno-rtti \
119 -fno-threadsafe-statics \
120 -fvisibility-inlines-hidden \
121 -Wsign-compare \
122 -Wno-uninitialized \
123 -Wno-error=c++0x-compat \
124 -Wno-non-virtual-dtor \
125 -Wno-sign-promo
126
Ben Murdocheb525c52013-07-10 11:40:50 +0100127
128# Flags passed to both C and C++ files.
129MY_CFLAGS_Release := \
130 -fstack-protector \
131 --param=ssp-buffer-size=4 \
132 \
133 -fno-exceptions \
134 -fno-strict-aliasing \
135 -Wall \
136 -Wno-unused-parameter \
137 -Wno-missing-field-initializers \
138 -fvisibility=hidden \
139 -pipe \
140 -fPIC \
141 -EL \
142 -mhard-float \
143 -ffunction-sections \
144 -funwind-tables \
145 -g \
146 -fstack-protector \
147 -fno-short-enums \
148 -finline-limit=64 \
149 -Wa,--noexecstack \
150 -U_FORTIFY_SOURCE \
151 -Wno-extra \
152 -Wno-ignored-qualifiers \
153 -Wno-type-limits \
154 -Os \
155 -fno-ident \
156 -fdata-sections \
157 -ffunction-sections \
158 -fomit-frame-pointer
159
160MY_DEFS_Release := \
161 '-DANGLE_DX11' \
162 '-D_FILE_OFFSET_BITS=64' \
163 '-DNO_TCMALLOC' \
164 '-DDISABLE_NACL' \
165 '-DCHROMIUM_BUILD' \
166 '-DUSE_LIBJPEG_TURBO=1' \
167 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100168 '-DENABLE_CONFIGURATION_POLICY' \
Torne (Richard Coles)1e9bf3e2013-10-31 11:16:26 +0000169 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
170 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100171 '-DUSE_OPENSSL=1' \
172 '-DENABLE_EGLIMAGE=1' \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100173 '-DCLD_VERSION=1' \
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +0000174 '-DENABLE_MANAGED_USERS=1' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100175 '-DPOSIX_AVOID_MMAP' \
176 '-D__STDC_CONSTANT_MACROS' \
177 '-D__STDC_FORMAT_MACROS' \
178 '-DANDROID' \
179 '-D__GNU_SOURCE=1' \
180 '-DUSE_STLPORT=1' \
181 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
182 '-DCHROME_BUILD_ID=""' \
183 '-DNDEBUG' \
184 '-DNVALGRIND' \
185 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
186 '-D_FORTIFY_SOURCE=2'
187
188
189# Include paths placed before CFLAGS/CPPFLAGS
190LOCAL_C_INCLUDES_Release := \
Ben Murdocheb525c52013-07-10 11:40:50 +0100191 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
Ben Murdochbbcdd452013-07-25 10:06:34 +0100192 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
193 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
Ben Murdocheb525c52013-07-10 11:40:50 +0100194 $(LOCAL_PATH) \
195 $(LOCAL_PATH)/third_party/openssl/openssl/include \
196 $(PWD)/frameworks/wilhelm/include \
197 $(PWD)/bionic \
198 $(PWD)/external/stlport/stlport
199
200
201# Flags passed to only C++ (and not C) files.
202LOCAL_CPPFLAGS_Release := \
203 -fno-rtti \
204 -fno-threadsafe-statics \
205 -fvisibility-inlines-hidden \
206 -Wsign-compare \
207 -Wno-uninitialized \
208 -Wno-error=c++0x-compat \
209 -Wno-non-virtual-dtor \
210 -Wno-sign-promo
211
212
213LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
214LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
215LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100216### Rules for final target.
217
Ben Murdocheb525c52013-07-10 11:40:50 +0100218LOCAL_LDFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100219 -Wl,-z,now \
220 -Wl,-z,relro \
221 -Wl,-z,noexecstack \
222 -fPIC \
223 -EL \
224 -Wl,--no-keep-memory \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100225 -nostdlib \
226 -Wl,--no-undefined \
227 -Wl,--exclude-libs=ALL \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100228 -Wl,--fatal-warnings \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100229 -Wl,--gc-sections \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100230 -Wl,--warn-shared-textrel \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100231 -Wl,-O1 \
232 -Wl,--as-needed
233
234
Ben Murdocheb525c52013-07-10 11:40:50 +0100235LOCAL_LDFLAGS_Release := \
236 -Wl,-z,now \
237 -Wl,-z,relro \
238 -Wl,-z,noexecstack \
239 -fPIC \
240 -EL \
241 -Wl,--no-keep-memory \
242 -nostdlib \
243 -Wl,--no-undefined \
244 -Wl,--exclude-libs=ALL \
245 -Wl,-O1 \
246 -Wl,--as-needed \
Torne (Richard Coles)58537e22013-09-12 12:10:22 +0100247 -Wl,--gc-sections \
248 -Wl,--fatal-warnings \
249 -Wl,--warn-shared-textrel
Ben Murdocheb525c52013-07-10 11:40:50 +0100250
251
252LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
253
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100254LOCAL_STATIC_LIBRARIES :=
255
256# Enable grouping to fix circular references
257LOCAL_GROUP_STATIC_LIBRARIES := true
258
259LOCAL_SHARED_LIBRARIES := \
260 libstlport \
261 libdl
262
263# Add target alias to "gyp_all_modules" target.
264.PHONY: gyp_all_modules
265gyp_all_modules: google_apis_google_apis_gyp
266
267# Alias gyp target name.
268.PHONY: google_apis
269google_apis: google_apis_google_apis_gyp
270
271include $(BUILD_STATIC_LIBRARY)