Home | History | Annotate | Download | only in net
      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 := net_http_server_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_CPP_EXTENSION := .cc
     21 LOCAL_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_SRC_FILES := \
     26 	net/server/http_connection.cc \
     27 	net/server/http_server.cc \
     28 	net/server/http_server_request_info.cc \
     29 	net/server/http_server_response_info.cc \
     30 	net/server/web_socket.cc
     31 
     32 
     33 # Flags passed to both C and C++ files.
     34 MY_CFLAGS_Debug := \
     35 	--param=ssp-buffer-size=4 \
     36 	-Werror \
     37 	-fno-exceptions \
     38 	-fno-strict-aliasing \
     39 	-Wall \
     40 	-Wno-unused-parameter \
     41 	-Wno-missing-field-initializers \
     42 	-fvisibility=hidden \
     43 	-pipe \
     44 	-fPIC \
     45 	-m32 \
     46 	-mmmx \
     47 	-march=pentium4 \
     48 	-msse2 \
     49 	-mfpmath=sse \
     50 	-fuse-ld=gold \
     51 	-ffunction-sections \
     52 	-funwind-tables \
     53 	-g \
     54 	-fno-short-enums \
     55 	-finline-limit=64 \
     56 	-Wa,--noexecstack \
     57 	-U_FORTIFY_SOURCE \
     58 	-Wno-extra \
     59 	-Wno-ignored-qualifiers \
     60 	-Wno-type-limits \
     61 	-fno-stack-protector \
     62 	-Os \
     63 	-g \
     64 	-fomit-frame-pointer \
     65 	-fdata-sections \
     66 	-ffunction-sections
     67 
     68 MY_DEFS_Debug := \
     69 	'-DANGLE_DX11' \
     70 	'-D_FILE_OFFSET_BITS=64' \
     71 	'-DNO_TCMALLOC' \
     72 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     73 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     74 	'-DDISABLE_NACL' \
     75 	'-DCHROMIUM_BUILD' \
     76 	'-DUSE_LIBJPEG_TURBO=1' \
     77 	'-DUSE_PROPRIETARY_CODECS' \
     78 	'-DENABLE_CONFIGURATION_POLICY' \
     79 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     80 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     81 	'-DENABLE_GPU=1' \
     82 	'-DUSE_OPENSSL=1' \
     83 	'-DENABLE_EGLIMAGE=1' \
     84 	'-DENABLE_PRINTING=1' \
     85 	'-D__STDC_CONSTANT_MACROS' \
     86 	'-D__STDC_FORMAT_MACROS' \
     87 	'-DANDROID' \
     88 	'-D__GNU_SOURCE=1' \
     89 	'-DUSE_STLPORT=1' \
     90 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     91 	'-DCHROME_BUILD_ID=""' \
     92 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     93 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     94 	'-D_DEBUG'
     95 
     96 
     97 # Include paths placed before CFLAGS/CPPFLAGS
     98 LOCAL_C_INCLUDES_Debug := \
     99 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    100 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    101 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    102 	$(LOCAL_PATH) \
    103 	$(PWD)/frameworks/wilhelm/include \
    104 	$(PWD)/bionic \
    105 	$(PWD)/external/stlport/stlport
    106 
    107 
    108 # Flags passed to only C++ (and not C) files.
    109 LOCAL_CPPFLAGS_Debug := \
    110 	-fno-rtti \
    111 	-fno-threadsafe-statics \
    112 	-fvisibility-inlines-hidden \
    113 	-Wsign-compare \
    114 	-Wno-error=c++0x-compat \
    115 	-Wno-non-virtual-dtor \
    116 	-Wno-sign-promo
    117 
    118 
    119 # Flags passed to both C and C++ files.
    120 MY_CFLAGS_Release := \
    121 	--param=ssp-buffer-size=4 \
    122 	-Werror \
    123 	-fno-exceptions \
    124 	-fno-strict-aliasing \
    125 	-Wall \
    126 	-Wno-unused-parameter \
    127 	-Wno-missing-field-initializers \
    128 	-fvisibility=hidden \
    129 	-pipe \
    130 	-fPIC \
    131 	-m32 \
    132 	-mmmx \
    133 	-march=pentium4 \
    134 	-msse2 \
    135 	-mfpmath=sse \
    136 	-fuse-ld=gold \
    137 	-ffunction-sections \
    138 	-funwind-tables \
    139 	-g \
    140 	-fno-short-enums \
    141 	-finline-limit=64 \
    142 	-Wa,--noexecstack \
    143 	-U_FORTIFY_SOURCE \
    144 	-Wno-extra \
    145 	-Wno-ignored-qualifiers \
    146 	-Wno-type-limits \
    147 	-fno-stack-protector \
    148 	-Os \
    149 	-fno-ident \
    150 	-fdata-sections \
    151 	-ffunction-sections \
    152 	-fomit-frame-pointer \
    153 	-fno-unwind-tables \
    154 	-fno-asynchronous-unwind-tables
    155 
    156 MY_DEFS_Release := \
    157 	'-DANGLE_DX11' \
    158 	'-D_FILE_OFFSET_BITS=64' \
    159 	'-DNO_TCMALLOC' \
    160 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    161 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    162 	'-DDISABLE_NACL' \
    163 	'-DCHROMIUM_BUILD' \
    164 	'-DUSE_LIBJPEG_TURBO=1' \
    165 	'-DUSE_PROPRIETARY_CODECS' \
    166 	'-DENABLE_CONFIGURATION_POLICY' \
    167 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    168 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    169 	'-DENABLE_GPU=1' \
    170 	'-DUSE_OPENSSL=1' \
    171 	'-DENABLE_EGLIMAGE=1' \
    172 	'-DENABLE_PRINTING=1' \
    173 	'-D__STDC_CONSTANT_MACROS' \
    174 	'-D__STDC_FORMAT_MACROS' \
    175 	'-DANDROID' \
    176 	'-D__GNU_SOURCE=1' \
    177 	'-DUSE_STLPORT=1' \
    178 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    179 	'-DCHROME_BUILD_ID=""' \
    180 	'-DNDEBUG' \
    181 	'-DNVALGRIND' \
    182 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    183 	'-D_FORTIFY_SOURCE=2'
    184 
    185 
    186 # Include paths placed before CFLAGS/CPPFLAGS
    187 LOCAL_C_INCLUDES_Release := \
    188 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    189 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    190 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    191 	$(LOCAL_PATH) \
    192 	$(PWD)/frameworks/wilhelm/include \
    193 	$(PWD)/bionic \
    194 	$(PWD)/external/stlport/stlport
    195 
    196 
    197 # Flags passed to only C++ (and not C) files.
    198 LOCAL_CPPFLAGS_Release := \
    199 	-fno-rtti \
    200 	-fno-threadsafe-statics \
    201 	-fvisibility-inlines-hidden \
    202 	-Wsign-compare \
    203 	-Wno-error=c++0x-compat \
    204 	-Wno-non-virtual-dtor \
    205 	-Wno-sign-promo
    206 
    207 
    208 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    209 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    210 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    211 ### Rules for final target.
    212 
    213 LOCAL_LDFLAGS_Debug := \
    214 	-Wl,-z,now \
    215 	-Wl,-z,relro \
    216 	-Wl,-z,noexecstack \
    217 	-fPIC \
    218 	-m32 \
    219 	-fuse-ld=gold \
    220 	-nostdlib \
    221 	-Wl,--no-undefined \
    222 	-Wl,--exclude-libs=ALL \
    223 	-Wl,--fatal-warnings \
    224 	-Wl,--gc-sections \
    225 	-Wl,--warn-shared-textrel \
    226 	-Wl,-O1 \
    227 	-Wl,--as-needed
    228 
    229 
    230 LOCAL_LDFLAGS_Release := \
    231 	-Wl,-z,now \
    232 	-Wl,-z,relro \
    233 	-Wl,-z,noexecstack \
    234 	-fPIC \
    235 	-m32 \
    236 	-fuse-ld=gold \
    237 	-nostdlib \
    238 	-Wl,--no-undefined \
    239 	-Wl,--exclude-libs=ALL \
    240 	-Wl,-O1 \
    241 	-Wl,--as-needed \
    242 	-Wl,--gc-sections \
    243 	-Wl,--fatal-warnings \
    244 	-Wl,--warn-shared-textrel
    245 
    246 
    247 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    248 
    249 LOCAL_STATIC_LIBRARIES :=
    250 
    251 # Enable grouping to fix circular references
    252 LOCAL_GROUP_STATIC_LIBRARIES := true
    253 
    254 LOCAL_SHARED_LIBRARIES := \
    255 	libstlport \
    256 	libdl
    257 
    258 # Add target alias to "gyp_all_modules" target.
    259 .PHONY: gyp_all_modules
    260 gyp_all_modules: net_http_server_gyp
    261 
    262 # Alias gyp target name.
    263 .PHONY: http_server
    264 http_server: net_http_server_gyp
    265 
    266 include $(BUILD_STATIC_LIBRARY)
    267