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_libevent_libevent_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_GENERATED_SOURCES := 21 22 GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24 LOCAL_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. 42 MY_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 -m64 \ 54 -march=x86-64 \ 55 -ffunction-sections \ 56 -funwind-tables \ 57 -g \ 58 -fstack-protector \ 59 -fno-short-enums \ 60 -finline-limit=64 \ 61 -Wa,--noexecstack \ 62 -U_FORTIFY_SOURCE \ 63 -Wno-extra \ 64 -Wno-ignored-qualifiers \ 65 -Wno-type-limits \ 66 -Wno-unused-but-set-variable \ 67 -Wno-address \ 68 -Wno-format-security \ 69 -Wno-return-type \ 70 -Wno-sequence-point \ 71 -Os \ 72 -g \ 73 -gdwarf-4 \ 74 -fdata-sections \ 75 -ffunction-sections \ 76 -fomit-frame-pointer \ 77 -funwind-tables 78 79 MY_DEFS_Debug := \ 80 '-DV8_DEPRECATION_WARNINGS' \ 81 '-D_FILE_OFFSET_BITS=64' \ 82 '-DNO_TCMALLOC' \ 83 '-DDISABLE_NACL' \ 84 '-DCHROMIUM_BUILD' \ 85 '-DUSE_LIBJPEG_TURBO=1' \ 86 '-DENABLE_WEBRTC=1' \ 87 '-DUSE_PROPRIETARY_CODECS' \ 88 '-DENABLE_BROWSER_CDMS' \ 89 '-DENABLE_CONFIGURATION_POLICY' \ 90 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 91 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 92 '-DENABLE_EGLIMAGE=1' \ 93 '-DCLD_VERSION=1' \ 94 '-DENABLE_PRINTING=1' \ 95 '-DENABLE_MANAGED_USERS=1' \ 96 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 97 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 98 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 99 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 100 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 101 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 102 '-DVIDEO_HOLE=1' \ 103 '-DENABLE_LOAD_COMPLETION_HACKS=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 118 LOCAL_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. 127 LOCAL_CPPFLAGS_Debug := \ 128 -fno-exceptions \ 129 -fno-rtti \ 130 -fno-threadsafe-statics \ 131 -fvisibility-inlines-hidden \ 132 -Wno-deprecated \ 133 -std=gnu++11 \ 134 -Wno-narrowing \ 135 -Wno-literal-suffix \ 136 -Wno-non-virtual-dtor \ 137 -Wno-sign-promo \ 138 -Wno-non-virtual-dtor 139 140 141 # Flags passed to both C and C++ files. 142 MY_CFLAGS_Release := \ 143 -fstack-protector \ 144 --param=ssp-buffer-size=4 \ 145 -fno-strict-aliasing \ 146 -Wno-unused-parameter \ 147 -Wno-missing-field-initializers \ 148 -fvisibility=hidden \ 149 -pipe \ 150 -fPIC \ 151 -Wno-unused-local-typedefs \ 152 -Wno-format \ 153 -m64 \ 154 -march=x86-64 \ 155 -ffunction-sections \ 156 -funwind-tables \ 157 -g \ 158 -fstack-protector \ 159 -fno-short-enums \ 160 -finline-limit=64 \ 161 -Wa,--noexecstack \ 162 -U_FORTIFY_SOURCE \ 163 -Wno-extra \ 164 -Wno-ignored-qualifiers \ 165 -Wno-type-limits \ 166 -Wno-unused-but-set-variable \ 167 -Wno-address \ 168 -Wno-format-security \ 169 -Wno-return-type \ 170 -Wno-sequence-point \ 171 -Os \ 172 -fno-ident \ 173 -fdata-sections \ 174 -ffunction-sections \ 175 -fomit-frame-pointer \ 176 -funwind-tables 177 178 MY_DEFS_Release := \ 179 '-DV8_DEPRECATION_WARNINGS' \ 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="https://proxy-dev.googlezip.net:443/"' \ 197 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 198 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 199 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 200 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 201 '-DVIDEO_HOLE=1' \ 202 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 203 '-DHAVE_CONFIG_H' \ 204 '-DUSE_OPENSSL=1' \ 205 '-DUSE_OPENSSL_CERTS=1' \ 206 '-DANDROID' \ 207 '-D__GNU_SOURCE=1' \ 208 '-DUSE_STLPORT=1' \ 209 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 210 '-DCHROME_BUILD_ID=""' \ 211 '-DNDEBUG' \ 212 '-DNVALGRIND' \ 213 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 214 215 216 # Include paths placed before CFLAGS/CPPFLAGS 217 LOCAL_C_INCLUDES_Release := \ 218 $(gyp_shared_intermediate_dir) \ 219 $(LOCAL_PATH)/third_party/libevent/android \ 220 $(PWD)/frameworks/wilhelm/include \ 221 $(PWD)/bionic \ 222 $(PWD)/external/stlport/stlport 223 224 225 # Flags passed to only C++ (and not C) files. 226 LOCAL_CPPFLAGS_Release := \ 227 -fno-exceptions \ 228 -fno-rtti \ 229 -fno-threadsafe-statics \ 230 -fvisibility-inlines-hidden \ 231 -Wno-deprecated \ 232 -std=gnu++11 \ 233 -Wno-narrowing \ 234 -Wno-literal-suffix \ 235 -Wno-non-virtual-dtor \ 236 -Wno-sign-promo \ 237 -Wno-non-virtual-dtor 238 239 240 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 241 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 242 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 243 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 244 ### Rules for final target. 245 246 LOCAL_SHARED_LIBRARIES := \ 247 libstlport \ 248 libdl 249 250 # Add target alias to "gyp_all_modules" target. 251 .PHONY: gyp_all_modules 252 gyp_all_modules: third_party_libevent_libevent_gyp 253 254 # Alias gyp target name. 255 .PHONY: libevent 256 libevent: third_party_libevent_libevent_gyp 257 258 include $(BUILD_STATIC_LIBRARY) 259