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 := third_party_libsrtp_libsrtp_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 third_party/libsrtp/srtp/srtp/ekt.c \ 27 third_party/libsrtp/srtp/srtp/srtp.c \ 28 third_party/libsrtp/srtp/crypto/cipher/aes.c \ 29 third_party/libsrtp/srtp/crypto/cipher/aes_cbc.c \ 30 third_party/libsrtp/srtp/crypto/cipher/aes_icm.c \ 31 third_party/libsrtp/srtp/crypto/cipher/cipher.c \ 32 third_party/libsrtp/srtp/crypto/cipher/null_cipher.c \ 33 third_party/libsrtp/srtp/crypto/hash/auth.c \ 34 third_party/libsrtp/srtp/crypto/hash/hmac.c \ 35 third_party/libsrtp/srtp/crypto/hash/null_auth.c \ 36 third_party/libsrtp/srtp/crypto/hash/sha1.c \ 37 third_party/libsrtp/srtp/crypto/kernel/alloc.c \ 38 third_party/libsrtp/srtp/crypto/kernel/crypto_kernel.c \ 39 third_party/libsrtp/srtp/crypto/kernel/err.c \ 40 third_party/libsrtp/srtp/crypto/kernel/key.c \ 41 third_party/libsrtp/srtp/crypto/math/datatypes.c \ 42 third_party/libsrtp/srtp/crypto/math/gf2_8.c \ 43 third_party/libsrtp/srtp/crypto/math/stat.c \ 44 third_party/libsrtp/srtp/crypto/replay/rdb.c \ 45 third_party/libsrtp/srtp/crypto/replay/rdbx.c \ 46 third_party/libsrtp/srtp/crypto/replay/ut_sim.c \ 47 third_party/libsrtp/srtp/crypto/rng/ctr_prng.c \ 48 third_party/libsrtp/srtp/crypto/rng/prng.c \ 49 third_party/libsrtp/srtp/crypto/rng/rand_source.c 50 51 52 # Flags passed to both C and C++ files. 53 MY_CFLAGS_Debug := \ 54 --param=ssp-buffer-size=4 \ 55 -fno-exceptions \ 56 -fno-strict-aliasing \ 57 -Wno-unused-parameter \ 58 -Wno-missing-field-initializers \ 59 -fvisibility=hidden \ 60 -pipe \ 61 -fPIC \ 62 -Wno-unused-local-typedefs \ 63 -Wno-format \ 64 -msse2 \ 65 -mfpmath=sse \ 66 -mmmx \ 67 -m32 \ 68 -ffunction-sections \ 69 -funwind-tables \ 70 -g \ 71 -fno-short-enums \ 72 -finline-limit=64 \ 73 -Wa,--noexecstack \ 74 -U_FORTIFY_SOURCE \ 75 -Wno-extra \ 76 -Wno-ignored-qualifiers \ 77 -Wno-type-limits \ 78 -Wno-unused-but-set-variable \ 79 -fno-stack-protector \ 80 -Wno-address \ 81 -Wno-format-security \ 82 -Wno-return-type \ 83 -Wno-sequence-point \ 84 -Os \ 85 -g \ 86 -fdata-sections \ 87 -ffunction-sections \ 88 -fomit-frame-pointer \ 89 -funwind-tables 90 91 MY_DEFS_Debug := \ 92 '-DHAVE_STDLIB_H' \ 93 '-DHAVE_STRING_H' \ 94 '-DV8_DEPRECATION_WARNINGS' \ 95 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 96 '-D_FILE_OFFSET_BITS=64' \ 97 '-DNO_TCMALLOC' \ 98 '-DDISABLE_NACL' \ 99 '-DHAVE_INT16_T' \ 100 '-DHAVE_INT32_T' \ 101 '-DHAVE_INT8_T' \ 102 '-DHAVE_UINT16_T' \ 103 '-DHAVE_UINT32_T' \ 104 '-DHAVE_UINT64_T' \ 105 '-DHAVE_UINT8_T' \ 106 '-DHAVE_STDINT_H' \ 107 '-DHAVE_INTTYPES_H' \ 108 '-DHAVE_NETINET_IN_H' \ 109 '-DINLINE=inline' \ 110 '-DCPU_CISC' \ 111 '-DCHROMIUM_BUILD' \ 112 '-DUSE_LIBJPEG_TURBO=1' \ 113 '-DENABLE_WEBRTC=1' \ 114 '-DUSE_PROPRIETARY_CODECS' \ 115 '-DENABLE_BROWSER_CDMS' \ 116 '-DENABLE_CONFIGURATION_POLICY' \ 117 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 118 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 119 '-DENABLE_EGLIMAGE=1' \ 120 '-DCLD_VERSION=1' \ 121 '-DENABLE_PRINTING=1' \ 122 '-DENABLE_MANAGED_USERS=1' \ 123 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 124 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 125 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 126 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 127 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 128 '-DVIDEO_HOLE=1' \ 129 '-DUSE_OPENSSL=1' \ 130 '-DUSE_OPENSSL_CERTS=1' \ 131 '-DANDROID' \ 132 '-D__GNU_SOURCE=1' \ 133 '-DUSE_STLPORT=1' \ 134 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 135 '-DCHROME_BUILD_ID=""' \ 136 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 137 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 138 '-D_DEBUG' 139 140 141 # Include paths placed before CFLAGS/CPPFLAGS 142 LOCAL_C_INCLUDES_Debug := \ 143 $(LOCAL_PATH)/third_party/libsrtp/config \ 144 $(LOCAL_PATH)/third_party/libsrtp/srtp/include \ 145 $(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \ 146 $(gyp_shared_intermediate_dir) \ 147 $(PWD)/frameworks/wilhelm/include \ 148 $(PWD)/bionic \ 149 $(PWD)/external/stlport/stlport 150 151 152 # Flags passed to only C++ (and not C) files. 153 LOCAL_CPPFLAGS_Debug := \ 154 -fno-rtti \ 155 -fno-threadsafe-statics \ 156 -fvisibility-inlines-hidden \ 157 -Wno-deprecated \ 158 -Wno-non-virtual-dtor \ 159 -Wno-sign-promo \ 160 -Wno-non-virtual-dtor 161 162 163 LOCAL_FDO_SUPPORT_Debug := false 164 165 # Flags passed to both C and C++ files. 166 MY_CFLAGS_Release := \ 167 --param=ssp-buffer-size=4 \ 168 -fno-exceptions \ 169 -fno-strict-aliasing \ 170 -Wno-unused-parameter \ 171 -Wno-missing-field-initializers \ 172 -fvisibility=hidden \ 173 -pipe \ 174 -fPIC \ 175 -Wno-unused-local-typedefs \ 176 -Wno-format \ 177 -msse2 \ 178 -mfpmath=sse \ 179 -mmmx \ 180 -m32 \ 181 -ffunction-sections \ 182 -funwind-tables \ 183 -g \ 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 -fno-stack-protector \ 193 -Wno-address \ 194 -Wno-format-security \ 195 -Wno-return-type \ 196 -Wno-sequence-point \ 197 -Os \ 198 -fno-ident \ 199 -fdata-sections \ 200 -ffunction-sections \ 201 -fomit-frame-pointer \ 202 -funwind-tables 203 204 MY_DEFS_Release := \ 205 '-DHAVE_STDLIB_H' \ 206 '-DHAVE_STRING_H' \ 207 '-DV8_DEPRECATION_WARNINGS' \ 208 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 209 '-D_FILE_OFFSET_BITS=64' \ 210 '-DNO_TCMALLOC' \ 211 '-DDISABLE_NACL' \ 212 '-DHAVE_INT16_T' \ 213 '-DHAVE_INT32_T' \ 214 '-DHAVE_INT8_T' \ 215 '-DHAVE_UINT16_T' \ 216 '-DHAVE_UINT32_T' \ 217 '-DHAVE_UINT64_T' \ 218 '-DHAVE_UINT8_T' \ 219 '-DHAVE_STDINT_H' \ 220 '-DHAVE_INTTYPES_H' \ 221 '-DHAVE_NETINET_IN_H' \ 222 '-DINLINE=inline' \ 223 '-DCPU_CISC' \ 224 '-DCHROMIUM_BUILD' \ 225 '-DUSE_LIBJPEG_TURBO=1' \ 226 '-DENABLE_WEBRTC=1' \ 227 '-DUSE_PROPRIETARY_CODECS' \ 228 '-DENABLE_BROWSER_CDMS' \ 229 '-DENABLE_CONFIGURATION_POLICY' \ 230 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 231 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 232 '-DENABLE_EGLIMAGE=1' \ 233 '-DCLD_VERSION=1' \ 234 '-DENABLE_PRINTING=1' \ 235 '-DENABLE_MANAGED_USERS=1' \ 236 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 237 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 238 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 239 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 240 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 241 '-DVIDEO_HOLE=1' \ 242 '-DUSE_OPENSSL=1' \ 243 '-DUSE_OPENSSL_CERTS=1' \ 244 '-DANDROID' \ 245 '-D__GNU_SOURCE=1' \ 246 '-DUSE_STLPORT=1' \ 247 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 248 '-DCHROME_BUILD_ID=""' \ 249 '-DNDEBUG' \ 250 '-DNVALGRIND' \ 251 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 252 253 254 # Include paths placed before CFLAGS/CPPFLAGS 255 LOCAL_C_INCLUDES_Release := \ 256 $(LOCAL_PATH)/third_party/libsrtp/config \ 257 $(LOCAL_PATH)/third_party/libsrtp/srtp/include \ 258 $(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \ 259 $(gyp_shared_intermediate_dir) \ 260 $(PWD)/frameworks/wilhelm/include \ 261 $(PWD)/bionic \ 262 $(PWD)/external/stlport/stlport 263 264 265 # Flags passed to only C++ (and not C) files. 266 LOCAL_CPPFLAGS_Release := \ 267 -fno-rtti \ 268 -fno-threadsafe-statics \ 269 -fvisibility-inlines-hidden \ 270 -Wno-deprecated \ 271 -Wno-non-virtual-dtor \ 272 -Wno-sign-promo \ 273 -Wno-non-virtual-dtor 274 275 276 LOCAL_FDO_SUPPORT_Release := false 277 278 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 279 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 280 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 281 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 282 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 283 ### Rules for final target. 284 285 LOCAL_LDFLAGS_Debug := \ 286 -Wl,-z,now \ 287 -Wl,-z,relro \ 288 -Wl,--fatal-warnings \ 289 -Wl,-z,noexecstack \ 290 -fPIC \ 291 -m32 \ 292 -fuse-ld=gold \ 293 -nostdlib \ 294 -Wl,--no-undefined \ 295 -Wl,--exclude-libs=ALL \ 296 -Wl,--warn-shared-textrel \ 297 -Wl,-O1 \ 298 -Wl,--as-needed 299 300 301 LOCAL_LDFLAGS_Release := \ 302 -Wl,-z,now \ 303 -Wl,-z,relro \ 304 -Wl,--fatal-warnings \ 305 -Wl,-z,noexecstack \ 306 -fPIC \ 307 -m32 \ 308 -fuse-ld=gold \ 309 -nostdlib \ 310 -Wl,--no-undefined \ 311 -Wl,--exclude-libs=ALL \ 312 -Wl,-O1 \ 313 -Wl,--as-needed \ 314 -Wl,--gc-sections \ 315 -Wl,--warn-shared-textrel 316 317 318 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 319 320 LOCAL_STATIC_LIBRARIES := 321 322 # Enable grouping to fix circular references 323 LOCAL_GROUP_STATIC_LIBRARIES := true 324 325 LOCAL_SHARED_LIBRARIES := \ 326 libstlport \ 327 libdl 328 329 # Add target alias to "gyp_all_modules" target. 330 .PHONY: gyp_all_modules 331 gyp_all_modules: third_party_libsrtp_libsrtp_gyp 332 333 # Alias gyp target name. 334 .PHONY: libsrtp 335 libsrtp: third_party_libsrtp_libsrtp_gyp 336 337 include $(BUILD_STATIC_LIBRARY) 338