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