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_usrsctp_usrsctplib_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/usrsctp/usrsctplib/netinet/sctp_asconf.c \ 27 third_party/usrsctp/usrsctplib/netinet/sctp_auth.c \ 28 third_party/usrsctp/usrsctplib/netinet/sctp_bsd_addr.c \ 29 third_party/usrsctp/usrsctplib/netinet/sctp_callout.c \ 30 third_party/usrsctp/usrsctplib/netinet/sctp_cc_functions.c \ 31 third_party/usrsctp/usrsctplib/netinet/sctp_crc32.c \ 32 third_party/usrsctp/usrsctplib/netinet/sctp_indata.c \ 33 third_party/usrsctp/usrsctplib/netinet/sctp_input.c \ 34 third_party/usrsctp/usrsctplib/netinet/sctp_output.c \ 35 third_party/usrsctp/usrsctplib/netinet/sctp_pcb.c \ 36 third_party/usrsctp/usrsctplib/netinet/sctp_peeloff.c \ 37 third_party/usrsctp/usrsctplib/netinet/sctp_sha1.c \ 38 third_party/usrsctp/usrsctplib/netinet/sctp_ss_functions.c \ 39 third_party/usrsctp/usrsctplib/netinet/sctp_sysctl.c \ 40 third_party/usrsctp/usrsctplib/netinet/sctp_timer.c \ 41 third_party/usrsctp/usrsctplib/netinet/sctp_userspace.c \ 42 third_party/usrsctp/usrsctplib/netinet/sctp_usrreq.c \ 43 third_party/usrsctp/usrsctplib/netinet/sctputil.c \ 44 third_party/usrsctp/usrsctplib/netinet6/sctp6_usrreq.c \ 45 third_party/usrsctp/usrsctplib/user_environment.c \ 46 third_party/usrsctp/usrsctplib/user_mbuf.c \ 47 third_party/usrsctp/usrsctplib/user_recv_thread.c \ 48 third_party/usrsctp/usrsctplib/user_sctp_timer_iterate.c \ 49 third_party/usrsctp/usrsctplib/user_socket.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-unused-local-typedefs \ 65 -w \ 66 -Wno-format \ 67 -EL \ 68 -mhard-float \ 69 -ffunction-sections \ 70 -funwind-tables \ 71 -g \ 72 -fstack-protector \ 73 -fno-short-enums \ 74 -finline-limit=64 \ 75 -Wa,--noexecstack \ 76 -U_FORTIFY_SOURCE \ 77 -Wno-extra \ 78 -Wno-ignored-qualifiers \ 79 -Wno-type-limits \ 80 -Wno-unused-but-set-variable \ 81 -Wno-address \ 82 -Wno-format-security \ 83 -Wno-return-type \ 84 -Wno-sequence-point \ 85 -Os \ 86 -g \ 87 -fdata-sections \ 88 -ffunction-sections \ 89 -fomit-frame-pointer \ 90 -funwind-tables 91 92 MY_DEFS_Debug := \ 93 '-DSCTP_PROCESS_LEVEL_LOCKS' \ 94 '-DSCTP_SIMPLE_ALLOCATOR' \ 95 '-D__Userspace__' \ 96 '-DV8_DEPRECATION_WARNINGS' \ 97 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 98 '-D_FILE_OFFSET_BITS=64' \ 99 '-DNO_TCMALLOC' \ 100 '-DDISABLE_NACL' \ 101 '-DSCTP_USE_OPENSSL_SHA1' \ 102 '-DCHROMIUM_BUILD' \ 103 '-DUSE_LIBJPEG_TURBO=1' \ 104 '-DENABLE_WEBRTC=1' \ 105 '-DUSE_PROPRIETARY_CODECS' \ 106 '-DENABLE_BROWSER_CDMS' \ 107 '-DENABLE_CONFIGURATION_POLICY' \ 108 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 109 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 110 '-DENABLE_EGLIMAGE=1' \ 111 '-DCLD_VERSION=1' \ 112 '-DENABLE_PRINTING=1' \ 113 '-DENABLE_MANAGED_USERS=1' \ 114 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 115 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 116 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 117 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 118 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 119 '-DVIDEO_HOLE=1' \ 120 '-D__Userspace_os_Linux' \ 121 '-DNON_WINDOWS_DEFINE' \ 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/usrsctp/usrsctplib \ 137 $(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \ 138 $(gyp_shared_intermediate_dir) \ 139 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 140 $(PWD)/frameworks/wilhelm/include \ 141 $(PWD)/bionic \ 142 $(PWD)/external/stlport/stlport 143 144 145 # Flags passed to only C++ (and not C) files. 146 LOCAL_CPPFLAGS_Debug := \ 147 -fno-rtti \ 148 -fno-threadsafe-statics \ 149 -fvisibility-inlines-hidden \ 150 -Wno-deprecated \ 151 -Wno-uninitialized \ 152 -Wno-non-virtual-dtor \ 153 -Wno-sign-promo \ 154 -Wno-non-virtual-dtor 155 156 157 LOCAL_FDO_SUPPORT_Debug := false 158 159 # Flags passed to both C and C++ files. 160 MY_CFLAGS_Release := \ 161 -fstack-protector \ 162 --param=ssp-buffer-size=4 \ 163 \ 164 -fno-exceptions \ 165 -fno-strict-aliasing \ 166 -Wno-unused-parameter \ 167 -Wno-missing-field-initializers \ 168 -fvisibility=hidden \ 169 -pipe \ 170 -fPIC \ 171 -Wno-unused-local-typedefs \ 172 -w \ 173 -Wno-format \ 174 -EL \ 175 -mhard-float \ 176 -ffunction-sections \ 177 -funwind-tables \ 178 -g \ 179 -fstack-protector \ 180 -fno-short-enums \ 181 -finline-limit=64 \ 182 -Wa,--noexecstack \ 183 -U_FORTIFY_SOURCE \ 184 -Wno-extra \ 185 -Wno-ignored-qualifiers \ 186 -Wno-type-limits \ 187 -Wno-unused-but-set-variable \ 188 -Wno-address \ 189 -Wno-format-security \ 190 -Wno-return-type \ 191 -Wno-sequence-point \ 192 -Os \ 193 -fno-ident \ 194 -fdata-sections \ 195 -ffunction-sections \ 196 -fomit-frame-pointer \ 197 -funwind-tables 198 199 MY_DEFS_Release := \ 200 '-DSCTP_PROCESS_LEVEL_LOCKS' \ 201 '-DSCTP_SIMPLE_ALLOCATOR' \ 202 '-D__Userspace__' \ 203 '-DV8_DEPRECATION_WARNINGS' \ 204 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 205 '-D_FILE_OFFSET_BITS=64' \ 206 '-DNO_TCMALLOC' \ 207 '-DDISABLE_NACL' \ 208 '-DSCTP_USE_OPENSSL_SHA1' \ 209 '-DCHROMIUM_BUILD' \ 210 '-DUSE_LIBJPEG_TURBO=1' \ 211 '-DENABLE_WEBRTC=1' \ 212 '-DUSE_PROPRIETARY_CODECS' \ 213 '-DENABLE_BROWSER_CDMS' \ 214 '-DENABLE_CONFIGURATION_POLICY' \ 215 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 216 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 217 '-DENABLE_EGLIMAGE=1' \ 218 '-DCLD_VERSION=1' \ 219 '-DENABLE_PRINTING=1' \ 220 '-DENABLE_MANAGED_USERS=1' \ 221 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 222 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 223 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 224 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 225 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 226 '-DVIDEO_HOLE=1' \ 227 '-D__Userspace_os_Linux' \ 228 '-DNON_WINDOWS_DEFINE' \ 229 '-DUSE_OPENSSL=1' \ 230 '-DUSE_OPENSSL_CERTS=1' \ 231 '-DANDROID' \ 232 '-D__GNU_SOURCE=1' \ 233 '-DUSE_STLPORT=1' \ 234 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 235 '-DCHROME_BUILD_ID=""' \ 236 '-DNDEBUG' \ 237 '-DNVALGRIND' \ 238 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 239 240 241 # Include paths placed before CFLAGS/CPPFLAGS 242 LOCAL_C_INCLUDES_Release := \ 243 $(LOCAL_PATH)/third_party/usrsctp/usrsctplib \ 244 $(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \ 245 $(gyp_shared_intermediate_dir) \ 246 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 247 $(PWD)/frameworks/wilhelm/include \ 248 $(PWD)/bionic \ 249 $(PWD)/external/stlport/stlport 250 251 252 # Flags passed to only C++ (and not C) files. 253 LOCAL_CPPFLAGS_Release := \ 254 -fno-rtti \ 255 -fno-threadsafe-statics \ 256 -fvisibility-inlines-hidden \ 257 -Wno-deprecated \ 258 -Wno-uninitialized \ 259 -Wno-non-virtual-dtor \ 260 -Wno-sign-promo \ 261 -Wno-non-virtual-dtor 262 263 264 LOCAL_FDO_SUPPORT_Release := false 265 266 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 267 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 268 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 269 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 270 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 271 ### Rules for final target. 272 273 LOCAL_LDFLAGS_Debug := \ 274 -Wl,-z,now \ 275 -Wl,-z,relro \ 276 -Wl,--fatal-warnings \ 277 -Wl,-z,noexecstack \ 278 -fPIC \ 279 -EL \ 280 -Wl,--no-keep-memory \ 281 -nostdlib \ 282 -Wl,--no-undefined \ 283 -Wl,--exclude-libs=ALL \ 284 -Wl,--warn-shared-textrel \ 285 -Wl,-O1 \ 286 -Wl,--as-needed 287 288 289 LOCAL_LDFLAGS_Release := \ 290 -Wl,-z,now \ 291 -Wl,-z,relro \ 292 -Wl,--fatal-warnings \ 293 -Wl,-z,noexecstack \ 294 -fPIC \ 295 -EL \ 296 -Wl,--no-keep-memory \ 297 -nostdlib \ 298 -Wl,--no-undefined \ 299 -Wl,--exclude-libs=ALL \ 300 -Wl,-O1 \ 301 -Wl,--as-needed \ 302 -Wl,--gc-sections \ 303 -Wl,--warn-shared-textrel 304 305 306 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 307 308 LOCAL_STATIC_LIBRARIES := 309 310 # Enable grouping to fix circular references 311 LOCAL_GROUP_STATIC_LIBRARIES := true 312 313 LOCAL_SHARED_LIBRARIES := \ 314 libstlport \ 315 libdl 316 317 # Add target alias to "gyp_all_modules" target. 318 .PHONY: gyp_all_modules 319 gyp_all_modules: third_party_usrsctp_usrsctplib_gyp 320 321 # Alias gyp target name. 322 .PHONY: usrsctplib 323 usrsctplib: third_party_usrsctp_usrsctplib_gyp 324 325 include $(BUILD_STATIC_LIBRARY) 326