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