Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 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 \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 29 | net/server/http_server_response_info.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 30 | net/server/web_socket.cc |
| 31 | |
| 32 | |
| 33 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 34 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 35 | -fstack-protector \ |
| 36 | --param=ssp-buffer-size=4 \ |
| 37 | \ |
| 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 | -EL \ |
| 47 | -mhard-float \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 48 | -ffunction-sections \ |
| 49 | -funwind-tables \ |
| 50 | -g \ |
| 51 | -fstack-protector \ |
| 52 | -fno-short-enums \ |
| 53 | -finline-limit=64 \ |
| 54 | -Wa,--noexecstack \ |
| 55 | -U_FORTIFY_SOURCE \ |
| 56 | -Wno-extra \ |
| 57 | -Wno-ignored-qualifiers \ |
| 58 | -Wno-type-limits \ |
| 59 | -Os \ |
| 60 | -g \ |
| 61 | -fomit-frame-pointer \ |
| 62 | -fdata-sections \ |
| 63 | -ffunction-sections |
| 64 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 65 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 66 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 67 | '-DV8_DEPRECATION_WARNINGS' \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 68 | '-D_FILE_OFFSET_BITS=64' \ |
| 69 | '-DNO_TCMALLOC' \ |
| 70 | '-DDISABLE_NACL' \ |
| 71 | '-DCHROMIUM_BUILD' \ |
| 72 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 73 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 74 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 75 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 76 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 77 | '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 78 | '-DUSE_OPENSSL=1' \ |
| 79 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 80 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 81 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 82 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 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 | |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 95 | |
| 96 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 97 | LOCAL_C_INCLUDES_Debug := \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 98 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 99 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 100 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 101 | $(LOCAL_PATH) \ |
| 102 | $(PWD)/frameworks/wilhelm/include \ |
| 103 | $(PWD)/bionic \ |
| 104 | $(PWD)/external/stlport/stlport |
| 105 | |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 106 | |
| 107 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 108 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 109 | -fno-rtti \ |
| 110 | -fno-threadsafe-statics \ |
| 111 | -fvisibility-inlines-hidden \ |
| 112 | -Wsign-compare \ |
| 113 | -Wno-uninitialized \ |
| 114 | -Wno-error=c++0x-compat \ |
| 115 | -Wno-non-virtual-dtor \ |
| 116 | -Wno-sign-promo |
| 117 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 118 | |
| 119 | # Flags passed to both C and C++ files. |
| 120 | MY_CFLAGS_Release := \ |
| 121 | -fstack-protector \ |
| 122 | --param=ssp-buffer-size=4 \ |
| 123 | \ |
| 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 | -EL \ |
| 133 | -mhard-float \ |
| 134 | -ffunction-sections \ |
| 135 | -funwind-tables \ |
| 136 | -g \ |
| 137 | -fstack-protector \ |
| 138 | -fno-short-enums \ |
| 139 | -finline-limit=64 \ |
| 140 | -Wa,--noexecstack \ |
| 141 | -U_FORTIFY_SOURCE \ |
| 142 | -Wno-extra \ |
| 143 | -Wno-ignored-qualifiers \ |
| 144 | -Wno-type-limits \ |
| 145 | -Os \ |
| 146 | -fno-ident \ |
| 147 | -fdata-sections \ |
| 148 | -ffunction-sections \ |
| 149 | -fomit-frame-pointer |
| 150 | |
| 151 | MY_DEFS_Release := \ |
| 152 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 153 | '-DV8_DEPRECATION_WARNINGS' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 154 | '-D_FILE_OFFSET_BITS=64' \ |
| 155 | '-DNO_TCMALLOC' \ |
| 156 | '-DDISABLE_NACL' \ |
| 157 | '-DCHROMIUM_BUILD' \ |
| 158 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 159 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 160 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 161 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 162 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 163 | '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 164 | '-DUSE_OPENSSL=1' \ |
| 165 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 166 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 167 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 168 | '-DENABLE_MANAGED_USERS=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 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 := \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 185 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 186 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 187 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 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-uninitialized \ |
| 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)) |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 209 | ### Rules for final target. |
| 210 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 211 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 212 | -Wl,-z,now \ |
| 213 | -Wl,-z,relro \ |
| 214 | -Wl,-z,noexecstack \ |
| 215 | -fPIC \ |
| 216 | -EL \ |
| 217 | -Wl,--no-keep-memory \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 218 | -nostdlib \ |
| 219 | -Wl,--no-undefined \ |
| 220 | -Wl,--exclude-libs=ALL \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 221 | -Wl,--fatal-warnings \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 222 | -Wl,--gc-sections \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 223 | -Wl,--warn-shared-textrel \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 224 | -Wl,-O1 \ |
| 225 | -Wl,--as-needed |
| 226 | |
| 227 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 228 | LOCAL_LDFLAGS_Release := \ |
| 229 | -Wl,-z,now \ |
| 230 | -Wl,-z,relro \ |
| 231 | -Wl,-z,noexecstack \ |
| 232 | -fPIC \ |
| 233 | -EL \ |
| 234 | -Wl,--no-keep-memory \ |
| 235 | -nostdlib \ |
| 236 | -Wl,--no-undefined \ |
| 237 | -Wl,--exclude-libs=ALL \ |
| 238 | -Wl,-O1 \ |
| 239 | -Wl,--as-needed \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 240 | -Wl,--gc-sections \ |
| 241 | -Wl,--fatal-warnings \ |
| 242 | -Wl,--warn-shared-textrel |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 243 | |
| 244 | |
| 245 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 246 | |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 247 | LOCAL_STATIC_LIBRARIES := |
| 248 | |
| 249 | # Enable grouping to fix circular references |
| 250 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 251 | |
| 252 | LOCAL_SHARED_LIBRARIES := \ |
| 253 | libstlport \ |
| 254 | libdl |
| 255 | |
| 256 | # Add target alias to "gyp_all_modules" target. |
| 257 | .PHONY: gyp_all_modules |
| 258 | gyp_all_modules: net_http_server_gyp |
| 259 | |
| 260 | # Alias gyp target name. |
| 261 | .PHONY: http_server |
| 262 | http_server: net_http_server_gyp |
| 263 | |
| 264 | include $(BUILD_STATIC_LIBRARY) |