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