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 := crypto_crypto_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 crypto/hmac.cc \ 27 crypto/secure_util.cc \ 28 crypto/curve25519.cc \ 29 crypto/curve25519-donna.c \ 30 crypto/ghash.cc \ 31 crypto/ec_private_key_openssl.cc \ 32 crypto/ec_signature_creator.cc \ 33 crypto/ec_signature_creator_openssl.cc \ 34 crypto/encryptor.cc \ 35 crypto/encryptor_openssl.cc \ 36 crypto/hkdf.cc \ 37 crypto/hmac_openssl.cc \ 38 crypto/p224_spake.cc \ 39 crypto/openssl_util.cc \ 40 crypto/p224.cc \ 41 crypto/random.cc \ 42 crypto/rsa_private_key.cc \ 43 crypto/rsa_private_key_openssl.cc \ 44 crypto/secure_hash_openssl.cc \ 45 crypto/sha2.cc \ 46 crypto/signature_creator_openssl.cc \ 47 crypto/signature_verifier_openssl.cc \ 48 crypto/symmetric_key_openssl.cc 49 50 51 # Flags passed to both C and C++ files. 52 MY_CFLAGS_Debug := \ 53 --param=ssp-buffer-size=4 \ 54 -Werror \ 55 -fno-exceptions \ 56 -fno-strict-aliasing \ 57 -Wall \ 58 -Wno-unused-parameter \ 59 -Wno-missing-field-initializers \ 60 -fvisibility=hidden \ 61 -pipe \ 62 -fPIC \ 63 -m32 \ 64 -mmmx \ 65 -march=pentium4 \ 66 -msse2 \ 67 -mfpmath=sse \ 68 -fuse-ld=gold \ 69 -ffunction-sections \ 70 -funwind-tables \ 71 -g \ 72 -fno-short-enums \ 73 -finline-limit=64 \ 74 -Wa,--noexecstack \ 75 -U_FORTIFY_SOURCE \ 76 -Wno-extra \ 77 -Wno-ignored-qualifiers \ 78 -Wno-type-limits \ 79 -fno-stack-protector \ 80 -Os \ 81 -g \ 82 -fomit-frame-pointer \ 83 -fdata-sections \ 84 -ffunction-sections 85 86 MY_DEFS_Debug := \ 87 '-DV8_DEPRECATION_WARNINGS' \ 88 '-D_FILE_OFFSET_BITS=64' \ 89 '-DNO_TCMALLOC' \ 90 '-DDISABLE_NACL' \ 91 '-DCHROMIUM_BUILD' \ 92 '-DUSE_LIBJPEG_TURBO=1' \ 93 '-DUSE_PROPRIETARY_CODECS' \ 94 '-DENABLE_CONFIGURATION_POLICY' \ 95 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 96 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 97 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 98 '-DUSE_OPENSSL=1' \ 99 '-DENABLE_EGLIMAGE=1' \ 100 '-DCLD_VERSION=1' \ 101 '-DENABLE_PRINTING=1' \ 102 '-DENABLE_MANAGED_USERS=1' \ 103 '-DCRYPTO_IMPLEMENTATION' \ 104 '-D__STDC_CONSTANT_MACROS' \ 105 '-D__STDC_FORMAT_MACROS' \ 106 '-DANDROID' \ 107 '-D__GNU_SOURCE=1' \ 108 '-DUSE_STLPORT=1' \ 109 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 110 '-DCHROME_BUILD_ID=""' \ 111 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 112 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 113 '-D_DEBUG' 114 115 116 # Include paths placed before CFLAGS/CPPFLAGS 117 LOCAL_C_INCLUDES_Debug := \ 118 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 119 $(LOCAL_PATH) \ 120 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 121 $(PWD)/frameworks/wilhelm/include \ 122 $(PWD)/bionic \ 123 $(PWD)/external/stlport/stlport 124 125 126 # Flags passed to only C++ (and not C) files. 127 LOCAL_CPPFLAGS_Debug := \ 128 -fno-rtti \ 129 -fno-threadsafe-statics \ 130 -fvisibility-inlines-hidden \ 131 -Wsign-compare \ 132 -Wno-error=c++0x-compat \ 133 -Wno-non-virtual-dtor \ 134 -Wno-sign-promo 135 136 137 # Flags passed to both C and C++ files. 138 MY_CFLAGS_Release := \ 139 --param=ssp-buffer-size=4 \ 140 -Werror \ 141 -fno-exceptions \ 142 -fno-strict-aliasing \ 143 -Wall \ 144 -Wno-unused-parameter \ 145 -Wno-missing-field-initializers \ 146 -fvisibility=hidden \ 147 -pipe \ 148 -fPIC \ 149 -m32 \ 150 -mmmx \ 151 -march=pentium4 \ 152 -msse2 \ 153 -mfpmath=sse \ 154 -fuse-ld=gold \ 155 -ffunction-sections \ 156 -funwind-tables \ 157 -g \ 158 -fno-short-enums \ 159 -finline-limit=64 \ 160 -Wa,--noexecstack \ 161 -U_FORTIFY_SOURCE \ 162 -Wno-extra \ 163 -Wno-ignored-qualifiers \ 164 -Wno-type-limits \ 165 -fno-stack-protector \ 166 -Os \ 167 -fno-ident \ 168 -fdata-sections \ 169 -ffunction-sections \ 170 -fomit-frame-pointer \ 171 -fno-unwind-tables \ 172 -fno-asynchronous-unwind-tables 173 174 MY_DEFS_Release := \ 175 '-DV8_DEPRECATION_WARNINGS' \ 176 '-D_FILE_OFFSET_BITS=64' \ 177 '-DNO_TCMALLOC' \ 178 '-DDISABLE_NACL' \ 179 '-DCHROMIUM_BUILD' \ 180 '-DUSE_LIBJPEG_TURBO=1' \ 181 '-DUSE_PROPRIETARY_CODECS' \ 182 '-DENABLE_CONFIGURATION_POLICY' \ 183 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 184 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 185 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 186 '-DUSE_OPENSSL=1' \ 187 '-DENABLE_EGLIMAGE=1' \ 188 '-DCLD_VERSION=1' \ 189 '-DENABLE_PRINTING=1' \ 190 '-DENABLE_MANAGED_USERS=1' \ 191 '-DCRYPTO_IMPLEMENTATION' \ 192 '-D__STDC_CONSTANT_MACROS' \ 193 '-D__STDC_FORMAT_MACROS' \ 194 '-DANDROID' \ 195 '-D__GNU_SOURCE=1' \ 196 '-DUSE_STLPORT=1' \ 197 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 198 '-DCHROME_BUILD_ID=""' \ 199 '-DNDEBUG' \ 200 '-DNVALGRIND' \ 201 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 202 '-D_FORTIFY_SOURCE=2' 203 204 205 # Include paths placed before CFLAGS/CPPFLAGS 206 LOCAL_C_INCLUDES_Release := \ 207 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 208 $(LOCAL_PATH) \ 209 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 210 $(PWD)/frameworks/wilhelm/include \ 211 $(PWD)/bionic \ 212 $(PWD)/external/stlport/stlport 213 214 215 # Flags passed to only C++ (and not C) files. 216 LOCAL_CPPFLAGS_Release := \ 217 -fno-rtti \ 218 -fno-threadsafe-statics \ 219 -fvisibility-inlines-hidden \ 220 -Wsign-compare \ 221 -Wno-error=c++0x-compat \ 222 -Wno-non-virtual-dtor \ 223 -Wno-sign-promo 224 225 226 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 227 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 228 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 229 ### Rules for final target. 230 231 LOCAL_LDFLAGS_Debug := \ 232 -Wl,-z,now \ 233 -Wl,-z,relro \ 234 -Wl,-z,noexecstack \ 235 -fPIC \ 236 -m32 \ 237 -fuse-ld=gold \ 238 -nostdlib \ 239 -Wl,--no-undefined \ 240 -Wl,--exclude-libs=ALL \ 241 -Wl,--fatal-warnings \ 242 -Wl,--gc-sections \ 243 -Wl,--warn-shared-textrel \ 244 -Wl,-O1 \ 245 -Wl,--as-needed 246 247 248 LOCAL_LDFLAGS_Release := \ 249 -Wl,-z,now \ 250 -Wl,-z,relro \ 251 -Wl,-z,noexecstack \ 252 -fPIC \ 253 -m32 \ 254 -fuse-ld=gold \ 255 -nostdlib \ 256 -Wl,--no-undefined \ 257 -Wl,--exclude-libs=ALL \ 258 -Wl,-O1 \ 259 -Wl,--as-needed \ 260 -Wl,--gc-sections \ 261 -Wl,--fatal-warnings \ 262 -Wl,--warn-shared-textrel 263 264 265 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 266 267 LOCAL_STATIC_LIBRARIES := \ 268 cpufeatures 269 270 # Enable grouping to fix circular references 271 LOCAL_GROUP_STATIC_LIBRARIES := true 272 273 LOCAL_SHARED_LIBRARIES := \ 274 libstlport \ 275 libdl 276 277 # Add target alias to "gyp_all_modules" target. 278 .PHONY: gyp_all_modules 279 gyp_all_modules: crypto_crypto_gyp 280 281 # Alias gyp target name. 282 .PHONY: crypto 283 crypto: crypto_crypto_gyp 284 285 include $(BUILD_STATIC_LIBRARY) 286