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 -fstack-protector \ 55 --param=ssp-buffer-size=4 \ 56 \ 57 -fno-exceptions \ 58 -fno-strict-aliasing \ 59 -Wno-unused-parameter \ 60 -Wno-missing-field-initializers \ 61 -fvisibility=hidden \ 62 -pipe \ 63 -fPIC \ 64 -Wno-unused-local-typedefs \ 65 -Wno-format \ 66 -EL \ 67 -mhard-float \ 68 -ffunction-sections \ 69 -funwind-tables \ 70 -g \ 71 -fstack-protector \ 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 -Wno-unused-but-set-variable \ 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_RISC' \ 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-uninitialized \ 159 -Wno-non-virtual-dtor \ 160 -Wno-sign-promo \ 161 -Wno-non-virtual-dtor 162 163 164 LOCAL_FDO_SUPPORT_Debug := false 165 166 # Flags passed to both C and C++ files. 167 MY_CFLAGS_Release := \ 168 -fstack-protector \ 169 --param=ssp-buffer-size=4 \ 170 \ 171 -fno-exceptions \ 172 -fno-strict-aliasing \ 173 -Wno-unused-parameter \ 174 -Wno-missing-field-initializers \ 175 -fvisibility=hidden \ 176 -pipe \ 177 -fPIC \ 178 -Wno-unused-local-typedefs \ 179 -Wno-format \ 180 -EL \ 181 -mhard-float \ 182 -ffunction-sections \ 183 -funwind-tables \ 184 -g \ 185 -fstack-protector \ 186 -fno-short-enums \ 187 -finline-limit=64 \ 188 -Wa,--noexecstack \ 189 -U_FORTIFY_SOURCE \ 190 -Wno-extra \ 191 -Wno-ignored-qualifiers \ 192 -Wno-type-limits \ 193 -Wno-unused-but-set-variable \ 194 -Wno-address \ 195 -Wno-format-security \ 196 -Wno-return-type \ 197 -Wno-sequence-point \ 198 -Os \ 199 -fno-ident \ 200 -fdata-sections \ 201 -ffunction-sections \ 202 -fomit-frame-pointer \ 203 -funwind-tables 204 205 MY_DEFS_Release := \ 206 '-DHAVE_STDLIB_H' \ 207 '-DHAVE_STRING_H' \ 208 '-DV8_DEPRECATION_WARNINGS' \ 209 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 210 '-D_FILE_OFFSET_BITS=64' \ 211 '-DNO_TCMALLOC' \ 212 '-DDISABLE_NACL' \ 213 '-DHAVE_INT16_T' \ 214 '-DHAVE_INT32_T' \ 215 '-DHAVE_INT8_T' \ 216 '-DHAVE_UINT16_T' \ 217 '-DHAVE_UINT32_T' \ 218 '-DHAVE_UINT64_T' \ 219 '-DHAVE_UINT8_T' \ 220 '-DHAVE_STDINT_H' \ 221 '-DHAVE_INTTYPES_H' \ 222 '-DHAVE_NETINET_IN_H' \ 223 '-DINLINE=inline' \ 224 '-DCPU_RISC' \ 225 '-DCHROMIUM_BUILD' \ 226 '-DUSE_LIBJPEG_TURBO=1' \ 227 '-DENABLE_WEBRTC=1' \ 228 '-DUSE_PROPRIETARY_CODECS' \ 229 '-DENABLE_BROWSER_CDMS' \ 230 '-DENABLE_CONFIGURATION_POLICY' \ 231 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 232 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 233 '-DENABLE_EGLIMAGE=1' \ 234 '-DCLD_VERSION=1' \ 235 '-DENABLE_PRINTING=1' \ 236 '-DENABLE_MANAGED_USERS=1' \ 237 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 238 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 239 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 240 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 241 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 242 '-DVIDEO_HOLE=1' \ 243 '-DUSE_OPENSSL=1' \ 244 '-DUSE_OPENSSL_CERTS=1' \ 245 '-DANDROID' \ 246 '-D__GNU_SOURCE=1' \ 247 '-DUSE_STLPORT=1' \ 248 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 249 '-DCHROME_BUILD_ID=""' \ 250 '-DNDEBUG' \ 251 '-DNVALGRIND' \ 252 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 253 254 255 # Include paths placed before CFLAGS/CPPFLAGS 256 LOCAL_C_INCLUDES_Release := \ 257 $(LOCAL_PATH)/third_party/libsrtp/config \ 258 $(LOCAL_PATH)/third_party/libsrtp/srtp/include \ 259 $(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \ 260 $(gyp_shared_intermediate_dir) \ 261 $(PWD)/frameworks/wilhelm/include \ 262 $(PWD)/bionic \ 263 $(PWD)/external/stlport/stlport 264 265 266 # Flags passed to only C++ (and not C) files. 267 LOCAL_CPPFLAGS_Release := \ 268 -fno-rtti \ 269 -fno-threadsafe-statics \ 270 -fvisibility-inlines-hidden \ 271 -Wno-deprecated \ 272 -Wno-uninitialized \ 273 -Wno-non-virtual-dtor \ 274 -Wno-sign-promo \ 275 -Wno-non-virtual-dtor 276 277 278 LOCAL_FDO_SUPPORT_Release := false 279 280 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 281 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 282 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 283 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 284 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 285 ### Rules for final target. 286 287 LOCAL_LDFLAGS_Debug := \ 288 -Wl,-z,now \ 289 -Wl,-z,relro \ 290 -Wl,--fatal-warnings \ 291 -Wl,-z,noexecstack \ 292 -fPIC \ 293 -EL \ 294 -Wl,--no-keep-memory \ 295 -nostdlib \ 296 -Wl,--no-undefined \ 297 -Wl,--exclude-libs=ALL \ 298 -Wl,--warn-shared-textrel \ 299 -Wl,-O1 \ 300 -Wl,--as-needed 301 302 303 LOCAL_LDFLAGS_Release := \ 304 -Wl,-z,now \ 305 -Wl,-z,relro \ 306 -Wl,--fatal-warnings \ 307 -Wl,-z,noexecstack \ 308 -fPIC \ 309 -EL \ 310 -Wl,--no-keep-memory \ 311 -nostdlib \ 312 -Wl,--no-undefined \ 313 -Wl,--exclude-libs=ALL \ 314 -Wl,-O1 \ 315 -Wl,--as-needed \ 316 -Wl,--gc-sections \ 317 -Wl,--warn-shared-textrel 318 319 320 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 321 322 LOCAL_STATIC_LIBRARIES := 323 324 # Enable grouping to fix circular references 325 LOCAL_GROUP_STATIC_LIBRARIES := true 326 327 LOCAL_SHARED_LIBRARIES := \ 328 libstlport \ 329 libdl 330 331 # Add target alias to "gyp_all_modules" target. 332 .PHONY: gyp_all_modules 333 gyp_all_modules: third_party_libsrtp_libsrtp_gyp 334 335 # Alias gyp target name. 336 .PHONY: libsrtp 337 libsrtp: third_party_libsrtp_libsrtp_gyp 338 339 include $(BUILD_STATIC_LIBRARY) 340