Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 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 := \ |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 26 | google_apis/cup/client_update_protocol.cc \ |
| 27 | google_apis/cup/client_update_protocol_openssl.cc \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 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) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 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 \ |
Torne (Richard Coles) | 424c4d7 | 2013-08-30 15:14:49 +0100 | [diff] [blame] | 40 | google_apis/gaia/oauth2_token_service.cc \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 41 | google_apis/google_api_keys.cc |
| 42 | |
| 43 | |
| 44 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 45 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 46 | -fstack-protector \ |
| 47 | --param=ssp-buffer-size=4 \ |
| 48 | -Werror \ |
| 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 | -fno-tree-sra \ |
| 58 | -fuse-ld=gold \ |
| 59 | -Wno-psabi \ |
| 60 | -ffunction-sections \ |
| 61 | -funwind-tables \ |
| 62 | -g \ |
| 63 | -fstack-protector \ |
| 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 | -Os \ |
| 72 | -g \ |
| 73 | -fomit-frame-pointer \ |
| 74 | -fdata-sections \ |
| 75 | -ffunction-sections |
| 76 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 77 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 78 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 79 | '-D_FILE_OFFSET_BITS=64' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 80 | '-DNO_TCMALLOC' \ |
| 81 | '-DDISABLE_NACL' \ |
| 82 | '-DCHROMIUM_BUILD' \ |
| 83 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 84 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 85 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 86 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 87 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 88 | '-DUSE_OPENSSL=1' \ |
| 89 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 90 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 91 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 92 | '-DPOSIX_AVOID_MMAP' \ |
| 93 | '-D__STDC_CONSTANT_MACROS' \ |
| 94 | '-D__STDC_FORMAT_MACROS' \ |
| 95 | '-DANDROID' \ |
| 96 | '-D__GNU_SOURCE=1' \ |
| 97 | '-DUSE_STLPORT=1' \ |
| 98 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 99 | '-DCHROME_BUILD_ID=""' \ |
| 100 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 101 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 102 | '-D_DEBUG' |
| 103 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 104 | |
| 105 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 106 | LOCAL_C_INCLUDES_Debug := \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 107 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 108 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 109 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 110 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 111 | $(LOCAL_PATH)/third_party/openssl/openssl/include \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 112 | $(PWD)/frameworks/wilhelm/include \ |
| 113 | $(PWD)/bionic \ |
| 114 | $(PWD)/external/stlport/stlport |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 115 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 116 | |
| 117 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 118 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 119 | -fno-rtti \ |
| 120 | -fno-threadsafe-statics \ |
| 121 | -fvisibility-inlines-hidden \ |
| 122 | -Wsign-compare \ |
| 123 | -Wno-abi \ |
| 124 | -Wno-error=c++0x-compat \ |
| 125 | -Wno-non-virtual-dtor \ |
| 126 | -Wno-sign-promo |
| 127 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 128 | |
| 129 | # Flags passed to both C and C++ files. |
| 130 | MY_CFLAGS_Release := \ |
| 131 | -fstack-protector \ |
| 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 | -fno-tree-sra \ |
| 143 | -fuse-ld=gold \ |
| 144 | -Wno-psabi \ |
| 145 | -ffunction-sections \ |
| 146 | -funwind-tables \ |
| 147 | -g \ |
| 148 | -fstack-protector \ |
| 149 | -fno-short-enums \ |
| 150 | -finline-limit=64 \ |
| 151 | -Wa,--noexecstack \ |
| 152 | -U_FORTIFY_SOURCE \ |
| 153 | -Wno-extra \ |
| 154 | -Wno-ignored-qualifiers \ |
| 155 | -Wno-type-limits \ |
| 156 | -Os \ |
| 157 | -fno-ident \ |
| 158 | -fdata-sections \ |
| 159 | -ffunction-sections \ |
| 160 | -fomit-frame-pointer |
| 161 | |
| 162 | MY_DEFS_Release := \ |
| 163 | '-DANGLE_DX11' \ |
| 164 | '-D_FILE_OFFSET_BITS=64' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 165 | '-DNO_TCMALLOC' \ |
| 166 | '-DDISABLE_NACL' \ |
| 167 | '-DCHROMIUM_BUILD' \ |
| 168 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 169 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 170 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 171 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 172 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 173 | '-DUSE_OPENSSL=1' \ |
| 174 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 175 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 176 | '-DENABLE_MANAGED_USERS=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 177 | '-DPOSIX_AVOID_MMAP' \ |
| 178 | '-D__STDC_CONSTANT_MACROS' \ |
| 179 | '-D__STDC_FORMAT_MACROS' \ |
| 180 | '-DANDROID' \ |
| 181 | '-D__GNU_SOURCE=1' \ |
| 182 | '-DUSE_STLPORT=1' \ |
| 183 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 184 | '-DCHROME_BUILD_ID=""' \ |
| 185 | '-DNDEBUG' \ |
| 186 | '-DNVALGRIND' \ |
| 187 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 188 | '-D_FORTIFY_SOURCE=2' |
| 189 | |
| 190 | |
| 191 | # Include paths placed before CFLAGS/CPPFLAGS |
| 192 | LOCAL_C_INCLUDES_Release := \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 193 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 194 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 195 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 196 | $(LOCAL_PATH) \ |
| 197 | $(LOCAL_PATH)/third_party/openssl/openssl/include \ |
| 198 | $(PWD)/frameworks/wilhelm/include \ |
| 199 | $(PWD)/bionic \ |
| 200 | $(PWD)/external/stlport/stlport |
| 201 | |
| 202 | |
| 203 | # Flags passed to only C++ (and not C) files. |
| 204 | LOCAL_CPPFLAGS_Release := \ |
| 205 | -fno-rtti \ |
| 206 | -fno-threadsafe-statics \ |
| 207 | -fvisibility-inlines-hidden \ |
| 208 | -Wsign-compare \ |
| 209 | -Wno-abi \ |
| 210 | -Wno-error=c++0x-compat \ |
| 211 | -Wno-non-virtual-dtor \ |
| 212 | -Wno-sign-promo |
| 213 | |
| 214 | |
| 215 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 216 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 217 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 218 | ### Rules for final target. |
| 219 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 220 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 221 | -Wl,-z,now \ |
| 222 | -Wl,-z,relro \ |
| 223 | -Wl,-z,noexecstack \ |
| 224 | -fPIC \ |
| 225 | -Wl,-z,relro \ |
| 226 | -Wl,-z,now \ |
| 227 | -fuse-ld=gold \ |
| 228 | -nostdlib \ |
| 229 | -Wl,--no-undefined \ |
| 230 | -Wl,--exclude-libs=ALL \ |
| 231 | -Wl,--icf=safe \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 232 | -Wl,--fatal-warnings \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 233 | -Wl,--gc-sections \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 234 | -Wl,--warn-shared-textrel \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 235 | -Wl,-O1 \ |
| 236 | -Wl,--as-needed |
| 237 | |
| 238 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 239 | LOCAL_LDFLAGS_Release := \ |
| 240 | -Wl,-z,now \ |
| 241 | -Wl,-z,relro \ |
| 242 | -Wl,-z,noexecstack \ |
| 243 | -fPIC \ |
| 244 | -Wl,-z,relro \ |
| 245 | -Wl,-z,now \ |
| 246 | -fuse-ld=gold \ |
| 247 | -nostdlib \ |
| 248 | -Wl,--no-undefined \ |
| 249 | -Wl,--exclude-libs=ALL \ |
| 250 | -Wl,--icf=safe \ |
| 251 | -Wl,-O1 \ |
| 252 | -Wl,--as-needed \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 253 | -Wl,--gc-sections \ |
| 254 | -Wl,--fatal-warnings \ |
| 255 | -Wl,--warn-shared-textrel |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 256 | |
| 257 | |
| 258 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 259 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 260 | LOCAL_STATIC_LIBRARIES := |
| 261 | |
| 262 | # Enable grouping to fix circular references |
| 263 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 264 | |
| 265 | LOCAL_SHARED_LIBRARIES := \ |
| 266 | libstlport \ |
| 267 | libdl |
| 268 | |
| 269 | # Add target alias to "gyp_all_modules" target. |
| 270 | .PHONY: gyp_all_modules |
| 271 | gyp_all_modules: google_apis_google_apis_gyp |
| 272 | |
| 273 | # Alias gyp target name. |
| 274 | .PHONY: google_apis |
| 275 | google_apis: google_apis_google_apis_gyp |
| 276 | |
| 277 | include $(BUILD_STATIC_LIBRARY) |