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