1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_libsrtp_libsrtp_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_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_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. 53MY_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 -ffunction-sections \ 65 -funwind-tables \ 66 -g \ 67 -fno-short-enums \ 68 -finline-limit=64 \ 69 -Wa,--noexecstack \ 70 -U_FORTIFY_SOURCE \ 71 -Wno-extra \ 72 -Wno-ignored-qualifiers \ 73 -Wno-type-limits \ 74 -Wno-unused-but-set-variable \ 75 -Wno-address \ 76 -Wno-format-security \ 77 -Wno-return-type \ 78 -Wno-sequence-point \ 79 -Os \ 80 -g \ 81 -fdata-sections \ 82 -ffunction-sections \ 83 -funwind-tables 84 85MY_DEFS_Debug := \ 86 '-DHAVE_STDLIB_H' \ 87 '-DHAVE_STRING_H' \ 88 '-DV8_DEPRECATION_WARNINGS' \ 89 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 90 '-D_FILE_OFFSET_BITS=64' \ 91 '-DNO_TCMALLOC' \ 92 '-DDISABLE_NACL' \ 93 '-DHAVE_INT16_T' \ 94 '-DHAVE_INT32_T' \ 95 '-DHAVE_INT8_T' \ 96 '-DHAVE_UINT16_T' \ 97 '-DHAVE_UINT32_T' \ 98 '-DHAVE_UINT64_T' \ 99 '-DHAVE_UINT8_T' \ 100 '-DHAVE_STDINT_H' \ 101 '-DHAVE_INTTYPES_H' \ 102 '-DHAVE_NETINET_IN_H' \ 103 '-DINLINE=inline' \ 104 '-DCPU_CISC' \ 105 '-DCHROMIUM_BUILD' \ 106 '-DUSE_LIBJPEG_TURBO=1' \ 107 '-DENABLE_WEBRTC=1' \ 108 '-DUSE_PROPRIETARY_CODECS' \ 109 '-DENABLE_BROWSER_CDMS' \ 110 '-DENABLE_CONFIGURATION_POLICY' \ 111 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 112 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 113 '-DENABLE_EGLIMAGE=1' \ 114 '-DCLD_VERSION=1' \ 115 '-DENABLE_PRINTING=1' \ 116 '-DENABLE_MANAGED_USERS=1' \ 117 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 118 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 119 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 120 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 121 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 122 '-DVIDEO_HOLE=1' \ 123 '-DUSE_OPENSSL=1' \ 124 '-DUSE_OPENSSL_CERTS=1' \ 125 '-DANDROID' \ 126 '-D__GNU_SOURCE=1' \ 127 '-DUSE_STLPORT=1' \ 128 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 129 '-DCHROME_BUILD_ID=""' \ 130 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 131 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 132 '-D_DEBUG' 133 134 135# Include paths placed before CFLAGS/CPPFLAGS 136LOCAL_C_INCLUDES_Debug := \ 137 $(LOCAL_PATH)/third_party/libsrtp/config \ 138 $(LOCAL_PATH)/third_party/libsrtp/srtp/include \ 139 $(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \ 140 $(gyp_shared_intermediate_dir) \ 141 $(PWD)/frameworks/wilhelm/include \ 142 $(PWD)/bionic \ 143 $(PWD)/external/stlport/stlport 144 145 146# Flags passed to only C++ (and not C) files. 147LOCAL_CPPFLAGS_Debug := \ 148 -fno-rtti \ 149 -fno-threadsafe-statics \ 150 -fvisibility-inlines-hidden \ 151 -Wno-deprecated \ 152 -Wno-non-virtual-dtor \ 153 -Wno-sign-promo \ 154 -Wno-non-virtual-dtor 155 156 157LOCAL_FDO_SUPPORT_Debug := false 158 159# Flags passed to both C and C++ files. 160MY_CFLAGS_Release := \ 161 --param=ssp-buffer-size=4 \ 162 -fno-exceptions \ 163 -fno-strict-aliasing \ 164 -Wno-unused-parameter \ 165 -Wno-missing-field-initializers \ 166 -fvisibility=hidden \ 167 -pipe \ 168 -fPIC \ 169 -Wno-unused-local-typedefs \ 170 -Wno-format \ 171 -ffunction-sections \ 172 -funwind-tables \ 173 -g \ 174 -fno-short-enums \ 175 -finline-limit=64 \ 176 -Wa,--noexecstack \ 177 -U_FORTIFY_SOURCE \ 178 -Wno-extra \ 179 -Wno-ignored-qualifiers \ 180 -Wno-type-limits \ 181 -Wno-unused-but-set-variable \ 182 -Wno-address \ 183 -Wno-format-security \ 184 -Wno-return-type \ 185 -Wno-sequence-point \ 186 -Os \ 187 -fno-ident \ 188 -fdata-sections \ 189 -ffunction-sections \ 190 -funwind-tables 191 192MY_DEFS_Release := \ 193 '-DHAVE_STDLIB_H' \ 194 '-DHAVE_STRING_H' \ 195 '-DV8_DEPRECATION_WARNINGS' \ 196 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 197 '-D_FILE_OFFSET_BITS=64' \ 198 '-DNO_TCMALLOC' \ 199 '-DDISABLE_NACL' \ 200 '-DHAVE_INT16_T' \ 201 '-DHAVE_INT32_T' \ 202 '-DHAVE_INT8_T' \ 203 '-DHAVE_UINT16_T' \ 204 '-DHAVE_UINT32_T' \ 205 '-DHAVE_UINT64_T' \ 206 '-DHAVE_UINT8_T' \ 207 '-DHAVE_STDINT_H' \ 208 '-DHAVE_INTTYPES_H' \ 209 '-DHAVE_NETINET_IN_H' \ 210 '-DINLINE=inline' \ 211 '-DCPU_CISC' \ 212 '-DCHROMIUM_BUILD' \ 213 '-DUSE_LIBJPEG_TURBO=1' \ 214 '-DENABLE_WEBRTC=1' \ 215 '-DUSE_PROPRIETARY_CODECS' \ 216 '-DENABLE_BROWSER_CDMS' \ 217 '-DENABLE_CONFIGURATION_POLICY' \ 218 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 219 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 220 '-DENABLE_EGLIMAGE=1' \ 221 '-DCLD_VERSION=1' \ 222 '-DENABLE_PRINTING=1' \ 223 '-DENABLE_MANAGED_USERS=1' \ 224 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 225 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 226 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 227 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 228 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 229 '-DVIDEO_HOLE=1' \ 230 '-DUSE_OPENSSL=1' \ 231 '-DUSE_OPENSSL_CERTS=1' \ 232 '-DANDROID' \ 233 '-D__GNU_SOURCE=1' \ 234 '-DUSE_STLPORT=1' \ 235 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 236 '-DCHROME_BUILD_ID=""' \ 237 '-DNDEBUG' \ 238 '-DNVALGRIND' \ 239 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 240 241 242# Include paths placed before CFLAGS/CPPFLAGS 243LOCAL_C_INCLUDES_Release := \ 244 $(LOCAL_PATH)/third_party/libsrtp/config \ 245 $(LOCAL_PATH)/third_party/libsrtp/srtp/include \ 246 $(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \ 247 $(gyp_shared_intermediate_dir) \ 248 $(PWD)/frameworks/wilhelm/include \ 249 $(PWD)/bionic \ 250 $(PWD)/external/stlport/stlport 251 252 253# Flags passed to only C++ (and not C) files. 254LOCAL_CPPFLAGS_Release := \ 255 -fno-rtti \ 256 -fno-threadsafe-statics \ 257 -fvisibility-inlines-hidden \ 258 -Wno-deprecated \ 259 -Wno-non-virtual-dtor \ 260 -Wno-sign-promo \ 261 -Wno-non-virtual-dtor 262 263 264LOCAL_FDO_SUPPORT_Release := false 265 266LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 267LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 268LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 269LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 270LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 271### Rules for final target. 272 273LOCAL_LDFLAGS_Debug := \ 274 -Wl,-z,now \ 275 -Wl,-z,relro \ 276 -Wl,--fatal-warnings \ 277 -Wl,-z,noexecstack \ 278 -fPIC \ 279 -nostdlib \ 280 -Wl,--no-undefined \ 281 -Wl,--exclude-libs=ALL \ 282 -Wl,--warn-shared-textrel \ 283 -Wl,-O1 \ 284 -Wl,--as-needed 285 286 287LOCAL_LDFLAGS_Release := \ 288 -Wl,-z,now \ 289 -Wl,-z,relro \ 290 -Wl,--fatal-warnings \ 291 -Wl,-z,noexecstack \ 292 -fPIC \ 293 -nostdlib \ 294 -Wl,--no-undefined \ 295 -Wl,--exclude-libs=ALL \ 296 -Wl,-O1 \ 297 -Wl,--as-needed \ 298 -Wl,--gc-sections \ 299 -Wl,--warn-shared-textrel 300 301 302LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 303 304LOCAL_STATIC_LIBRARIES := 305 306# Enable grouping to fix circular references 307LOCAL_GROUP_STATIC_LIBRARIES := true 308 309LOCAL_SHARED_LIBRARIES := \ 310 libstlport \ 311 libdl 312 313# Add target alias to "gyp_all_modules" target. 314.PHONY: gyp_all_modules 315gyp_all_modules: third_party_libsrtp_libsrtp_gyp 316 317# Alias gyp target name. 318.PHONY: libsrtp 319libsrtp: third_party_libsrtp_libsrtp_gyp 320 321include $(BUILD_STATIC_LIBRARY) 322