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 \ 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 -fstack-protector \ 68 -fno-short-enums \ 69 -finline-limit=64 \ 70 -Wa,--noexecstack \ 71 -U_FORTIFY_SOURCE \ 72 -Wno-extra \ 73 -Wno-ignored-qualifiers \ 74 -Wno-type-limits \ 75 -Wno-unused-but-set-variable \ 76 -Wno-address \ 77 -Wno-format-security \ 78 -Wno-return-type \ 79 -Wno-sequence-point \ 80 -Os \ 81 -g \ 82 -gdwarf-4 \ 83 -fdata-sections \ 84 -ffunction-sections \ 85 -fomit-frame-pointer \ 86 -funwind-tables 87 88 MY_DEFS_Debug := \ 89 '-DHAVE_STDLIB_H' \ 90 '-DHAVE_STRING_H' \ 91 '-DV8_DEPRECATION_WARNINGS' \ 92 '-D_FILE_OFFSET_BITS=64' \ 93 '-DNO_TCMALLOC' \ 94 '-DDISABLE_NACL' \ 95 '-DHAVE_INT16_T' \ 96 '-DHAVE_INT32_T' \ 97 '-DHAVE_INT8_T' \ 98 '-DHAVE_UINT16_T' \ 99 '-DHAVE_UINT32_T' \ 100 '-DHAVE_UINT64_T' \ 101 '-DHAVE_UINT8_T' \ 102 '-DHAVE_STDINT_H' \ 103 '-DHAVE_INTTYPES_H' \ 104 '-DHAVE_NETINET_IN_H' \ 105 '-DINLINE=inline' \ 106 '-DCPU_RISC' \ 107 '-DCHROMIUM_BUILD' \ 108 '-DUSE_LIBJPEG_TURBO=1' \ 109 '-DENABLE_WEBRTC=1' \ 110 '-DUSE_PROPRIETARY_CODECS' \ 111 '-DENABLE_BROWSER_CDMS' \ 112 '-DENABLE_CONFIGURATION_POLICY' \ 113 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 114 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 115 '-DENABLE_EGLIMAGE=1' \ 116 '-DCLD_VERSION=1' \ 117 '-DENABLE_PRINTING=1' \ 118 '-DENABLE_MANAGED_USERS=1' \ 119 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 120 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 121 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 122 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 123 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 124 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 125 '-DVIDEO_HOLE=1' \ 126 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 127 '-DUSE_OPENSSL=1' \ 128 '-DUSE_OPENSSL_CERTS=1' \ 129 '-DANDROID' \ 130 '-D__GNU_SOURCE=1' \ 131 '-DUSE_STLPORT=1' \ 132 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 133 '-DCHROME_BUILD_ID=""' \ 134 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 135 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 136 '-D_DEBUG' 137 138 139 # Include paths placed before CFLAGS/CPPFLAGS 140 LOCAL_C_INCLUDES_Debug := \ 141 $(LOCAL_PATH)/third_party/libsrtp/config \ 142 $(LOCAL_PATH)/third_party/libsrtp/srtp/include \ 143 $(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \ 144 $(gyp_shared_intermediate_dir) \ 145 $(PWD)/frameworks/wilhelm/include \ 146 $(PWD)/bionic \ 147 $(PWD)/external/stlport/stlport 148 149 150 # Flags passed to only C++ (and not C) files. 151 LOCAL_CPPFLAGS_Debug := \ 152 -fno-exceptions \ 153 -fno-rtti \ 154 -fno-threadsafe-statics \ 155 -fvisibility-inlines-hidden \ 156 -Wno-deprecated \ 157 -Wno-uninitialized \ 158 -std=gnu++11 \ 159 -Wno-narrowing \ 160 -Wno-literal-suffix \ 161 -Wno-non-virtual-dtor \ 162 -Wno-sign-promo \ 163 -Wno-non-virtual-dtor 164 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-strict-aliasing \ 172 -Wno-unused-parameter \ 173 -Wno-missing-field-initializers \ 174 -fvisibility=hidden \ 175 -pipe \ 176 -fPIC \ 177 -Wno-unused-local-typedefs \ 178 -Wno-format \ 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 '-D_FILE_OFFSET_BITS=64' \ 207 '-DNO_TCMALLOC' \ 208 '-DDISABLE_NACL' \ 209 '-DHAVE_INT16_T' \ 210 '-DHAVE_INT32_T' \ 211 '-DHAVE_INT8_T' \ 212 '-DHAVE_UINT16_T' \ 213 '-DHAVE_UINT32_T' \ 214 '-DHAVE_UINT64_T' \ 215 '-DHAVE_UINT8_T' \ 216 '-DHAVE_STDINT_H' \ 217 '-DHAVE_INTTYPES_H' \ 218 '-DHAVE_NETINET_IN_H' \ 219 '-DINLINE=inline' \ 220 '-DCPU_RISC' \ 221 '-DCHROMIUM_BUILD' \ 222 '-DUSE_LIBJPEG_TURBO=1' \ 223 '-DENABLE_WEBRTC=1' \ 224 '-DUSE_PROPRIETARY_CODECS' \ 225 '-DENABLE_BROWSER_CDMS' \ 226 '-DENABLE_CONFIGURATION_POLICY' \ 227 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 228 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 229 '-DENABLE_EGLIMAGE=1' \ 230 '-DCLD_VERSION=1' \ 231 '-DENABLE_PRINTING=1' \ 232 '-DENABLE_MANAGED_USERS=1' \ 233 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 234 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 235 '-DDATA_REDUCTION_DEV_FALLBACK_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 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 241 '-DUSE_OPENSSL=1' \ 242 '-DUSE_OPENSSL_CERTS=1' \ 243 '-DANDROID' \ 244 '-D__GNU_SOURCE=1' \ 245 '-DUSE_STLPORT=1' \ 246 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 247 '-DCHROME_BUILD_ID=""' \ 248 '-DNDEBUG' \ 249 '-DNVALGRIND' \ 250 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 251 252 253 # Include paths placed before CFLAGS/CPPFLAGS 254 LOCAL_C_INCLUDES_Release := \ 255 $(LOCAL_PATH)/third_party/libsrtp/config \ 256 $(LOCAL_PATH)/third_party/libsrtp/srtp/include \ 257 $(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \ 258 $(gyp_shared_intermediate_dir) \ 259 $(PWD)/frameworks/wilhelm/include \ 260 $(PWD)/bionic \ 261 $(PWD)/external/stlport/stlport 262 263 264 # Flags passed to only C++ (and not C) files. 265 LOCAL_CPPFLAGS_Release := \ 266 -fno-exceptions \ 267 -fno-rtti \ 268 -fno-threadsafe-statics \ 269 -fvisibility-inlines-hidden \ 270 -Wno-deprecated \ 271 -Wno-uninitialized \ 272 -std=gnu++11 \ 273 -Wno-narrowing \ 274 -Wno-literal-suffix \ 275 -Wno-non-virtual-dtor \ 276 -Wno-sign-promo \ 277 -Wno-non-virtual-dtor 278 279 280 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 281 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 282 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 283 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 284 ### Rules for final target. 285 286 LOCAL_SHARED_LIBRARIES := \ 287 libstlport \ 288 libdl 289 290 # Add target alias to "gyp_all_modules" target. 291 .PHONY: gyp_all_modules 292 gyp_all_modules: third_party_libsrtp_libsrtp_gyp 293 294 # Alias gyp target name. 295 .PHONY: libsrtp 296 libsrtp: third_party_libsrtp_libsrtp_gyp 297 298 include $(BUILD_STATIC_LIBRARY) 299