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