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