Android Chromium Automerger | 513a039 | 2014-04-01 19:42:47 +0000 | [diff] [blame] | 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 |
Android Chromium Automerger | 4d67e08 | 2014-04-09 18:59:35 +0000 | [diff] [blame] | 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)) |
Android Chromium Automerger | 513a039 | 2014-04-01 19:42:47 +0000 | [diff] [blame] | 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 | \ |
| 57 | -fno-exceptions \ |
| 58 | -fno-strict-aliasing \ |
| 59 | -Wno-unused-parameter \ |
| 60 | -Wno-missing-field-initializers \ |
| 61 | -fvisibility=hidden \ |
| 62 | -pipe \ |
| 63 | -fPIC \ |
| 64 | -Wno-format \ |
| 65 | -EL \ |
| 66 | -mhard-float \ |
| 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 | -fomit-frame-pointer \ |
| 86 | -fdata-sections \ |
| 87 | -ffunction-sections \ |
| 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_RISC' \ |
| 110 | '-DCHROMIUM_BUILD' \ |
| 111 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 112 | '-DENABLE_WEBRTC=1' \ |
| 113 | '-DUSE_PROPRIETARY_CODECS' \ |
| 114 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 115 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 116 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 117 | '-DENABLE_EGLIMAGE=1' \ |
| 118 | '-DCLD_VERSION=1' \ |
| 119 | '-DENABLE_PRINTING=1' \ |
| 120 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 4e6c58a | 2014-05-14 10:24:50 +0100 | [diff] [blame^] | 121 | '-DVIDEO_HOLE=1' \ |
Android Chromium Automerger | 513a039 | 2014-04-01 19:42:47 +0000 | [diff] [blame] | 122 | '-DUSE_OPENSSL=1' \ |
| 123 | '-DUSE_OPENSSL_CERTS=1' \ |
| 124 | '-DANDROID' \ |
| 125 | '-D__GNU_SOURCE=1' \ |
| 126 | '-DUSE_STLPORT=1' \ |
| 127 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 128 | '-DCHROME_BUILD_ID=""' \ |
| 129 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 130 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 131 | '-D_DEBUG' |
| 132 | |
| 133 | |
| 134 | # Include paths placed before CFLAGS/CPPFLAGS |
| 135 | LOCAL_C_INCLUDES_Debug := \ |
| 136 | $(LOCAL_PATH)/third_party/libsrtp/config \ |
| 137 | $(LOCAL_PATH)/third_party/libsrtp/srtp/include \ |
| 138 | $(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \ |
| 139 | $(PWD)/frameworks/wilhelm/include \ |
| 140 | $(PWD)/bionic \ |
| 141 | $(PWD)/external/stlport/stlport |
| 142 | |
| 143 | |
| 144 | # Flags passed to only C++ (and not C) files. |
| 145 | LOCAL_CPPFLAGS_Debug := \ |
| 146 | -fno-rtti \ |
| 147 | -fno-threadsafe-statics \ |
| 148 | -fvisibility-inlines-hidden \ |
| 149 | -Wno-deprecated \ |
| 150 | -Wno-uninitialized \ |
| 151 | -Wno-non-virtual-dtor \ |
| 152 | -Wno-sign-promo \ |
| 153 | -Wno-non-virtual-dtor |
| 154 | |
| 155 | |
| 156 | # Flags passed to both C and C++ files. |
| 157 | MY_CFLAGS_Release := \ |
| 158 | -fstack-protector \ |
| 159 | --param=ssp-buffer-size=4 \ |
| 160 | \ |
| 161 | -fno-exceptions \ |
| 162 | -fno-strict-aliasing \ |
| 163 | -Wno-unused-parameter \ |
| 164 | -Wno-missing-field-initializers \ |
| 165 | -fvisibility=hidden \ |
| 166 | -pipe \ |
| 167 | -fPIC \ |
| 168 | -Wno-format \ |
| 169 | -EL \ |
| 170 | -mhard-float \ |
| 171 | -ffunction-sections \ |
| 172 | -funwind-tables \ |
| 173 | -g \ |
| 174 | -fstack-protector \ |
| 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 | -fomit-frame-pointer \ |
| 192 | -funwind-tables |
| 193 | |
| 194 | MY_DEFS_Release := \ |
| 195 | '-DHAVE_STDLIB_H' \ |
| 196 | '-DHAVE_STRING_H' \ |
| 197 | '-DV8_DEPRECATION_WARNINGS' \ |
| 198 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
| 199 | '-D_FILE_OFFSET_BITS=64' \ |
| 200 | '-DNO_TCMALLOC' \ |
| 201 | '-DDISABLE_NACL' \ |
| 202 | '-DHAVE_INT16_T' \ |
| 203 | '-DHAVE_INT32_T' \ |
| 204 | '-DHAVE_INT8_T' \ |
| 205 | '-DHAVE_UINT16_T' \ |
| 206 | '-DHAVE_UINT32_T' \ |
| 207 | '-DHAVE_UINT64_T' \ |
| 208 | '-DHAVE_UINT8_T' \ |
| 209 | '-DHAVE_STDINT_H' \ |
| 210 | '-DHAVE_INTTYPES_H' \ |
| 211 | '-DHAVE_NETINET_IN_H' \ |
| 212 | '-DINLINE=inline' \ |
| 213 | '-DCPU_RISC' \ |
| 214 | '-DCHROMIUM_BUILD' \ |
| 215 | '-DUSE_LIBJPEG_TURBO=1' \ |
Android Chromium Automerger | 513a039 | 2014-04-01 19:42:47 +0000 | [diff] [blame] | 216 | '-DENABLE_WEBRTC=1' \ |
| 217 | '-DUSE_PROPRIETARY_CODECS' \ |
| 218 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 219 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 220 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 221 | '-DENABLE_EGLIMAGE=1' \ |
| 222 | '-DCLD_VERSION=1' \ |
| 223 | '-DENABLE_PRINTING=1' \ |
| 224 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 4e6c58a | 2014-05-14 10:24:50 +0100 | [diff] [blame^] | 225 | '-DVIDEO_HOLE=1' \ |
Android Chromium Automerger | 513a039 | 2014-04-01 19:42:47 +0000 | [diff] [blame] | 226 | '-DUSE_OPENSSL=1' \ |
| 227 | '-DUSE_OPENSSL_CERTS=1' \ |
| 228 | '-DANDROID' \ |
| 229 | '-D__GNU_SOURCE=1' \ |
| 230 | '-DUSE_STLPORT=1' \ |
| 231 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 232 | '-DCHROME_BUILD_ID=""' \ |
| 233 | '-DNDEBUG' \ |
| 234 | '-DNVALGRIND' \ |
| 235 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' |
| 236 | |
| 237 | |
| 238 | # Include paths placed before CFLAGS/CPPFLAGS |
| 239 | LOCAL_C_INCLUDES_Release := \ |
| 240 | $(LOCAL_PATH)/third_party/libsrtp/config \ |
| 241 | $(LOCAL_PATH)/third_party/libsrtp/srtp/include \ |
| 242 | $(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \ |
| 243 | $(PWD)/frameworks/wilhelm/include \ |
| 244 | $(PWD)/bionic \ |
| 245 | $(PWD)/external/stlport/stlport |
| 246 | |
| 247 | |
| 248 | # Flags passed to only C++ (and not C) files. |
| 249 | LOCAL_CPPFLAGS_Release := \ |
| 250 | -fno-rtti \ |
| 251 | -fno-threadsafe-statics \ |
| 252 | -fvisibility-inlines-hidden \ |
| 253 | -Wno-deprecated \ |
| 254 | -Wno-uninitialized \ |
| 255 | -Wno-non-virtual-dtor \ |
| 256 | -Wno-sign-promo \ |
| 257 | -Wno-non-virtual-dtor |
| 258 | |
| 259 | |
| 260 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 261 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 262 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
| 263 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
| 264 | ### Rules for final target. |
| 265 | |
| 266 | LOCAL_LDFLAGS_Debug := \ |
Android Chromium Automerger | 513a039 | 2014-04-01 19:42:47 +0000 | [diff] [blame] | 267 | -Wl,-z,now \ |
| 268 | -Wl,-z,relro \ |
Android Chromium Automerger | 8b7de12 | 2014-04-07 11:28:24 +0000 | [diff] [blame] | 269 | -Wl,--fatal-warnings \ |
Android Chromium Automerger | 513a039 | 2014-04-01 19:42:47 +0000 | [diff] [blame] | 270 | -Wl,-z,noexecstack \ |
| 271 | -fPIC \ |
| 272 | -EL \ |
| 273 | -Wl,--no-keep-memory \ |
| 274 | -nostdlib \ |
| 275 | -Wl,--no-undefined \ |
| 276 | -Wl,--exclude-libs=ALL \ |
Android Chromium Automerger | 513a039 | 2014-04-01 19:42:47 +0000 | [diff] [blame] | 277 | -Wl,--warn-shared-textrel \ |
| 278 | -Wl,-O1 \ |
| 279 | -Wl,--as-needed |
| 280 | |
| 281 | |
| 282 | LOCAL_LDFLAGS_Release := \ |
Android Chromium Automerger | 513a039 | 2014-04-01 19:42:47 +0000 | [diff] [blame] | 283 | -Wl,-z,now \ |
| 284 | -Wl,-z,relro \ |
Android Chromium Automerger | 8b7de12 | 2014-04-07 11:28:24 +0000 | [diff] [blame] | 285 | -Wl,--fatal-warnings \ |
Android Chromium Automerger | 513a039 | 2014-04-01 19:42:47 +0000 | [diff] [blame] | 286 | -Wl,-z,noexecstack \ |
| 287 | -fPIC \ |
| 288 | -EL \ |
| 289 | -Wl,--no-keep-memory \ |
| 290 | -nostdlib \ |
| 291 | -Wl,--no-undefined \ |
| 292 | -Wl,--exclude-libs=ALL \ |
| 293 | -Wl,-O1 \ |
| 294 | -Wl,--as-needed \ |
| 295 | -Wl,--gc-sections \ |
| 296 | -Wl,--warn-shared-textrel |
| 297 | |
| 298 | |
| 299 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 300 | |
| 301 | LOCAL_STATIC_LIBRARIES := |
| 302 | |
| 303 | # Enable grouping to fix circular references |
| 304 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 305 | |
| 306 | LOCAL_SHARED_LIBRARIES := \ |
| 307 | libstlport \ |
| 308 | libdl |
| 309 | |
| 310 | # Add target alias to "gyp_all_modules" target. |
| 311 | .PHONY: gyp_all_modules |
| 312 | gyp_all_modules: third_party_libsrtp_libsrtp_gyp |
| 313 | |
| 314 | # Alias gyp target name. |
| 315 | .PHONY: libsrtp |
| 316 | libsrtp: third_party_libsrtp_libsrtp_gyp |
| 317 | |
| 318 | include $(BUILD_STATIC_LIBRARY) |