1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_libevent_libevent_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/libevent/buffer.c \ 27 third_party/libevent/evbuffer.c \ 28 third_party/libevent/evdns.c \ 29 third_party/libevent/event.c \ 30 third_party/libevent/event_tagging.c \ 31 third_party/libevent/evrpc.c \ 32 third_party/libevent/evutil.c \ 33 third_party/libevent/http.c \ 34 third_party/libevent/log.c \ 35 third_party/libevent/poll.c \ 36 third_party/libevent/select.c \ 37 third_party/libevent/signal.c \ 38 third_party/libevent/strlcpy.c \ 39 third_party/libevent/epoll.c 40 41 42# Flags passed to both C and C++ files. 43MY_CFLAGS_Debug := \ 44 -fstack-protector \ 45 --param=ssp-buffer-size=4 \ 46 -fno-exceptions \ 47 -fno-strict-aliasing \ 48 -Wno-unused-parameter \ 49 -Wno-missing-field-initializers \ 50 -fvisibility=hidden \ 51 -pipe \ 52 -fPIC \ 53 -Wno-unused-local-typedefs \ 54 -Wno-format \ 55 -m64 \ 56 -march=x86-64 \ 57 -ffunction-sections \ 58 -funwind-tables \ 59 -g \ 60 -fstack-protector \ 61 -fno-short-enums \ 62 -finline-limit=64 \ 63 -Wa,--noexecstack \ 64 -U_FORTIFY_SOURCE \ 65 -Wno-extra \ 66 -Wno-ignored-qualifiers \ 67 -Wno-type-limits \ 68 -Wno-unused-but-set-variable \ 69 -Wno-address \ 70 -Wno-format-security \ 71 -Wno-return-type \ 72 -Wno-sequence-point \ 73 -Os \ 74 -g \ 75 -fdata-sections \ 76 -ffunction-sections \ 77 -fomit-frame-pointer \ 78 -funwind-tables 79 80MY_DEFS_Debug := \ 81 '-DV8_DEPRECATION_WARNINGS' \ 82 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 83 '-D_FILE_OFFSET_BITS=64' \ 84 '-DNO_TCMALLOC' \ 85 '-DDISABLE_NACL' \ 86 '-DCHROMIUM_BUILD' \ 87 '-DUSE_LIBJPEG_TURBO=1' \ 88 '-DENABLE_WEBRTC=1' \ 89 '-DUSE_PROPRIETARY_CODECS' \ 90 '-DENABLE_BROWSER_CDMS' \ 91 '-DENABLE_CONFIGURATION_POLICY' \ 92 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 93 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 94 '-DENABLE_EGLIMAGE=1' \ 95 '-DCLD_VERSION=1' \ 96 '-DENABLE_PRINTING=1' \ 97 '-DENABLE_MANAGED_USERS=1' \ 98 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 99 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 100 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 101 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 102 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 103 '-DVIDEO_HOLE=1' \ 104 '-DHAVE_CONFIG_H' \ 105 '-DUSE_OPENSSL=1' \ 106 '-DUSE_OPENSSL_CERTS=1' \ 107 '-DANDROID' \ 108 '-D__GNU_SOURCE=1' \ 109 '-DUSE_STLPORT=1' \ 110 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 111 '-DCHROME_BUILD_ID=""' \ 112 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 113 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 114 '-D_DEBUG' 115 116 117# Include paths placed before CFLAGS/CPPFLAGS 118LOCAL_C_INCLUDES_Debug := \ 119 $(gyp_shared_intermediate_dir) \ 120 $(LOCAL_PATH)/third_party/libevent/android \ 121 $(PWD)/frameworks/wilhelm/include \ 122 $(PWD)/bionic \ 123 $(PWD)/external/stlport/stlport 124 125 126# Flags passed to only C++ (and not C) files. 127LOCAL_CPPFLAGS_Debug := \ 128 -fno-rtti \ 129 -fno-threadsafe-statics \ 130 -fvisibility-inlines-hidden \ 131 -Wno-deprecated \ 132 -Wno-non-virtual-dtor \ 133 -Wno-sign-promo \ 134 -Wno-non-virtual-dtor 135 136 137LOCAL_FDO_SUPPORT_Debug := false 138 139# Flags passed to both C and C++ files. 140MY_CFLAGS_Release := \ 141 -fstack-protector \ 142 --param=ssp-buffer-size=4 \ 143 -fno-exceptions \ 144 -fno-strict-aliasing \ 145 -Wno-unused-parameter \ 146 -Wno-missing-field-initializers \ 147 -fvisibility=hidden \ 148 -pipe \ 149 -fPIC \ 150 -Wno-unused-local-typedefs \ 151 -Wno-format \ 152 -m64 \ 153 -march=x86-64 \ 154 -ffunction-sections \ 155 -funwind-tables \ 156 -g \ 157 -fstack-protector \ 158 -fno-short-enums \ 159 -finline-limit=64 \ 160 -Wa,--noexecstack \ 161 -U_FORTIFY_SOURCE \ 162 -Wno-extra \ 163 -Wno-ignored-qualifiers \ 164 -Wno-type-limits \ 165 -Wno-unused-but-set-variable \ 166 -Wno-address \ 167 -Wno-format-security \ 168 -Wno-return-type \ 169 -Wno-sequence-point \ 170 -Os \ 171 -fno-ident \ 172 -fdata-sections \ 173 -ffunction-sections \ 174 -fomit-frame-pointer \ 175 -funwind-tables 176 177MY_DEFS_Release := \ 178 '-DV8_DEPRECATION_WARNINGS' \ 179 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 180 '-D_FILE_OFFSET_BITS=64' \ 181 '-DNO_TCMALLOC' \ 182 '-DDISABLE_NACL' \ 183 '-DCHROMIUM_BUILD' \ 184 '-DUSE_LIBJPEG_TURBO=1' \ 185 '-DENABLE_WEBRTC=1' \ 186 '-DUSE_PROPRIETARY_CODECS' \ 187 '-DENABLE_BROWSER_CDMS' \ 188 '-DENABLE_CONFIGURATION_POLICY' \ 189 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 190 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 191 '-DENABLE_EGLIMAGE=1' \ 192 '-DCLD_VERSION=1' \ 193 '-DENABLE_PRINTING=1' \ 194 '-DENABLE_MANAGED_USERS=1' \ 195 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 196 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 197 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 198 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 199 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 200 '-DVIDEO_HOLE=1' \ 201 '-DHAVE_CONFIG_H' \ 202 '-DUSE_OPENSSL=1' \ 203 '-DUSE_OPENSSL_CERTS=1' \ 204 '-DANDROID' \ 205 '-D__GNU_SOURCE=1' \ 206 '-DUSE_STLPORT=1' \ 207 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 208 '-DCHROME_BUILD_ID=""' \ 209 '-DNDEBUG' \ 210 '-DNVALGRIND' \ 211 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 212 213 214# Include paths placed before CFLAGS/CPPFLAGS 215LOCAL_C_INCLUDES_Release := \ 216 $(gyp_shared_intermediate_dir) \ 217 $(LOCAL_PATH)/third_party/libevent/android \ 218 $(PWD)/frameworks/wilhelm/include \ 219 $(PWD)/bionic \ 220 $(PWD)/external/stlport/stlport 221 222 223# Flags passed to only C++ (and not C) files. 224LOCAL_CPPFLAGS_Release := \ 225 -fno-rtti \ 226 -fno-threadsafe-statics \ 227 -fvisibility-inlines-hidden \ 228 -Wno-deprecated \ 229 -Wno-non-virtual-dtor \ 230 -Wno-sign-promo \ 231 -Wno-non-virtual-dtor 232 233 234LOCAL_FDO_SUPPORT_Release := false 235 236LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 237LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 238LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 239LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 240LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 241### Rules for final target. 242 243LOCAL_LDFLAGS_Debug := \ 244 -Wl,-z,now \ 245 -Wl,-z,relro \ 246 -Wl,--fatal-warnings \ 247 -Wl,-z,noexecstack \ 248 -fPIC \ 249 -m64 \ 250 -fuse-ld=gold \ 251 -nostdlib \ 252 -Wl,--no-undefined \ 253 -Wl,--exclude-libs=ALL \ 254 -Wl,--warn-shared-textrel \ 255 -Wl,-O1 \ 256 -Wl,--as-needed 257 258 259LOCAL_LDFLAGS_Release := \ 260 -Wl,-z,now \ 261 -Wl,-z,relro \ 262 -Wl,--fatal-warnings \ 263 -Wl,-z,noexecstack \ 264 -fPIC \ 265 -m64 \ 266 -fuse-ld=gold \ 267 -nostdlib \ 268 -Wl,--no-undefined \ 269 -Wl,--exclude-libs=ALL \ 270 -Wl,-O1 \ 271 -Wl,--as-needed \ 272 -Wl,--gc-sections \ 273 -Wl,--warn-shared-textrel 274 275 276LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 277 278LOCAL_STATIC_LIBRARIES := 279 280# Enable grouping to fix circular references 281LOCAL_GROUP_STATIC_LIBRARIES := true 282 283LOCAL_SHARED_LIBRARIES := \ 284 libstlport \ 285 libdl 286 287# Add target alias to "gyp_all_modules" target. 288.PHONY: gyp_all_modules 289gyp_all_modules: third_party_libevent_libevent_gyp 290 291# Alias gyp target name. 292.PHONY: libevent 293libevent: third_party_libevent_libevent_gyp 294 295include $(BUILD_STATIC_LIBRARY) 296