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