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 := webkit_common_user_agent_user_agent_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 $(call intermediates-dir-for,GYP,webkit_common_user_agent_webkit_version_gyp)/webkit_version.stamp 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 webkit/common/user_agent/user_agent.cc \ 28 webkit/common/user_agent/user_agent_util.cc 29 30 31 # Flags passed to both C and C++ files. 32 MY_CFLAGS_Debug := \ 33 -fstack-protector \ 34 --param=ssp-buffer-size=4 \ 35 \ 36 -fno-exceptions \ 37 -fno-strict-aliasing \ 38 -Wall \ 39 -Wno-unused-parameter \ 40 -Wno-missing-field-initializers \ 41 -fvisibility=hidden \ 42 -pipe \ 43 -fPIC \ 44 -EL \ 45 -mhard-float \ 46 -ffunction-sections \ 47 -funwind-tables \ 48 -g \ 49 -fstack-protector \ 50 -fno-short-enums \ 51 -finline-limit=64 \ 52 -Wa,--noexecstack \ 53 -U_FORTIFY_SOURCE \ 54 -Wno-extra \ 55 -Wno-ignored-qualifiers \ 56 -Wno-type-limits \ 57 -Wno-address \ 58 -Wno-format-security \ 59 -Wno-return-type \ 60 -Wno-sequence-point \ 61 -Os \ 62 -g \ 63 -fomit-frame-pointer \ 64 -fdata-sections \ 65 -ffunction-sections 66 67 MY_DEFS_Debug := \ 68 '-DANGLE_DX11' \ 69 '-D_FILE_OFFSET_BITS=64' \ 70 '-DNO_TCMALLOC' \ 71 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 72 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 73 '-DDISABLE_NACL' \ 74 '-DCHROMIUM_BUILD' \ 75 '-DUSE_LIBJPEG_TURBO=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_CONFIGURATION_POLICY' \ 78 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 79 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 80 '-DENABLE_GPU=1' \ 81 '-DUSE_OPENSSL=1' \ 82 '-DENABLE_EGLIMAGE=1' \ 83 '-DENABLE_PRINTING=1' \ 84 '-DWEBKIT_USER_AGENT_IMPLEMENTATION' \ 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 $(gyp_shared_intermediate_dir) \ 104 $(PWD)/frameworks/wilhelm/include \ 105 $(PWD)/bionic \ 106 $(PWD)/external/stlport/stlport 107 108 109 # Flags passed to only C++ (and not C) files. 110 LOCAL_CPPFLAGS_Debug := \ 111 -fno-rtti \ 112 -fno-threadsafe-statics \ 113 -fvisibility-inlines-hidden \ 114 -Wsign-compare \ 115 -Wno-uninitialized \ 116 -Wno-error=c++0x-compat \ 117 -Wno-non-virtual-dtor \ 118 -Wno-sign-promo \ 119 -Wno-non-virtual-dtor 120 121 122 # Flags passed to both C and C++ files. 123 MY_CFLAGS_Release := \ 124 -fstack-protector \ 125 --param=ssp-buffer-size=4 \ 126 \ 127 -fno-exceptions \ 128 -fno-strict-aliasing \ 129 -Wall \ 130 -Wno-unused-parameter \ 131 -Wno-missing-field-initializers \ 132 -fvisibility=hidden \ 133 -pipe \ 134 -fPIC \ 135 -EL \ 136 -mhard-float \ 137 -ffunction-sections \ 138 -funwind-tables \ 139 -g \ 140 -fstack-protector \ 141 -fno-short-enums \ 142 -finline-limit=64 \ 143 -Wa,--noexecstack \ 144 -U_FORTIFY_SOURCE \ 145 -Wno-extra \ 146 -Wno-ignored-qualifiers \ 147 -Wno-type-limits \ 148 -Wno-address \ 149 -Wno-format-security \ 150 -Wno-return-type \ 151 -Wno-sequence-point \ 152 -Os \ 153 -fno-ident \ 154 -fdata-sections \ 155 -ffunction-sections \ 156 -fomit-frame-pointer 157 158 MY_DEFS_Release := \ 159 '-DANGLE_DX11' \ 160 '-D_FILE_OFFSET_BITS=64' \ 161 '-DNO_TCMALLOC' \ 162 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 163 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 164 '-DDISABLE_NACL' \ 165 '-DCHROMIUM_BUILD' \ 166 '-DUSE_LIBJPEG_TURBO=1' \ 167 '-DUSE_PROPRIETARY_CODECS' \ 168 '-DENABLE_CONFIGURATION_POLICY' \ 169 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 170 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 171 '-DENABLE_GPU=1' \ 172 '-DUSE_OPENSSL=1' \ 173 '-DENABLE_EGLIMAGE=1' \ 174 '-DENABLE_PRINTING=1' \ 175 '-DWEBKIT_USER_AGENT_IMPLEMENTATION' \ 176 '-D__STDC_CONSTANT_MACROS' \ 177 '-D__STDC_FORMAT_MACROS' \ 178 '-DANDROID' \ 179 '-D__GNU_SOURCE=1' \ 180 '-DUSE_STLPORT=1' \ 181 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 182 '-DCHROME_BUILD_ID=""' \ 183 '-DNDEBUG' \ 184 '-DNVALGRIND' \ 185 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 186 187 188 # Include paths placed before CFLAGS/CPPFLAGS 189 LOCAL_C_INCLUDES_Release := \ 190 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 191 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 192 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 193 $(LOCAL_PATH) \ 194 $(gyp_shared_intermediate_dir) \ 195 $(PWD)/frameworks/wilhelm/include \ 196 $(PWD)/bionic \ 197 $(PWD)/external/stlport/stlport 198 199 200 # Flags passed to only C++ (and not C) files. 201 LOCAL_CPPFLAGS_Release := \ 202 -fno-rtti \ 203 -fno-threadsafe-statics \ 204 -fvisibility-inlines-hidden \ 205 -Wsign-compare \ 206 -Wno-uninitialized \ 207 -Wno-error=c++0x-compat \ 208 -Wno-non-virtual-dtor \ 209 -Wno-sign-promo \ 210 -Wno-non-virtual-dtor 211 212 213 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 214 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 215 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 216 ### Rules for final target. 217 218 LOCAL_LDFLAGS_Debug := \ 219 -Wl,-z,now \ 220 -Wl,-z,relro \ 221 -Wl,-z,noexecstack \ 222 -fPIC \ 223 -EL \ 224 -Wl,--no-keep-memory \ 225 -nostdlib \ 226 -Wl,--no-undefined \ 227 -Wl,--exclude-libs=ALL \ 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 -EL \ 241 -Wl,--no-keep-memory \ 242 -nostdlib \ 243 -Wl,--no-undefined \ 244 -Wl,--exclude-libs=ALL \ 245 -Wl,-O1 \ 246 -Wl,--as-needed \ 247 -Wl,--gc-sections \ 248 -Wl,--fatal-warnings \ 249 -Wl,--warn-shared-textrel 250 251 252 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 253 254 LOCAL_STATIC_LIBRARIES := 255 256 # Enable grouping to fix circular references 257 LOCAL_GROUP_STATIC_LIBRARIES := true 258 259 LOCAL_SHARED_LIBRARIES := \ 260 libstlport \ 261 libdl 262 263 # Add target alias to "gyp_all_modules" target. 264 .PHONY: gyp_all_modules 265 gyp_all_modules: webkit_common_user_agent_user_agent_gyp 266 267 # Alias gyp target name. 268 .PHONY: user_agent 269 user_agent: webkit_common_user_agent_user_agent_gyp 270 271 include $(BUILD_STATIC_LIBRARY) 272