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