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 \ 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 -EL \ 72 -mhard-float \ 73 -ffunction-sections \ 74 -funwind-tables \ 75 -g \ 76 -fstack-protector \ 77 -fno-short-enums \ 78 -finline-limit=64 \ 79 -Wa,--noexecstack \ 80 -U_FORTIFY_SOURCE \ 81 -Wno-extra \ 82 -Wno-ignored-qualifiers \ 83 -Wno-type-limits \ 84 -Os \ 85 -g \ 86 -fomit-frame-pointer \ 87 -fdata-sections \ 88 -ffunction-sections 89 90 MY_DEFS_Debug := \ 91 '-DV8_DEPRECATION_WARNINGS' \ 92 '-D_FILE_OFFSET_BITS=64' \ 93 '-DNO_TCMALLOC' \ 94 '-DDISABLE_NACL' \ 95 '-DCHROMIUM_BUILD' \ 96 '-DUSE_LIBJPEG_TURBO=1' \ 97 '-DUSE_PROPRIETARY_CODECS' \ 98 '-DENABLE_CONFIGURATION_POLICY' \ 99 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 100 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 101 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 102 '-DUSE_OPENSSL=1' \ 103 '-DENABLE_EGLIMAGE=1' \ 104 '-DCLD_VERSION=1' \ 105 '-DENABLE_PRINTING=1' \ 106 '-DENABLE_MANAGED_USERS=1' \ 107 '-DPOSIX_AVOID_MMAP' \ 108 '-DLIBXML_STATIC' \ 109 '-DU_USING_ICU_NAMESPACE=0' \ 110 '-D__STDC_CONSTANT_MACROS' \ 111 '-D__STDC_FORMAT_MACROS' \ 112 '-DANDROID' \ 113 '-D__GNU_SOURCE=1' \ 114 '-DUSE_STLPORT=1' \ 115 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 116 '-DCHROME_BUILD_ID=""' \ 117 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 118 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 119 '-D_DEBUG' 120 121 122 # Include paths placed before CFLAGS/CPPFLAGS 123 LOCAL_C_INCLUDES_Debug := \ 124 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 125 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 126 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 127 $(LOCAL_PATH) \ 128 $(LOCAL_PATH)/third_party/libxml/linux/include \ 129 $(LOCAL_PATH)/third_party/libxml/src/include \ 130 $(PWD)/external/icu4c/common \ 131 $(PWD)/external/icu4c/i18n \ 132 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 133 $(PWD)/frameworks/wilhelm/include \ 134 $(PWD)/bionic \ 135 $(PWD)/external/stlport/stlport 136 137 138 # Flags passed to only C++ (and not C) files. 139 LOCAL_CPPFLAGS_Debug := \ 140 -fno-rtti \ 141 -fno-threadsafe-statics \ 142 -fvisibility-inlines-hidden \ 143 -Wsign-compare \ 144 -Wno-uninitialized \ 145 -Wno-error=c++0x-compat \ 146 -Wno-non-virtual-dtor \ 147 -Wno-sign-promo 148 149 150 # Flags passed to both C and C++ files. 151 MY_CFLAGS_Release := \ 152 -fstack-protector \ 153 --param=ssp-buffer-size=4 \ 154 \ 155 -fno-exceptions \ 156 -fno-strict-aliasing \ 157 -Wall \ 158 -Wno-unused-parameter \ 159 -Wno-missing-field-initializers \ 160 -fvisibility=hidden \ 161 -pipe \ 162 -fPIC \ 163 -EL \ 164 -mhard-float \ 165 -ffunction-sections \ 166 -funwind-tables \ 167 -g \ 168 -fstack-protector \ 169 -fno-short-enums \ 170 -finline-limit=64 \ 171 -Wa,--noexecstack \ 172 -U_FORTIFY_SOURCE \ 173 -Wno-extra \ 174 -Wno-ignored-qualifiers \ 175 -Wno-type-limits \ 176 -Os \ 177 -fno-ident \ 178 -fdata-sections \ 179 -ffunction-sections \ 180 -fomit-frame-pointer 181 182 MY_DEFS_Release := \ 183 '-DV8_DEPRECATION_WARNINGS' \ 184 '-D_FILE_OFFSET_BITS=64' \ 185 '-DNO_TCMALLOC' \ 186 '-DDISABLE_NACL' \ 187 '-DCHROMIUM_BUILD' \ 188 '-DUSE_LIBJPEG_TURBO=1' \ 189 '-DUSE_PROPRIETARY_CODECS' \ 190 '-DENABLE_CONFIGURATION_POLICY' \ 191 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 192 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 193 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 194 '-DUSE_OPENSSL=1' \ 195 '-DENABLE_EGLIMAGE=1' \ 196 '-DCLD_VERSION=1' \ 197 '-DENABLE_PRINTING=1' \ 198 '-DENABLE_MANAGED_USERS=1' \ 199 '-DPOSIX_AVOID_MMAP' \ 200 '-DLIBXML_STATIC' \ 201 '-DU_USING_ICU_NAMESPACE=0' \ 202 '-D__STDC_CONSTANT_MACROS' \ 203 '-D__STDC_FORMAT_MACROS' \ 204 '-DANDROID' \ 205 '-D__GNU_SOURCE=1' \ 206 '-DUSE_STLPORT=1' \ 207 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 208 '-DCHROME_BUILD_ID=""' \ 209 '-DNDEBUG' \ 210 '-DNVALGRIND' \ 211 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 212 '-D_FORTIFY_SOURCE=2' 213 214 215 # Include paths placed before CFLAGS/CPPFLAGS 216 LOCAL_C_INCLUDES_Release := \ 217 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 218 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 219 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 220 $(LOCAL_PATH) \ 221 $(LOCAL_PATH)/third_party/libxml/linux/include \ 222 $(LOCAL_PATH)/third_party/libxml/src/include \ 223 $(PWD)/external/icu4c/common \ 224 $(PWD)/external/icu4c/i18n \ 225 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 226 $(PWD)/frameworks/wilhelm/include \ 227 $(PWD)/bionic \ 228 $(PWD)/external/stlport/stlport 229 230 231 # Flags passed to only C++ (and not C) files. 232 LOCAL_CPPFLAGS_Release := \ 233 -fno-rtti \ 234 -fno-threadsafe-statics \ 235 -fvisibility-inlines-hidden \ 236 -Wsign-compare \ 237 -Wno-uninitialized \ 238 -Wno-error=c++0x-compat \ 239 -Wno-non-virtual-dtor \ 240 -Wno-sign-promo 241 242 243 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 244 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 245 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 246 ### Rules for final target. 247 248 LOCAL_LDFLAGS_Debug := \ 249 -Wl,-z,now \ 250 -Wl,-z,relro \ 251 -Wl,-z,noexecstack \ 252 -fPIC \ 253 -EL \ 254 -Wl,--no-keep-memory \ 255 -nostdlib \ 256 -Wl,--no-undefined \ 257 -Wl,--exclude-libs=ALL \ 258 -Wl,--fatal-warnings \ 259 -Wl,--gc-sections \ 260 -Wl,--warn-shared-textrel \ 261 -Wl,-O1 \ 262 -Wl,--as-needed 263 264 265 LOCAL_LDFLAGS_Release := \ 266 -Wl,-z,now \ 267 -Wl,-z,relro \ 268 -Wl,-z,noexecstack \ 269 -fPIC \ 270 -EL \ 271 -Wl,--no-keep-memory \ 272 -nostdlib \ 273 -Wl,--no-undefined \ 274 -Wl,--exclude-libs=ALL \ 275 -Wl,-O1 \ 276 -Wl,--as-needed \ 277 -Wl,--gc-sections \ 278 -Wl,--fatal-warnings \ 279 -Wl,--warn-shared-textrel 280 281 282 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 283 284 LOCAL_STATIC_LIBRARIES := 285 286 # Enable grouping to fix circular references 287 LOCAL_GROUP_STATIC_LIBRARIES := true 288 289 LOCAL_SHARED_LIBRARIES := \ 290 libstlport \ 291 libdl 292 293 # Add target alias to "gyp_all_modules" target. 294 .PHONY: gyp_all_modules 295 gyp_all_modules: google_apis_google_apis_gyp 296 297 # Alias gyp target name. 298 .PHONY: google_apis 299 google_apis: google_apis_google_apis_gyp 300 301 include $(BUILD_STATIC_LIBRARY) 302