usrsctplib.target.linux-arm.mk revision 46d4c2bc3267f3f028f39e7e311b0f89aba2e4fd
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 -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 -fno-tree-sra \ 67 -fno-partial-inlining \ 68 -fno-early-inlining \ 69 -fno-tree-copy-prop \ 70 -fno-tree-loop-optimize \ 71 -fno-move-loop-invariants \ 72 -fno-caller-saves \ 73 -Wno-psabi \ 74 -ffunction-sections \ 75 -funwind-tables \ 76 -g \ 77 -fstack-protector \ 78 -fno-short-enums \ 79 -finline-limit=64 \ 80 -Wa,--noexecstack \ 81 -U_FORTIFY_SOURCE \ 82 -Wno-extra \ 83 -Wno-ignored-qualifiers \ 84 -Wno-type-limits \ 85 -Wno-unused-but-set-variable \ 86 -Wno-address \ 87 -Wno-format-security \ 88 -Wno-return-type \ 89 -Wno-sequence-point \ 90 -Os \ 91 -g \ 92 -fomit-frame-pointer \ 93 -fdata-sections \ 94 -ffunction-sections \ 95 -funwind-tables 96 97MY_DEFS_Debug := \ 98 '-DSCTP_PROCESS_LEVEL_LOCKS' \ 99 '-DSCTP_SIMPLE_ALLOCATOR' \ 100 '-D__Userspace__' \ 101 '-DV8_DEPRECATION_WARNINGS' \ 102 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 103 '-D_FILE_OFFSET_BITS=64' \ 104 '-DNO_TCMALLOC' \ 105 '-DDISABLE_NACL' \ 106 '-DSCTP_USE_OPENSSL_SHA1' \ 107 '-DCHROMIUM_BUILD' \ 108 '-DUSE_LIBJPEG_TURBO=1' \ 109 '-DENABLE_WEBRTC=1' \ 110 '-DUSE_PROPRIETARY_CODECS' \ 111 '-DENABLE_CONFIGURATION_POLICY' \ 112 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 113 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 114 '-DENABLE_EGLIMAGE=1' \ 115 '-DCLD_VERSION=1' \ 116 '-DENABLE_PRINTING=1' \ 117 '-DENABLE_MANAGED_USERS=1' \ 118 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 119 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 120 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 121 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 122 '-DVIDEO_HOLE=1' \ 123 '-D__Userspace_os_Linux' \ 124 '-DNON_WINDOWS_DEFINE' \ 125 '-DUSE_OPENSSL=1' \ 126 '-DUSE_OPENSSL_CERTS=1' \ 127 '-DANDROID' \ 128 '-D__GNU_SOURCE=1' \ 129 '-DUSE_STLPORT=1' \ 130 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 131 '-DCHROME_BUILD_ID=""' \ 132 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 133 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 134 '-D_DEBUG' 135 136 137# Include paths placed before CFLAGS/CPPFLAGS 138LOCAL_C_INCLUDES_Debug := \ 139 $(LOCAL_PATH)/third_party/usrsctp/usrsctplib \ 140 $(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \ 141 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 142 $(PWD)/frameworks/wilhelm/include \ 143 $(PWD)/bionic \ 144 $(PWD)/external/stlport/stlport 145 146 147# Flags passed to only C++ (and not C) files. 148LOCAL_CPPFLAGS_Debug := \ 149 -fno-rtti \ 150 -fno-threadsafe-statics \ 151 -fvisibility-inlines-hidden \ 152 -Wno-deprecated \ 153 -Wno-abi \ 154 -Wno-non-virtual-dtor \ 155 -Wno-sign-promo \ 156 -Wno-non-virtual-dtor 157 158 159# Flags passed to both C and C++ files. 160MY_CFLAGS_Release := \ 161 -fstack-protector \ 162 --param=ssp-buffer-size=4 \ 163 -fno-exceptions \ 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 -w \ 172 -Wno-format \ 173 -fno-tree-sra \ 174 -fno-partial-inlining \ 175 -fno-early-inlining \ 176 -fno-tree-copy-prop \ 177 -fno-tree-loop-optimize \ 178 -fno-move-loop-invariants \ 179 -fno-caller-saves \ 180 -Wno-psabi \ 181 -ffunction-sections \ 182 -funwind-tables \ 183 -g \ 184 -fstack-protector \ 185 -fno-short-enums \ 186 -finline-limit=64 \ 187 -Wa,--noexecstack \ 188 -U_FORTIFY_SOURCE \ 189 -Wno-extra \ 190 -Wno-ignored-qualifiers \ 191 -Wno-type-limits \ 192 -Wno-unused-but-set-variable \ 193 -Wno-address \ 194 -Wno-format-security \ 195 -Wno-return-type \ 196 -Wno-sequence-point \ 197 -Os \ 198 -fno-ident \ 199 -fdata-sections \ 200 -ffunction-sections \ 201 -fomit-frame-pointer \ 202 -funwind-tables 203 204MY_DEFS_Release := \ 205 '-DSCTP_PROCESS_LEVEL_LOCKS' \ 206 '-DSCTP_SIMPLE_ALLOCATOR' \ 207 '-D__Userspace__' \ 208 '-DV8_DEPRECATION_WARNINGS' \ 209 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 210 '-D_FILE_OFFSET_BITS=64' \ 211 '-DNO_TCMALLOC' \ 212 '-DDISABLE_NACL' \ 213 '-DSCTP_USE_OPENSSL_SHA1' \ 214 '-DCHROMIUM_BUILD' \ 215 '-DUSE_LIBJPEG_TURBO=1' \ 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' \ 225 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 226 '-DDATA_REDUCTION_DEV_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 '-DVIDEO_HOLE=1' \ 230 '-D__Userspace_os_Linux' \ 231 '-DNON_WINDOWS_DEFINE' \ 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 245LOCAL_C_INCLUDES_Release := \ 246 $(LOCAL_PATH)/third_party/usrsctp/usrsctplib \ 247 $(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \ 248 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 249 $(PWD)/frameworks/wilhelm/include \ 250 $(PWD)/bionic \ 251 $(PWD)/external/stlport/stlport 252 253 254# Flags passed to only C++ (and not C) files. 255LOCAL_CPPFLAGS_Release := \ 256 -fno-rtti \ 257 -fno-threadsafe-statics \ 258 -fvisibility-inlines-hidden \ 259 -Wno-deprecated \ 260 -Wno-abi \ 261 -Wno-non-virtual-dtor \ 262 -Wno-sign-promo \ 263 -Wno-non-virtual-dtor 264 265 266LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 267LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 268LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 269LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 270### Rules for final target. 271 272LOCAL_LDFLAGS_Debug := \ 273 -Wl,-z,now \ 274 -Wl,-z,relro \ 275 -Wl,--fatal-warnings \ 276 -Wl,-z,noexecstack \ 277 -fPIC \ 278 -Wl,-z,relro \ 279 -Wl,-z,now \ 280 -fuse-ld=gold \ 281 -nostdlib \ 282 -Wl,--no-undefined \ 283 -Wl,--exclude-libs=ALL \ 284 -Wl,--icf=safe \ 285 -Wl,--warn-shared-textrel \ 286 -Wl,-O1 \ 287 -Wl,--as-needed 288 289 290LOCAL_LDFLAGS_Release := \ 291 -Wl,-z,now \ 292 -Wl,-z,relro \ 293 -Wl,--fatal-warnings \ 294 -Wl,-z,noexecstack \ 295 -fPIC \ 296 -Wl,-z,relro \ 297 -Wl,-z,now \ 298 -fuse-ld=gold \ 299 -nostdlib \ 300 -Wl,--no-undefined \ 301 -Wl,--exclude-libs=ALL \ 302 -Wl,--icf=safe \ 303 -Wl,-O1 \ 304 -Wl,--as-needed \ 305 -Wl,--gc-sections \ 306 -Wl,--warn-shared-textrel 307 308 309LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 310 311LOCAL_STATIC_LIBRARIES := 312 313# Enable grouping to fix circular references 314LOCAL_GROUP_STATIC_LIBRARIES := true 315 316LOCAL_SHARED_LIBRARIES := \ 317 libstlport \ 318 libdl 319 320# Add target alias to "gyp_all_modules" target. 321.PHONY: gyp_all_modules 322gyp_all_modules: third_party_usrsctp_usrsctplib_gyp 323 324# Alias gyp target name. 325.PHONY: usrsctplib 326usrsctplib: third_party_usrsctp_usrsctplib_gyp 327 328include $(BUILD_STATIC_LIBRARY) 329