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 	-fstack-protector \
     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 	-fno-tree-sra \
     54 	-fuse-ld=gold \
     55 	-Wno-psabi \
     56 	-ffunction-sections \
     57 	-funwind-tables \
     58 	-g \
     59 	-fstack-protector \
     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-address \
     68 	-Wno-format-security \
     69 	-Wno-return-type \
     70 	-Wno-sequence-point \
     71 	-Os \
     72 	-g \
     73 	-fomit-frame-pointer \
     74 	-fdata-sections \
     75 	-ffunction-sections
     76 
     77 MY_DEFS_Debug := \
     78 	'-DANGLE_DX11' \
     79 	'-D_FILE_OFFSET_BITS=64' \
     80 	'-DNO_TCMALLOC' \
     81 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     82 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     83 	'-DDISABLE_NACL' \
     84 	'-DCHROMIUM_BUILD' \
     85 	'-DUSE_LIBJPEG_TURBO=1' \
     86 	'-DUSE_PROPRIETARY_CODECS' \
     87 	'-DENABLE_CONFIGURATION_POLICY' \
     88 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     89 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     90 	'-DENABLE_GPU=1' \
     91 	'-DUSE_OPENSSL=1' \
     92 	'-DENABLE_EGLIMAGE=1' \
     93 	'-DENABLE_PRINTING=1' \
     94 	'-DHAVE_CONFIG_H' \
     95 	'-DANDROID' \
     96 	'-D__GNU_SOURCE=1' \
     97 	'-DUSE_STLPORT=1' \
     98 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     99 	'-DCHROME_BUILD_ID=""' \
    100 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    101 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    102 	'-D_DEBUG'
    103 
    104 
    105 # Include paths placed before CFLAGS/CPPFLAGS
    106 LOCAL_C_INCLUDES_Debug := \
    107 	$(LOCAL_PATH)/third_party/libevent/android \
    108 	$(PWD)/frameworks/wilhelm/include \
    109 	$(PWD)/bionic \
    110 	$(PWD)/external/stlport/stlport
    111 
    112 
    113 # Flags passed to only C++ (and not C) files.
    114 LOCAL_CPPFLAGS_Debug := \
    115 	-fno-rtti \
    116 	-fno-threadsafe-statics \
    117 	-fvisibility-inlines-hidden \
    118 	-Wno-deprecated \
    119 	-Wno-abi \
    120 	-Wno-error=c++0x-compat \
    121 	-Wno-non-virtual-dtor \
    122 	-Wno-sign-promo \
    123 	-Wno-non-virtual-dtor
    124 
    125 
    126 # Flags passed to both C and C++ files.
    127 MY_CFLAGS_Release := \
    128 	-fstack-protector \
    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 	-fno-tree-sra \
    139 	-fuse-ld=gold \
    140 	-Wno-psabi \
    141 	-ffunction-sections \
    142 	-funwind-tables \
    143 	-g \
    144 	-fstack-protector \
    145 	-fno-short-enums \
    146 	-finline-limit=64 \
    147 	-Wa,--noexecstack \
    148 	-U_FORTIFY_SOURCE \
    149 	-Wno-extra \
    150 	-Wno-ignored-qualifiers \
    151 	-Wno-type-limits \
    152 	-Wno-address \
    153 	-Wno-format-security \
    154 	-Wno-return-type \
    155 	-Wno-sequence-point \
    156 	-Os \
    157 	-fno-ident \
    158 	-fdata-sections \
    159 	-ffunction-sections \
    160 	-fomit-frame-pointer
    161 
    162 MY_DEFS_Release := \
    163 	'-DANGLE_DX11' \
    164 	'-D_FILE_OFFSET_BITS=64' \
    165 	'-DNO_TCMALLOC' \
    166 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    167 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    168 	'-DDISABLE_NACL' \
    169 	'-DCHROMIUM_BUILD' \
    170 	'-DUSE_LIBJPEG_TURBO=1' \
    171 	'-DUSE_PROPRIETARY_CODECS' \
    172 	'-DENABLE_CONFIGURATION_POLICY' \
    173 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    174 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    175 	'-DENABLE_GPU=1' \
    176 	'-DUSE_OPENSSL=1' \
    177 	'-DENABLE_EGLIMAGE=1' \
    178 	'-DENABLE_PRINTING=1' \
    179 	'-DHAVE_CONFIG_H' \
    180 	'-DANDROID' \
    181 	'-D__GNU_SOURCE=1' \
    182 	'-DUSE_STLPORT=1' \
    183 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    184 	'-DCHROME_BUILD_ID=""' \
    185 	'-DNDEBUG' \
    186 	'-DNVALGRIND' \
    187 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    188 
    189 
    190 # Include paths placed before CFLAGS/CPPFLAGS
    191 LOCAL_C_INCLUDES_Release := \
    192 	$(LOCAL_PATH)/third_party/libevent/android \
    193 	$(PWD)/frameworks/wilhelm/include \
    194 	$(PWD)/bionic \
    195 	$(PWD)/external/stlport/stlport
    196 
    197 
    198 # Flags passed to only C++ (and not C) files.
    199 LOCAL_CPPFLAGS_Release := \
    200 	-fno-rtti \
    201 	-fno-threadsafe-statics \
    202 	-fvisibility-inlines-hidden \
    203 	-Wno-deprecated \
    204 	-Wno-abi \
    205 	-Wno-error=c++0x-compat \
    206 	-Wno-non-virtual-dtor \
    207 	-Wno-sign-promo \
    208 	-Wno-non-virtual-dtor
    209 
    210 
    211 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    212 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    213 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    214 ### Rules for final target.
    215 
    216 LOCAL_LDFLAGS_Debug := \
    217 	-Wl,-z,now \
    218 	-Wl,-z,relro \
    219 	-Wl,-z,noexecstack \
    220 	-fPIC \
    221 	-Wl,-z,relro \
    222 	-Wl,-z,now \
    223 	-fuse-ld=gold \
    224 	-nostdlib \
    225 	-Wl,--no-undefined \
    226 	-Wl,--exclude-libs=ALL \
    227 	-Wl,--icf=safe \
    228 	-Wl,--fatal-warnings \
    229 	-Wl,--gc-sections \
    230 	-Wl,--warn-shared-textrel \
    231 	-Wl,-O1 \
    232 	-Wl,--as-needed
    233 
    234 
    235 LOCAL_LDFLAGS_Release := \
    236 	-Wl,-z,now \
    237 	-Wl,-z,relro \
    238 	-Wl,-z,noexecstack \
    239 	-fPIC \
    240 	-Wl,-z,relro \
    241 	-Wl,-z,now \
    242 	-fuse-ld=gold \
    243 	-nostdlib \
    244 	-Wl,--no-undefined \
    245 	-Wl,--exclude-libs=ALL \
    246 	-Wl,--icf=safe \
    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