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