1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := net_http_server_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_CPP_EXTENSION := .cc 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_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. 34MY_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 68MY_DEFS_Debug := \ 69 '-DV8_DEPRECATION_WARNINGS' \ 70 '-D_FILE_OFFSET_BITS=64' \ 71 '-DNO_TCMALLOC' \ 72 '-DDISABLE_NACL' \ 73 '-DCHROMIUM_BUILD' \ 74 '-DUSE_LIBJPEG_TURBO=1' \ 75 '-DUSE_PROPRIETARY_CODECS' \ 76 '-DENABLE_CONFIGURATION_POLICY' \ 77 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 78 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 79 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 80 '-DUSE_OPENSSL=1' \ 81 '-DENABLE_EGLIMAGE=1' \ 82 '-DCLD_VERSION=1' \ 83 '-DENABLE_PRINTING=1' \ 84 '-DENABLE_MANAGED_USERS=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 98LOCAL_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. 109LOCAL_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. 120MY_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 156MY_DEFS_Release := \ 157 '-DV8_DEPRECATION_WARNINGS' \ 158 '-D_FILE_OFFSET_BITS=64' \ 159 '-DNO_TCMALLOC' \ 160 '-DDISABLE_NACL' \ 161 '-DCHROMIUM_BUILD' \ 162 '-DUSE_LIBJPEG_TURBO=1' \ 163 '-DUSE_PROPRIETARY_CODECS' \ 164 '-DENABLE_CONFIGURATION_POLICY' \ 165 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 166 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 167 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 168 '-DUSE_OPENSSL=1' \ 169 '-DENABLE_EGLIMAGE=1' \ 170 '-DCLD_VERSION=1' \ 171 '-DENABLE_PRINTING=1' \ 172 '-DENABLE_MANAGED_USERS=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 187LOCAL_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. 198LOCAL_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 208LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 209LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 210LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 211### Rules for final target. 212 213LOCAL_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 230LOCAL_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 247LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 248 249LOCAL_STATIC_LIBRARIES := 250 251# Enable grouping to fix circular references 252LOCAL_GROUP_STATIC_LIBRARIES := true 253 254LOCAL_SHARED_LIBRARIES := \ 255 libstlport \ 256 libdl 257 258# Add target alias to "gyp_all_modules" target. 259.PHONY: gyp_all_modules 260gyp_all_modules: net_http_server_gyp 261 262# Alias gyp target name. 263.PHONY: http_server 264http_server: net_http_server_gyp 265 266include $(BUILD_STATIC_LIBRARY) 267