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_webkit_common_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,skia_skia_gyp)/skia.stamp \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \ 16 $(call intermediates-dir-for,GYP,ui_ui_resources_gyp)/ui_resources.stamp \ 17 $(call intermediates-dir-for,GYP,webkit_webkit_resources_gyp)/webkit_resources.stamp 18 19 GYP_GENERATED_OUTPUTS := 20 21 # Make sure our deps and generated files are built first. 22 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24 LOCAL_CPP_EXTENSION := .cc 25 LOCAL_GENERATED_SOURCES := 26 27 GYP_COPIED_SOURCE_ORIGIN_DIRS := 28 29 LOCAL_SRC_FILES := \ 30 webkit/common/cursors/webcursor.cc \ 31 webkit/common/cursors/webcursor_android.cc \ 32 webkit/common/data_element.cc \ 33 webkit/common/resource_devtools_info.cc \ 34 webkit/common/resource_request_body.cc \ 35 webkit/common/resource_response_info.cc \ 36 webkit/common/resource_type.cc \ 37 webkit/common/webpreferences.cc 38 39 40 # Flags passed to both C and C++ files. 41 MY_CFLAGS_Debug := \ 42 --param=ssp-buffer-size=4 \ 43 -Werror \ 44 -fno-exceptions \ 45 -fno-strict-aliasing \ 46 -Wall \ 47 -Wno-unused-parameter \ 48 -Wno-missing-field-initializers \ 49 -fvisibility=hidden \ 50 -pipe \ 51 -fPIC \ 52 -m32 \ 53 -mmmx \ 54 -march=pentium4 \ 55 -msse2 \ 56 -mfpmath=sse \ 57 -fuse-ld=gold \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fno-short-enums \ 62 -finline-limit=64 \ 63 -Wa,--noexecstack \ 64 -U_FORTIFY_SOURCE \ 65 -Wno-extra \ 66 -Wno-ignored-qualifiers \ 67 -Wno-type-limits \ 68 -fno-stack-protector \ 69 -Os \ 70 -g \ 71 -fomit-frame-pointer \ 72 -fdata-sections \ 73 -ffunction-sections 74 75 MY_DEFS_Debug := \ 76 '-DANGLE_DX11' \ 77 '-D_FILE_OFFSET_BITS=64' \ 78 '-DNO_TCMALLOC' \ 79 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 80 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 81 '-DDISABLE_NACL' \ 82 '-DCHROMIUM_BUILD' \ 83 '-DUSE_LIBJPEG_TURBO=1' \ 84 '-DUSE_PROPRIETARY_CODECS' \ 85 '-DENABLE_CONFIGURATION_POLICY' \ 86 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 87 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 88 '-DENABLE_GPU=1' \ 89 '-DUSE_OPENSSL=1' \ 90 '-DENABLE_EGLIMAGE=1' \ 91 '-DENABLE_PRINTING=1' \ 92 '-DWEBKIT_COMMON_IMPLEMENTATION' \ 93 '-DU_USING_ICU_NAMESPACE=0' \ 94 '-D__STDC_CONSTANT_MACROS' \ 95 '-D__STDC_FORMAT_MACROS' \ 96 '-DANDROID' \ 97 '-D__GNU_SOURCE=1' \ 98 '-DUSE_STLPORT=1' \ 99 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 100 '-DCHROME_BUILD_ID=""' \ 101 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 102 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 103 '-D_DEBUG' 104 105 106 # Include paths placed before CFLAGS/CPPFLAGS 107 LOCAL_C_INCLUDES_Debug := \ 108 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 109 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 110 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 111 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 112 $(gyp_intermediate_dir) \ 113 $(gyp_shared_intermediate_dir)/ui \ 114 $(gyp_shared_intermediate_dir)/webkit \ 115 $(LOCAL_PATH) \ 116 $(LOCAL_PATH)/third_party/skia/src/core \ 117 $(LOCAL_PATH)/skia/ext \ 118 $(PWD)/external/icu4c/common \ 119 $(PWD)/external/icu4c/i18n \ 120 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 121 $(PWD)/frameworks/wilhelm/include \ 122 $(PWD)/bionic \ 123 $(PWD)/external/stlport/stlport 124 125 126 # Flags passed to only C++ (and not C) files. 127 LOCAL_CPPFLAGS_Debug := \ 128 -fno-rtti \ 129 -fno-threadsafe-statics \ 130 -fvisibility-inlines-hidden \ 131 -Wsign-compare \ 132 -Wno-error=c++0x-compat \ 133 -Wno-non-virtual-dtor \ 134 -Wno-sign-promo 135 136 137 # Flags passed to both C and C++ files. 138 MY_CFLAGS_Release := \ 139 --param=ssp-buffer-size=4 \ 140 -Werror \ 141 -fno-exceptions \ 142 -fno-strict-aliasing \ 143 -Wall \ 144 -Wno-unused-parameter \ 145 -Wno-missing-field-initializers \ 146 -fvisibility=hidden \ 147 -pipe \ 148 -fPIC \ 149 -m32 \ 150 -mmmx \ 151 -march=pentium4 \ 152 -msse2 \ 153 -mfpmath=sse \ 154 -fuse-ld=gold \ 155 -ffunction-sections \ 156 -funwind-tables \ 157 -g \ 158 -fno-short-enums \ 159 -finline-limit=64 \ 160 -Wa,--noexecstack \ 161 -U_FORTIFY_SOURCE \ 162 -Wno-extra \ 163 -Wno-ignored-qualifiers \ 164 -Wno-type-limits \ 165 -fno-stack-protector \ 166 -Os \ 167 -fno-ident \ 168 -fdata-sections \ 169 -ffunction-sections \ 170 -fomit-frame-pointer \ 171 -fno-unwind-tables \ 172 -fno-asynchronous-unwind-tables 173 174 MY_DEFS_Release := \ 175 '-DANGLE_DX11' \ 176 '-D_FILE_OFFSET_BITS=64' \ 177 '-DNO_TCMALLOC' \ 178 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 179 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 180 '-DDISABLE_NACL' \ 181 '-DCHROMIUM_BUILD' \ 182 '-DUSE_LIBJPEG_TURBO=1' \ 183 '-DUSE_PROPRIETARY_CODECS' \ 184 '-DENABLE_CONFIGURATION_POLICY' \ 185 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 186 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 187 '-DENABLE_GPU=1' \ 188 '-DUSE_OPENSSL=1' \ 189 '-DENABLE_EGLIMAGE=1' \ 190 '-DENABLE_PRINTING=1' \ 191 '-DWEBKIT_COMMON_IMPLEMENTATION' \ 192 '-DU_USING_ICU_NAMESPACE=0' \ 193 '-D__STDC_CONSTANT_MACROS' \ 194 '-D__STDC_FORMAT_MACROS' \ 195 '-DANDROID' \ 196 '-D__GNU_SOURCE=1' \ 197 '-DUSE_STLPORT=1' \ 198 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 199 '-DCHROME_BUILD_ID=""' \ 200 '-DNDEBUG' \ 201 '-DNVALGRIND' \ 202 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 203 '-D_FORTIFY_SOURCE=2' 204 205 206 # Include paths placed before CFLAGS/CPPFLAGS 207 LOCAL_C_INCLUDES_Release := \ 208 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 209 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 210 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 211 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 212 $(gyp_intermediate_dir) \ 213 $(gyp_shared_intermediate_dir)/ui \ 214 $(gyp_shared_intermediate_dir)/webkit \ 215 $(LOCAL_PATH) \ 216 $(LOCAL_PATH)/third_party/skia/src/core \ 217 $(LOCAL_PATH)/skia/ext \ 218 $(PWD)/external/icu4c/common \ 219 $(PWD)/external/icu4c/i18n \ 220 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 221 $(PWD)/frameworks/wilhelm/include \ 222 $(PWD)/bionic \ 223 $(PWD)/external/stlport/stlport 224 225 226 # Flags passed to only C++ (and not C) files. 227 LOCAL_CPPFLAGS_Release := \ 228 -fno-rtti \ 229 -fno-threadsafe-statics \ 230 -fvisibility-inlines-hidden \ 231 -Wsign-compare \ 232 -Wno-error=c++0x-compat \ 233 -Wno-non-virtual-dtor \ 234 -Wno-sign-promo 235 236 237 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 238 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 239 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 240 ### Rules for final target. 241 242 LOCAL_LDFLAGS_Debug := \ 243 -Wl,-z,now \ 244 -Wl,-z,relro \ 245 -Wl,-z,noexecstack \ 246 -fPIC \ 247 -m32 \ 248 -fuse-ld=gold \ 249 -nostdlib \ 250 -Wl,--no-undefined \ 251 -Wl,--exclude-libs=ALL \ 252 -Wl,--fatal-warnings \ 253 -Wl,--gc-sections \ 254 -Wl,--warn-shared-textrel \ 255 -Wl,-O1 \ 256 -Wl,--as-needed 257 258 259 LOCAL_LDFLAGS_Release := \ 260 -Wl,-z,now \ 261 -Wl,-z,relro \ 262 -Wl,-z,noexecstack \ 263 -fPIC \ 264 -m32 \ 265 -fuse-ld=gold \ 266 -nostdlib \ 267 -Wl,--no-undefined \ 268 -Wl,--exclude-libs=ALL \ 269 -Wl,-O1 \ 270 -Wl,--as-needed \ 271 -Wl,--gc-sections \ 272 -Wl,--fatal-warnings \ 273 -Wl,--warn-shared-textrel 274 275 276 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 277 278 LOCAL_STATIC_LIBRARIES := \ 279 ui_ui_gyp 280 281 # Enable grouping to fix circular references 282 LOCAL_GROUP_STATIC_LIBRARIES := true 283 284 LOCAL_SHARED_LIBRARIES := \ 285 libskia \ 286 libstlport \ 287 libdl 288 289 # Add target alias to "gyp_all_modules" target. 290 .PHONY: gyp_all_modules 291 gyp_all_modules: webkit_common_webkit_common_gyp 292 293 # Alias gyp target name. 294 .PHONY: webkit_common 295 webkit_common: webkit_common_webkit_common_gyp 296 297 include $(BUILD_STATIC_LIBRARY) 298