1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := google_apis_google_apis_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_CPP_EXTENSION := .cc 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 google_apis/cup/client_update_protocol.cc \ 27 google_apis/cup/client_update_protocol_openssl.cc \ 28 google_apis/drive/auth_service.cc \ 29 google_apis/drive/base_requests.cc \ 30 google_apis/drive/drive_api_parser.cc \ 31 google_apis/drive/drive_api_requests.cc \ 32 google_apis/drive/drive_api_url_generator.cc \ 33 google_apis/drive/gdata_contacts_requests.cc \ 34 google_apis/drive/gdata_errorcode.cc \ 35 google_apis/drive/gdata_wapi_requests.cc \ 36 google_apis/drive/gdata_wapi_parser.cc \ 37 google_apis/drive/gdata_wapi_url_generator.cc \ 38 google_apis/drive/request_sender.cc \ 39 google_apis/drive/request_util.cc \ 40 google_apis/drive/task_util.cc \ 41 google_apis/drive/time_util.cc \ 42 google_apis/gaia/gaia_auth_consumer.cc \ 43 google_apis/gaia/gaia_auth_fetcher.cc \ 44 google_apis/gaia/gaia_auth_util.cc \ 45 google_apis/gaia/gaia_constants.cc \ 46 google_apis/gaia/gaia_oauth_client.cc \ 47 google_apis/gaia/gaia_switches.cc \ 48 google_apis/gaia/gaia_urls.cc \ 49 google_apis/gaia/google_service_auth_error.cc \ 50 google_apis/gaia/oauth_request_signer.cc \ 51 google_apis/gaia/oauth2_access_token_fetcher.cc \ 52 google_apis/gaia/oauth2_api_call_flow.cc \ 53 google_apis/gaia/oauth2_mint_token_flow.cc \ 54 google_apis/gaia/oauth2_token_service.cc \ 55 google_apis/google_api_keys.cc 56 57 58 # Flags passed to both C and C++ files. 59 MY_CFLAGS_Debug := \ 60 -fstack-protector \ 61 --param=ssp-buffer-size=4 \ 62 -Werror \ 63 -fno-exceptions \ 64 -fno-strict-aliasing \ 65 -Wall \ 66 -Wno-unused-parameter \ 67 -Wno-missing-field-initializers \ 68 -fvisibility=hidden \ 69 -pipe \ 70 -fPIC \ 71 -fno-tree-sra \ 72 -fuse-ld=gold \ 73 -Wno-psabi \ 74 -ffunction-sections \ 75 -funwind-tables \ 76 -g \ 77 -fstack-protector \ 78 -fno-short-enums \ 79 -finline-limit=64 \ 80 -Wa,--noexecstack \ 81 -U_FORTIFY_SOURCE \ 82 -Wno-extra \ 83 -Wno-ignored-qualifiers \ 84 -Wno-type-limits \ 85 -Os \ 86 -g \ 87 -fomit-frame-pointer \ 88 -fdata-sections \ 89 -ffunction-sections 90 91 MY_DEFS_Debug := \ 92 '-DV8_DEPRECATION_WARNINGS' \ 93 '-D_FILE_OFFSET_BITS=64' \ 94 '-DNO_TCMALLOC' \ 95 '-DDISABLE_NACL' \ 96 '-DCHROMIUM_BUILD' \ 97 '-DUSE_LIBJPEG_TURBO=1' \ 98 '-DUSE_PROPRIETARY_CODECS' \ 99 '-DENABLE_CONFIGURATION_POLICY' \ 100 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 101 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 102 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 103 '-DUSE_OPENSSL=1' \ 104 '-DENABLE_EGLIMAGE=1' \ 105 '-DCLD_VERSION=1' \ 106 '-DENABLE_PRINTING=1' \ 107 '-DENABLE_MANAGED_USERS=1' \ 108 '-DPOSIX_AVOID_MMAP' \ 109 '-DLIBXML_STATIC' \ 110 '-DU_USING_ICU_NAMESPACE=0' \ 111 '-D__STDC_CONSTANT_MACROS' \ 112 '-D__STDC_FORMAT_MACROS' \ 113 '-DANDROID' \ 114 '-D__GNU_SOURCE=1' \ 115 '-DUSE_STLPORT=1' \ 116 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 117 '-DCHROME_BUILD_ID=""' \ 118 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 119 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 120 '-D_DEBUG' 121 122 123 # Include paths placed before CFLAGS/CPPFLAGS 124 LOCAL_C_INCLUDES_Debug := \ 125 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 126 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 127 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 128 $(LOCAL_PATH) \ 129 $(LOCAL_PATH)/third_party/libxml/linux/include \ 130 $(LOCAL_PATH)/third_party/libxml/src/include \ 131 $(PWD)/external/icu4c/common \ 132 $(PWD)/external/icu4c/i18n \ 133 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 134 $(PWD)/frameworks/wilhelm/include \ 135 $(PWD)/bionic \ 136 $(PWD)/external/stlport/stlport 137 138 139 # Flags passed to only C++ (and not C) files. 140 LOCAL_CPPFLAGS_Debug := \ 141 -fno-rtti \ 142 -fno-threadsafe-statics \ 143 -fvisibility-inlines-hidden \ 144 -Wsign-compare \ 145 -Wno-abi \ 146 -Wno-error=c++0x-compat \ 147 -Wno-non-virtual-dtor \ 148 -Wno-sign-promo 149 150 151 # Flags passed to both C and C++ files. 152 MY_CFLAGS_Release := \ 153 -fstack-protector \ 154 --param=ssp-buffer-size=4 \ 155 -Werror \ 156 -fno-exceptions \ 157 -fno-strict-aliasing \ 158 -Wall \ 159 -Wno-unused-parameter \ 160 -Wno-missing-field-initializers \ 161 -fvisibility=hidden \ 162 -pipe \ 163 -fPIC \ 164 -fno-tree-sra \ 165 -fuse-ld=gold \ 166 -Wno-psabi \ 167 -ffunction-sections \ 168 -funwind-tables \ 169 -g \ 170 -fstack-protector \ 171 -fno-short-enums \ 172 -finline-limit=64 \ 173 -Wa,--noexecstack \ 174 -U_FORTIFY_SOURCE \ 175 -Wno-extra \ 176 -Wno-ignored-qualifiers \ 177 -Wno-type-limits \ 178 -Os \ 179 -fno-ident \ 180 -fdata-sections \ 181 -ffunction-sections \ 182 -fomit-frame-pointer 183 184 MY_DEFS_Release := \ 185 '-DV8_DEPRECATION_WARNINGS' \ 186 '-D_FILE_OFFSET_BITS=64' \ 187 '-DNO_TCMALLOC' \ 188 '-DDISABLE_NACL' \ 189 '-DCHROMIUM_BUILD' \ 190 '-DUSE_LIBJPEG_TURBO=1' \ 191 '-DUSE_PROPRIETARY_CODECS' \ 192 '-DENABLE_CONFIGURATION_POLICY' \ 193 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 194 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 195 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 196 '-DUSE_OPENSSL=1' \ 197 '-DENABLE_EGLIMAGE=1' \ 198 '-DCLD_VERSION=1' \ 199 '-DENABLE_PRINTING=1' \ 200 '-DENABLE_MANAGED_USERS=1' \ 201 '-DPOSIX_AVOID_MMAP' \ 202 '-DLIBXML_STATIC' \ 203 '-DU_USING_ICU_NAMESPACE=0' \ 204 '-D__STDC_CONSTANT_MACROS' \ 205 '-D__STDC_FORMAT_MACROS' \ 206 '-DANDROID' \ 207 '-D__GNU_SOURCE=1' \ 208 '-DUSE_STLPORT=1' \ 209 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 210 '-DCHROME_BUILD_ID=""' \ 211 '-DNDEBUG' \ 212 '-DNVALGRIND' \ 213 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 214 '-D_FORTIFY_SOURCE=2' 215 216 217 # Include paths placed before CFLAGS/CPPFLAGS 218 LOCAL_C_INCLUDES_Release := \ 219 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 220 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 221 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 222 $(LOCAL_PATH) \ 223 $(LOCAL_PATH)/third_party/libxml/linux/include \ 224 $(LOCAL_PATH)/third_party/libxml/src/include \ 225 $(PWD)/external/icu4c/common \ 226 $(PWD)/external/icu4c/i18n \ 227 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 228 $(PWD)/frameworks/wilhelm/include \ 229 $(PWD)/bionic \ 230 $(PWD)/external/stlport/stlport 231 232 233 # Flags passed to only C++ (and not C) files. 234 LOCAL_CPPFLAGS_Release := \ 235 -fno-rtti \ 236 -fno-threadsafe-statics \ 237 -fvisibility-inlines-hidden \ 238 -Wsign-compare \ 239 -Wno-abi \ 240 -Wno-error=c++0x-compat \ 241 -Wno-non-virtual-dtor \ 242 -Wno-sign-promo 243 244 245 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 246 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 247 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 248 ### Rules for final target. 249 250 LOCAL_LDFLAGS_Debug := \ 251 -Wl,-z,now \ 252 -Wl,-z,relro \ 253 -Wl,-z,noexecstack \ 254 -fPIC \ 255 -Wl,-z,relro \ 256 -Wl,-z,now \ 257 -fuse-ld=gold \ 258 -nostdlib \ 259 -Wl,--no-undefined \ 260 -Wl,--exclude-libs=ALL \ 261 -Wl,--icf=safe \ 262 -Wl,--fatal-warnings \ 263 -Wl,--gc-sections \ 264 -Wl,--warn-shared-textrel \ 265 -Wl,-O1 \ 266 -Wl,--as-needed 267 268 269 LOCAL_LDFLAGS_Release := \ 270 -Wl,-z,now \ 271 -Wl,-z,relro \ 272 -Wl,-z,noexecstack \ 273 -fPIC \ 274 -Wl,-z,relro \ 275 -Wl,-z,now \ 276 -fuse-ld=gold \ 277 -nostdlib \ 278 -Wl,--no-undefined \ 279 -Wl,--exclude-libs=ALL \ 280 -Wl,--icf=safe \ 281 -Wl,-O1 \ 282 -Wl,--as-needed \ 283 -Wl,--gc-sections \ 284 -Wl,--fatal-warnings \ 285 -Wl,--warn-shared-textrel 286 287 288 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 289 290 LOCAL_STATIC_LIBRARIES := 291 292 # Enable grouping to fix circular references 293 LOCAL_GROUP_STATIC_LIBRARIES := true 294 295 LOCAL_SHARED_LIBRARIES := \ 296 libstlport \ 297 libdl 298 299 # Add target alias to "gyp_all_modules" target. 300 .PHONY: gyp_all_modules 301 gyp_all_modules: google_apis_google_apis_gyp 302 303 # Alias gyp target name. 304 .PHONY: google_apis 305 google_apis: google_apis_google_apis_gyp 306 307 include $(BUILD_STATIC_LIBRARY) 308