libevent.target.darwin-x86.mk revision 0de6073388f4e2780db8536178b129cd8f6ab386
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 --param=ssp-buffer-size=4 \ 45 -fno-exceptions \ 46 -fno-strict-aliasing \ 47 -Wno-unused-parameter \ 48 -Wno-missing-field-initializers \ 49 -fvisibility=hidden \ 50 -pipe \ 51 -fPIC \ 52 -Wno-format \ 53 -msse2 \ 54 -mfpmath=sse \ 55 -mmmx \ 56 -m32 \ 57 -ffunction-sections \ 58 -funwind-tables \ 59 -g \ 60 -fno-short-enums \ 61 -finline-limit=64 \ 62 -Wa,--noexecstack \ 63 -U_FORTIFY_SOURCE \ 64 -Wno-extra \ 65 -Wno-ignored-qualifiers \ 66 -Wno-type-limits \ 67 -Wno-unused-but-set-variable \ 68 -fno-stack-protector \ 69 -Wno-address \ 70 -Wno-format-security \ 71 -Wno-return-type \ 72 -Wno-sequence-point \ 73 -Os \ 74 -g \ 75 -fomit-frame-pointer \ 76 -fdata-sections \ 77 -ffunction-sections \ 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_CONFIGURATION_POLICY' \ 91 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 92 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 93 '-DENABLE_EGLIMAGE=1' \ 94 '-DCLD_VERSION=1' \ 95 '-DENABLE_PRINTING=1' \ 96 '-DENABLE_MANAGED_USERS=1' \ 97 '-DVIDEO_HOLE=1' \ 98 '-DHAVE_CONFIG_H' \ 99 '-DUSE_OPENSSL=1' \ 100 '-DUSE_OPENSSL_CERTS=1' \ 101 '-DANDROID' \ 102 '-D__GNU_SOURCE=1' \ 103 '-DUSE_STLPORT=1' \ 104 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 105 '-DCHROME_BUILD_ID=""' \ 106 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 107 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 108 '-D_DEBUG' 109 110 111# Include paths placed before CFLAGS/CPPFLAGS 112LOCAL_C_INCLUDES_Debug := \ 113 $(LOCAL_PATH)/third_party/libevent/android \ 114 $(PWD)/frameworks/wilhelm/include \ 115 $(PWD)/bionic \ 116 $(PWD)/external/stlport/stlport 117 118 119# Flags passed to only C++ (and not C) files. 120LOCAL_CPPFLAGS_Debug := \ 121 -fno-rtti \ 122 -fno-threadsafe-statics \ 123 -fvisibility-inlines-hidden \ 124 -Wno-deprecated \ 125 -Wno-non-virtual-dtor \ 126 -Wno-sign-promo \ 127 -Wno-non-virtual-dtor 128 129 130# Flags passed to both C and C++ files. 131MY_CFLAGS_Release := \ 132 --param=ssp-buffer-size=4 \ 133 -fno-exceptions \ 134 -fno-strict-aliasing \ 135 -Wno-unused-parameter \ 136 -Wno-missing-field-initializers \ 137 -fvisibility=hidden \ 138 -pipe \ 139 -fPIC \ 140 -Wno-format \ 141 -msse2 \ 142 -mfpmath=sse \ 143 -mmmx \ 144 -m32 \ 145 -ffunction-sections \ 146 -funwind-tables \ 147 -g \ 148 -fno-short-enums \ 149 -finline-limit=64 \ 150 -Wa,--noexecstack \ 151 -U_FORTIFY_SOURCE \ 152 -Wno-extra \ 153 -Wno-ignored-qualifiers \ 154 -Wno-type-limits \ 155 -Wno-unused-but-set-variable \ 156 -fno-stack-protector \ 157 -Wno-address \ 158 -Wno-format-security \ 159 -Wno-return-type \ 160 -Wno-sequence-point \ 161 -Os \ 162 -fno-ident \ 163 -fdata-sections \ 164 -ffunction-sections \ 165 -fomit-frame-pointer \ 166 -funwind-tables 167 168MY_DEFS_Release := \ 169 '-DV8_DEPRECATION_WARNINGS' \ 170 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 171 '-D_FILE_OFFSET_BITS=64' \ 172 '-DNO_TCMALLOC' \ 173 '-DDISABLE_NACL' \ 174 '-DCHROMIUM_BUILD' \ 175 '-DUSE_LIBJPEG_TURBO=1' \ 176 '-DENABLE_WEBRTC=1' \ 177 '-DUSE_PROPRIETARY_CODECS' \ 178 '-DENABLE_CONFIGURATION_POLICY' \ 179 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 180 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 181 '-DENABLE_EGLIMAGE=1' \ 182 '-DCLD_VERSION=1' \ 183 '-DENABLE_PRINTING=1' \ 184 '-DENABLE_MANAGED_USERS=1' \ 185 '-DVIDEO_HOLE=1' \ 186 '-DHAVE_CONFIG_H' \ 187 '-DUSE_OPENSSL=1' \ 188 '-DUSE_OPENSSL_CERTS=1' \ 189 '-DANDROID' \ 190 '-D__GNU_SOURCE=1' \ 191 '-DUSE_STLPORT=1' \ 192 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 193 '-DCHROME_BUILD_ID=""' \ 194 '-DNDEBUG' \ 195 '-DNVALGRIND' \ 196 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 197 198 199# Include paths placed before CFLAGS/CPPFLAGS 200LOCAL_C_INCLUDES_Release := \ 201 $(LOCAL_PATH)/third_party/libevent/android \ 202 $(PWD)/frameworks/wilhelm/include \ 203 $(PWD)/bionic \ 204 $(PWD)/external/stlport/stlport 205 206 207# Flags passed to only C++ (and not C) files. 208LOCAL_CPPFLAGS_Release := \ 209 -fno-rtti \ 210 -fno-threadsafe-statics \ 211 -fvisibility-inlines-hidden \ 212 -Wno-deprecated \ 213 -Wno-non-virtual-dtor \ 214 -Wno-sign-promo \ 215 -Wno-non-virtual-dtor 216 217 218LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 219LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 220LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 221LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 222### Rules for final target. 223 224LOCAL_LDFLAGS_Debug := \ 225 -Wl,-z,now \ 226 -Wl,-z,relro \ 227 -Wl,--fatal-warnings \ 228 -Wl,-z,noexecstack \ 229 -fPIC \ 230 -m32 \ 231 -fuse-ld=gold \ 232 -nostdlib \ 233 -Wl,--no-undefined \ 234 -Wl,--exclude-libs=ALL \ 235 -Wl,--warn-shared-textrel \ 236 -Wl,-O1 \ 237 -Wl,--as-needed 238 239 240LOCAL_LDFLAGS_Release := \ 241 -Wl,-z,now \ 242 -Wl,-z,relro \ 243 -Wl,--fatal-warnings \ 244 -Wl,-z,noexecstack \ 245 -fPIC \ 246 -m32 \ 247 -fuse-ld=gold \ 248 -nostdlib \ 249 -Wl,--no-undefined \ 250 -Wl,--exclude-libs=ALL \ 251 -Wl,-O1 \ 252 -Wl,--as-needed \ 253 -Wl,--gc-sections \ 254 -Wl,--warn-shared-textrel 255 256 257LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 258 259LOCAL_STATIC_LIBRARIES := 260 261# Enable grouping to fix circular references 262LOCAL_GROUP_STATIC_LIBRARIES := true 263 264LOCAL_SHARED_LIBRARIES := \ 265 libstlport \ 266 libdl 267 268# Add target alias to "gyp_all_modules" target. 269.PHONY: gyp_all_modules 270gyp_all_modules: third_party_libevent_libevent_gyp 271 272# Alias gyp target name. 273.PHONY: libevent 274libevent: third_party_libevent_libevent_gyp 275 276include $(BUILD_STATIC_LIBRARY) 277