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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_GENERATED_SOURCES := 21 22GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24LOCAL_SRC_FILES := \ 25 third_party/libevent/buffer.c \ 26 third_party/libevent/evbuffer.c \ 27 third_party/libevent/evdns.c \ 28 third_party/libevent/event.c \ 29 third_party/libevent/event_tagging.c \ 30 third_party/libevent/evrpc.c \ 31 third_party/libevent/evutil.c \ 32 third_party/libevent/http.c \ 33 third_party/libevent/log.c \ 34 third_party/libevent/poll.c \ 35 third_party/libevent/select.c \ 36 third_party/libevent/signal.c \ 37 third_party/libevent/strlcpy.c \ 38 third_party/libevent/epoll.c 39 40 41# Flags passed to both C and C++ files. 42MY_CFLAGS_Debug := \ 43 -fstack-protector \ 44 --param=ssp-buffer-size=4 \ 45 -fno-strict-aliasing \ 46 -Wno-unused-parameter \ 47 -Wno-missing-field-initializers \ 48 -fvisibility=hidden \ 49 -pipe \ 50 -fPIC \ 51 -Wno-unused-local-typedefs \ 52 -Wno-format \ 53 -fno-tree-sra \ 54 -fno-caller-saves \ 55 -Wno-psabi \ 56 -fno-partial-inlining \ 57 -fno-early-inlining \ 58 -fno-tree-copy-prop \ 59 -fno-tree-loop-optimize \ 60 -fno-move-loop-invariants \ 61 -ffunction-sections \ 62 -funwind-tables \ 63 -g \ 64 -fstack-protector \ 65 -fno-short-enums \ 66 -finline-limit=64 \ 67 -Wa,--noexecstack \ 68 -U_FORTIFY_SOURCE \ 69 -Wno-extra \ 70 -Wno-ignored-qualifiers \ 71 -Wno-type-limits \ 72 -Wno-unused-but-set-variable \ 73 -Wno-address \ 74 -Wno-format-security \ 75 -Wno-return-type \ 76 -Wno-sequence-point \ 77 -Os \ 78 -g \ 79 -gdwarf-4 \ 80 -fdata-sections \ 81 -ffunction-sections \ 82 -fomit-frame-pointer \ 83 -funwind-tables 84 85MY_DEFS_Debug := \ 86 '-DV8_DEPRECATION_WARNINGS' \ 87 '-D_FILE_OFFSET_BITS=64' \ 88 '-DNO_TCMALLOC' \ 89 '-DDISABLE_NACL' \ 90 '-DCHROMIUM_BUILD' \ 91 '-DUSE_LIBJPEG_TURBO=1' \ 92 '-DENABLE_WEBRTC=1' \ 93 '-DUSE_PROPRIETARY_CODECS' \ 94 '-DENABLE_BROWSER_CDMS' \ 95 '-DENABLE_CONFIGURATION_POLICY' \ 96 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 97 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 98 '-DENABLE_EGLIMAGE=1' \ 99 '-DCLD_VERSION=1' \ 100 '-DENABLE_PRINTING=1' \ 101 '-DENABLE_MANAGED_USERS=1' \ 102 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 103 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 104 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 105 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 106 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 107 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 108 '-DVIDEO_HOLE=1' \ 109 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 110 '-DHAVE_CONFIG_H' \ 111 '-DUSE_OPENSSL=1' \ 112 '-DUSE_OPENSSL_CERTS=1' \ 113 '-DANDROID' \ 114 '-D__GNU_SOURCE=1' \ 115 '-DUSE_STLPORT=1' \ 116 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 117 '-DCHROME_BUILD_ID=""' \ 118 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 119 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 120 '-D_DEBUG' 121 122 123# Include paths placed before CFLAGS/CPPFLAGS 124LOCAL_C_INCLUDES_Debug := \ 125 $(gyp_shared_intermediate_dir) \ 126 $(LOCAL_PATH)/third_party/libevent/android \ 127 $(PWD)/frameworks/wilhelm/include \ 128 $(PWD)/bionic \ 129 $(PWD)/external/stlport/stlport 130 131 132# Flags passed to only C++ (and not C) files. 133LOCAL_CPPFLAGS_Debug := \ 134 -fno-exceptions \ 135 -fno-rtti \ 136 -fno-threadsafe-statics \ 137 -fvisibility-inlines-hidden \ 138 -Wno-deprecated \ 139 -Wno-abi \ 140 -std=gnu++11 \ 141 -Wno-narrowing \ 142 -Wno-literal-suffix \ 143 -Wno-non-virtual-dtor \ 144 -Wno-sign-promo \ 145 -Wno-non-virtual-dtor 146 147 148# Flags passed to both C and C++ files. 149MY_CFLAGS_Release := \ 150 -fstack-protector \ 151 --param=ssp-buffer-size=4 \ 152 -fno-strict-aliasing \ 153 -Wno-unused-parameter \ 154 -Wno-missing-field-initializers \ 155 -fvisibility=hidden \ 156 -pipe \ 157 -fPIC \ 158 -Wno-unused-local-typedefs \ 159 -Wno-format \ 160 -fno-tree-sra \ 161 -fno-caller-saves \ 162 -Wno-psabi \ 163 -fno-partial-inlining \ 164 -fno-early-inlining \ 165 -fno-tree-copy-prop \ 166 -fno-tree-loop-optimize \ 167 -fno-move-loop-invariants \ 168 -ffunction-sections \ 169 -funwind-tables \ 170 -g \ 171 -fstack-protector \ 172 -fno-short-enums \ 173 -finline-limit=64 \ 174 -Wa,--noexecstack \ 175 -U_FORTIFY_SOURCE \ 176 -Wno-extra \ 177 -Wno-ignored-qualifiers \ 178 -Wno-type-limits \ 179 -Wno-unused-but-set-variable \ 180 -Wno-address \ 181 -Wno-format-security \ 182 -Wno-return-type \ 183 -Wno-sequence-point \ 184 -Os \ 185 -fno-ident \ 186 -fdata-sections \ 187 -ffunction-sections \ 188 -fomit-frame-pointer \ 189 -funwind-tables 190 191MY_DEFS_Release := \ 192 '-DV8_DEPRECATION_WARNINGS' \ 193 '-D_FILE_OFFSET_BITS=64' \ 194 '-DNO_TCMALLOC' \ 195 '-DDISABLE_NACL' \ 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="https://proxy-dev.googlezip.net:443/"' \ 210 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 211 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 212 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 213 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 214 '-DVIDEO_HOLE=1' \ 215 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 216 '-DHAVE_CONFIG_H' \ 217 '-DUSE_OPENSSL=1' \ 218 '-DUSE_OPENSSL_CERTS=1' \ 219 '-DANDROID' \ 220 '-D__GNU_SOURCE=1' \ 221 '-DUSE_STLPORT=1' \ 222 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 223 '-DCHROME_BUILD_ID=""' \ 224 '-DNDEBUG' \ 225 '-DNVALGRIND' \ 226 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 227 228 229# Include paths placed before CFLAGS/CPPFLAGS 230LOCAL_C_INCLUDES_Release := \ 231 $(gyp_shared_intermediate_dir) \ 232 $(LOCAL_PATH)/third_party/libevent/android \ 233 $(PWD)/frameworks/wilhelm/include \ 234 $(PWD)/bionic \ 235 $(PWD)/external/stlport/stlport 236 237 238# Flags passed to only C++ (and not C) files. 239LOCAL_CPPFLAGS_Release := \ 240 -fno-exceptions \ 241 -fno-rtti \ 242 -fno-threadsafe-statics \ 243 -fvisibility-inlines-hidden \ 244 -Wno-deprecated \ 245 -Wno-abi \ 246 -std=gnu++11 \ 247 -Wno-narrowing \ 248 -Wno-literal-suffix \ 249 -Wno-non-virtual-dtor \ 250 -Wno-sign-promo \ 251 -Wno-non-virtual-dtor 252 253 254LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 255LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 256LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 257LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 258### Rules for final target. 259 260LOCAL_SHARED_LIBRARIES := \ 261 libstlport \ 262 libdl 263 264# Add target alias to "gyp_all_modules" target. 265.PHONY: gyp_all_modules 266gyp_all_modules: third_party_libevent_libevent_gyp 267 268# Alias gyp target name. 269.PHONY: libevent 270libevent: third_party_libevent_libevent_gyp 271 272include $(BUILD_STATIC_LIBRARY) 273