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