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