1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_usrsctp_usrsctplib_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_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. 53MY_CFLAGS_Debug := \ 54 --param=ssp-buffer-size=4 \ 55 -fno-exceptions \ 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 -w \ 64 -Wno-format \ 65 -ffunction-sections \ 66 -funwind-tables \ 67 -g \ 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 -fdata-sections \ 83 -ffunction-sections \ 84 -funwind-tables 85 86MY_DEFS_Debug := \ 87 '-DSCTP_PROCESS_LEVEL_LOCKS' \ 88 '-DSCTP_SIMPLE_ALLOCATOR' \ 89 '-D__Userspace__' \ 90 '-DV8_DEPRECATION_WARNINGS' \ 91 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 92 '-D_FILE_OFFSET_BITS=64' \ 93 '-DNO_TCMALLOC' \ 94 '-DDISABLE_NACL' \ 95 '-DSCTP_USE_OPENSSL_SHA1' \ 96 '-DCHROMIUM_BUILD' \ 97 '-DUSE_LIBJPEG_TURBO=1' \ 98 '-DENABLE_WEBRTC=1' \ 99 '-DUSE_PROPRIETARY_CODECS' \ 100 '-DENABLE_BROWSER_CDMS' \ 101 '-DENABLE_CONFIGURATION_POLICY' \ 102 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 103 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 104 '-DENABLE_EGLIMAGE=1' \ 105 '-DCLD_VERSION=1' \ 106 '-DENABLE_PRINTING=1' \ 107 '-DENABLE_MANAGED_USERS=1' \ 108 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 109 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 110 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 111 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 112 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 113 '-DVIDEO_HOLE=1' \ 114 '-D__Userspace_os_Linux' \ 115 '-DNON_WINDOWS_DEFINE' \ 116 '-DUSE_OPENSSL=1' \ 117 '-DUSE_OPENSSL_CERTS=1' \ 118 '-DANDROID' \ 119 '-D__GNU_SOURCE=1' \ 120 '-DUSE_STLPORT=1' \ 121 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 122 '-DCHROME_BUILD_ID=""' \ 123 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 124 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 125 '-D_DEBUG' 126 127 128# Include paths placed before CFLAGS/CPPFLAGS 129LOCAL_C_INCLUDES_Debug := \ 130 $(LOCAL_PATH)/third_party/usrsctp/usrsctplib \ 131 $(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \ 132 $(gyp_shared_intermediate_dir) \ 133 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 134 $(PWD)/frameworks/wilhelm/include \ 135 $(PWD)/bionic \ 136 $(PWD)/external/stlport/stlport 137 138 139# Flags passed to only C++ (and not C) files. 140LOCAL_CPPFLAGS_Debug := \ 141 -fno-rtti \ 142 -fno-threadsafe-statics \ 143 -fvisibility-inlines-hidden \ 144 -Wno-deprecated \ 145 -Wno-non-virtual-dtor \ 146 -Wno-sign-promo \ 147 -Wno-non-virtual-dtor 148 149 150LOCAL_FDO_SUPPORT_Debug := false 151 152# Flags passed to both C and C++ files. 153MY_CFLAGS_Release := \ 154 --param=ssp-buffer-size=4 \ 155 -fno-exceptions \ 156 -fno-strict-aliasing \ 157 -Wno-unused-parameter \ 158 -Wno-missing-field-initializers \ 159 -fvisibility=hidden \ 160 -pipe \ 161 -fPIC \ 162 -Wno-unused-local-typedefs \ 163 -w \ 164 -Wno-format \ 165 -ffunction-sections \ 166 -funwind-tables \ 167 -g \ 168 -fno-short-enums \ 169 -finline-limit=64 \ 170 -Wa,--noexecstack \ 171 -U_FORTIFY_SOURCE \ 172 -Wno-extra \ 173 -Wno-ignored-qualifiers \ 174 -Wno-type-limits \ 175 -Wno-unused-but-set-variable \ 176 -Wno-address \ 177 -Wno-format-security \ 178 -Wno-return-type \ 179 -Wno-sequence-point \ 180 -Os \ 181 -fno-ident \ 182 -fdata-sections \ 183 -ffunction-sections \ 184 -funwind-tables 185 186MY_DEFS_Release := \ 187 '-DSCTP_PROCESS_LEVEL_LOCKS' \ 188 '-DSCTP_SIMPLE_ALLOCATOR' \ 189 '-D__Userspace__' \ 190 '-DV8_DEPRECATION_WARNINGS' \ 191 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 192 '-D_FILE_OFFSET_BITS=64' \ 193 '-DNO_TCMALLOC' \ 194 '-DDISABLE_NACL' \ 195 '-DSCTP_USE_OPENSSL_SHA1' \ 196 '-DCHROMIUM_BUILD' \ 197 '-DUSE_LIBJPEG_TURBO=1' \ 198 '-DENABLE_WEBRTC=1' \ 199 '-DUSE_PROPRIETARY_CODECS' \ 200 '-DENABLE_BROWSER_CDMS' \ 201 '-DENABLE_CONFIGURATION_POLICY' \ 202 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 203 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 204 '-DENABLE_EGLIMAGE=1' \ 205 '-DCLD_VERSION=1' \ 206 '-DENABLE_PRINTING=1' \ 207 '-DENABLE_MANAGED_USERS=1' \ 208 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 209 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 210 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 211 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 212 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 213 '-DVIDEO_HOLE=1' \ 214 '-D__Userspace_os_Linux' \ 215 '-DNON_WINDOWS_DEFINE' \ 216 '-DUSE_OPENSSL=1' \ 217 '-DUSE_OPENSSL_CERTS=1' \ 218 '-DANDROID' \ 219 '-D__GNU_SOURCE=1' \ 220 '-DUSE_STLPORT=1' \ 221 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 222 '-DCHROME_BUILD_ID=""' \ 223 '-DNDEBUG' \ 224 '-DNVALGRIND' \ 225 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 226 227 228# Include paths placed before CFLAGS/CPPFLAGS 229LOCAL_C_INCLUDES_Release := \ 230 $(LOCAL_PATH)/third_party/usrsctp/usrsctplib \ 231 $(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \ 232 $(gyp_shared_intermediate_dir) \ 233 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 234 $(PWD)/frameworks/wilhelm/include \ 235 $(PWD)/bionic \ 236 $(PWD)/external/stlport/stlport 237 238 239# Flags passed to only C++ (and not C) files. 240LOCAL_CPPFLAGS_Release := \ 241 -fno-rtti \ 242 -fno-threadsafe-statics \ 243 -fvisibility-inlines-hidden \ 244 -Wno-deprecated \ 245 -Wno-non-virtual-dtor \ 246 -Wno-sign-promo \ 247 -Wno-non-virtual-dtor 248 249 250LOCAL_FDO_SUPPORT_Release := false 251 252LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 253LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 254LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 255LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 256LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 257### Rules for final target. 258 259LOCAL_LDFLAGS_Debug := \ 260 -Wl,-z,now \ 261 -Wl,-z,relro \ 262 -Wl,--fatal-warnings \ 263 -Wl,-z,noexecstack \ 264 -fPIC \ 265 -nostdlib \ 266 -Wl,--no-undefined \ 267 -Wl,--exclude-libs=ALL \ 268 -Wl,--warn-shared-textrel \ 269 -Wl,-O1 \ 270 -Wl,--as-needed 271 272 273LOCAL_LDFLAGS_Release := \ 274 -Wl,-z,now \ 275 -Wl,-z,relro \ 276 -Wl,--fatal-warnings \ 277 -Wl,-z,noexecstack \ 278 -fPIC \ 279 -nostdlib \ 280 -Wl,--no-undefined \ 281 -Wl,--exclude-libs=ALL \ 282 -Wl,-O1 \ 283 -Wl,--as-needed \ 284 -Wl,--gc-sections \ 285 -Wl,--warn-shared-textrel 286 287 288LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 289 290LOCAL_STATIC_LIBRARIES := 291 292# Enable grouping to fix circular references 293LOCAL_GROUP_STATIC_LIBRARIES := true 294 295LOCAL_SHARED_LIBRARIES := \ 296 libstlport \ 297 libdl 298 299# Add target alias to "gyp_all_modules" target. 300.PHONY: gyp_all_modules 301gyp_all_modules: third_party_usrsctp_usrsctplib_gyp 302 303# Alias gyp target name. 304.PHONY: usrsctplib 305usrsctplib: third_party_usrsctp_usrsctplib_gyp 306 307include $(BUILD_STATIC_LIBRARY) 308