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 -fstack-protector \ 43 --param=ssp-buffer-size=4 \ 44 -Werror \ 45 -fno-exceptions \ 46 -fno-strict-aliasing \ 47 -Wall \ 48 -Wno-unused-parameter \ 49 -Wno-missing-field-initializers \ 50 -fvisibility=hidden \ 51 -pipe \ 52 -fPIC \ 53 -fno-tree-sra \ 54 -fuse-ld=gold \ 55 -Wno-psabi \ 56 -ffunction-sections \ 57 -funwind-tables \ 58 -g \ 59 -fstack-protector \ 60 -fno-short-enums \ 61 -finline-limit=64 \ 62 -Wa,--noexecstack \ 63 -U_FORTIFY_SOURCE \ 64 -Wno-extra \ 65 -Wno-ignored-qualifiers \ 66 -Wno-type-limits \ 67 -Os \ 68 -g \ 69 -fomit-frame-pointer \ 70 -fdata-sections \ 71 -ffunction-sections 72 73MY_DEFS_Debug := \ 74 '-DV8_DEPRECATION_WARNINGS' \ 75 '-D_FILE_OFFSET_BITS=64' \ 76 '-DNO_TCMALLOC' \ 77 '-DDISABLE_NACL' \ 78 '-DCHROMIUM_BUILD' \ 79 '-DUSE_LIBJPEG_TURBO=1' \ 80 '-DUSE_PROPRIETARY_CODECS' \ 81 '-DENABLE_CONFIGURATION_POLICY' \ 82 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 83 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 84 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 85 '-DUSE_OPENSSL=1' \ 86 '-DENABLE_EGLIMAGE=1' \ 87 '-DCLD_VERSION=1' \ 88 '-DENABLE_PRINTING=1' \ 89 '-DENABLE_MANAGED_USERS=1' \ 90 '-DWEBKIT_COMMON_IMPLEMENTATION' \ 91 '-DPOSIX_AVOID_MMAP' \ 92 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 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 107LOCAL_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)/skia/config \ 117 $(PWD)/external/skia/include \ 118 $(PWD)/external/skia/include/core \ 119 $(LOCAL_PATH)/third_party/skia/src/core \ 120 $(LOCAL_PATH)/skia/ext \ 121 $(PWD)/external/icu4c/common \ 122 $(PWD)/external/icu4c/i18n \ 123 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 124 $(PWD)/frameworks/wilhelm/include \ 125 $(PWD)/bionic \ 126 $(PWD)/external/stlport/stlport 127 128 129# Flags passed to only C++ (and not C) files. 130LOCAL_CPPFLAGS_Debug := \ 131 -fno-rtti \ 132 -fno-threadsafe-statics \ 133 -fvisibility-inlines-hidden \ 134 -Wsign-compare \ 135 -Wno-abi \ 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 -fstack-protector \ 144 --param=ssp-buffer-size=4 \ 145 -Werror \ 146 -fno-exceptions \ 147 -fno-strict-aliasing \ 148 -Wall \ 149 -Wno-unused-parameter \ 150 -Wno-missing-field-initializers \ 151 -fvisibility=hidden \ 152 -pipe \ 153 -fPIC \ 154 -fno-tree-sra \ 155 -fuse-ld=gold \ 156 -Wno-psabi \ 157 -ffunction-sections \ 158 -funwind-tables \ 159 -g \ 160 -fstack-protector \ 161 -fno-short-enums \ 162 -finline-limit=64 \ 163 -Wa,--noexecstack \ 164 -U_FORTIFY_SOURCE \ 165 -Wno-extra \ 166 -Wno-ignored-qualifiers \ 167 -Wno-type-limits \ 168 -Os \ 169 -fno-ident \ 170 -fdata-sections \ 171 -ffunction-sections \ 172 -fomit-frame-pointer 173 174MY_DEFS_Release := \ 175 '-DV8_DEPRECATION_WARNINGS' \ 176 '-D_FILE_OFFSET_BITS=64' \ 177 '-DNO_TCMALLOC' \ 178 '-DDISABLE_NACL' \ 179 '-DCHROMIUM_BUILD' \ 180 '-DUSE_LIBJPEG_TURBO=1' \ 181 '-DUSE_PROPRIETARY_CODECS' \ 182 '-DENABLE_CONFIGURATION_POLICY' \ 183 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 184 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 185 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 186 '-DUSE_OPENSSL=1' \ 187 '-DENABLE_EGLIMAGE=1' \ 188 '-DCLD_VERSION=1' \ 189 '-DENABLE_PRINTING=1' \ 190 '-DENABLE_MANAGED_USERS=1' \ 191 '-DWEBKIT_COMMON_IMPLEMENTATION' \ 192 '-DPOSIX_AVOID_MMAP' \ 193 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 194 '-DU_USING_ICU_NAMESPACE=0' \ 195 '-D__STDC_CONSTANT_MACROS' \ 196 '-D__STDC_FORMAT_MACROS' \ 197 '-DANDROID' \ 198 '-D__GNU_SOURCE=1' \ 199 '-DUSE_STLPORT=1' \ 200 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 201 '-DCHROME_BUILD_ID=""' \ 202 '-DNDEBUG' \ 203 '-DNVALGRIND' \ 204 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 205 '-D_FORTIFY_SOURCE=2' 206 207 208# Include paths placed before CFLAGS/CPPFLAGS 209LOCAL_C_INCLUDES_Release := \ 210 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 211 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 212 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 213 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 214 $(gyp_intermediate_dir) \ 215 $(gyp_shared_intermediate_dir)/ui \ 216 $(gyp_shared_intermediate_dir)/webkit \ 217 $(LOCAL_PATH) \ 218 $(LOCAL_PATH)/skia/config \ 219 $(PWD)/external/skia/include \ 220 $(PWD)/external/skia/include/core \ 221 $(LOCAL_PATH)/third_party/skia/src/core \ 222 $(LOCAL_PATH)/skia/ext \ 223 $(PWD)/external/icu4c/common \ 224 $(PWD)/external/icu4c/i18n \ 225 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 226 $(PWD)/frameworks/wilhelm/include \ 227 $(PWD)/bionic \ 228 $(PWD)/external/stlport/stlport 229 230 231# Flags passed to only C++ (and not C) files. 232LOCAL_CPPFLAGS_Release := \ 233 -fno-rtti \ 234 -fno-threadsafe-statics \ 235 -fvisibility-inlines-hidden \ 236 -Wsign-compare \ 237 -Wno-abi \ 238 -Wno-error=c++0x-compat \ 239 -Wno-non-virtual-dtor \ 240 -Wno-sign-promo 241 242 243LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 244LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 245LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 246### Rules for final target. 247 248LOCAL_LDFLAGS_Debug := \ 249 -Wl,-z,now \ 250 -Wl,-z,relro \ 251 -Wl,-z,noexecstack \ 252 -fPIC \ 253 -Wl,-z,relro \ 254 -Wl,-z,now \ 255 -fuse-ld=gold \ 256 -nostdlib \ 257 -Wl,--no-undefined \ 258 -Wl,--exclude-libs=ALL \ 259 -Wl,--icf=safe \ 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 -Wl,-z,relro \ 273 -Wl,-z,now \ 274 -fuse-ld=gold \ 275 -nostdlib \ 276 -Wl,--no-undefined \ 277 -Wl,--exclude-libs=ALL \ 278 -Wl,--icf=safe \ 279 -Wl,-O1 \ 280 -Wl,--as-needed \ 281 -Wl,--gc-sections \ 282 -Wl,--fatal-warnings \ 283 -Wl,--warn-shared-textrel 284 285 286LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 287 288LOCAL_STATIC_LIBRARIES := \ 289 ui_ui_gyp 290 291# Enable grouping to fix circular references 292LOCAL_GROUP_STATIC_LIBRARIES := true 293 294LOCAL_SHARED_LIBRARIES := \ 295 libskia \ 296 libstlport \ 297 libdl 298 299# Add target alias to "gyp_all_modules" target. 300.PHONY: gyp_all_modules 301gyp_all_modules: webkit_common_webkit_common_gyp 302 303# Alias gyp target name. 304.PHONY: webkit_common 305webkit_common: webkit_common_webkit_common_gyp 306 307include $(BUILD_STATIC_LIBRARY) 308