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,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 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 -fstack-protector \ 43 --param=ssp-buffer-size=4 \ 44 \ 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 -EL \ 54 -mhard-float \ 55 -ffunction-sections \ 56 -funwind-tables \ 57 -g \ 58 -fstack-protector \ 59 -fno-short-enums \ 60 -finline-limit=64 \ 61 -Wa,--noexecstack \ 62 -U_FORTIFY_SOURCE \ 63 -Wno-extra \ 64 -Wno-ignored-qualifiers \ 65 -Wno-type-limits \ 66 -Os \ 67 -g \ 68 -fomit-frame-pointer \ 69 -fdata-sections \ 70 -ffunction-sections 71 72 MY_DEFS_Debug := \ 73 '-DV8_DEPRECATION_WARNINGS' \ 74 '-D_FILE_OFFSET_BITS=64' \ 75 '-DNO_TCMALLOC' \ 76 '-DDISABLE_NACL' \ 77 '-DCHROMIUM_BUILD' \ 78 '-DUSE_LIBJPEG_TURBO=1' \ 79 '-DUSE_PROPRIETARY_CODECS' \ 80 '-DENABLE_CONFIGURATION_POLICY' \ 81 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 82 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 83 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 84 '-DUSE_OPENSSL=1' \ 85 '-DENABLE_EGLIMAGE=1' \ 86 '-DCLD_VERSION=1' \ 87 '-DENABLE_PRINTING=1' \ 88 '-DENABLE_MANAGED_USERS=1' \ 89 '-DWEBKIT_COMMON_IMPLEMENTATION' \ 90 '-DPOSIX_AVOID_MMAP' \ 91 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 92 '-DU_USING_ICU_NAMESPACE=0' \ 93 '-D__STDC_CONSTANT_MACROS' \ 94 '-D__STDC_FORMAT_MACROS' \ 95 '-DANDROID' \ 96 '-D__GNU_SOURCE=1' \ 97 '-DUSE_STLPORT=1' \ 98 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 99 '-DCHROME_BUILD_ID=""' \ 100 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 101 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 102 '-D_DEBUG' 103 104 105 # Include paths placed before CFLAGS/CPPFLAGS 106 LOCAL_C_INCLUDES_Debug := \ 107 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 108 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 109 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 110 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 111 $(gyp_intermediate_dir) \ 112 $(gyp_shared_intermediate_dir)/ui \ 113 $(gyp_shared_intermediate_dir)/webkit \ 114 $(LOCAL_PATH) \ 115 $(LOCAL_PATH)/skia/config \ 116 $(PWD)/external/skia/include \ 117 $(PWD)/external/skia/include/core \ 118 $(LOCAL_PATH)/third_party/skia/src/core \ 119 $(LOCAL_PATH)/skia/ext \ 120 $(PWD)/external/icu4c/common \ 121 $(PWD)/external/icu4c/i18n \ 122 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 123 $(PWD)/frameworks/wilhelm/include \ 124 $(PWD)/bionic \ 125 $(PWD)/external/stlport/stlport 126 127 128 # Flags passed to only C++ (and not C) files. 129 LOCAL_CPPFLAGS_Debug := \ 130 -fno-rtti \ 131 -fno-threadsafe-statics \ 132 -fvisibility-inlines-hidden \ 133 -Wsign-compare \ 134 -Wno-uninitialized \ 135 -Wno-error=c++0x-compat \ 136 -Wno-non-virtual-dtor \ 137 -Wno-sign-promo 138 139 140 # Flags passed to both C and C++ files. 141 MY_CFLAGS_Release := \ 142 -fstack-protector \ 143 --param=ssp-buffer-size=4 \ 144 \ 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 -EL \ 154 -mhard-float \ 155 -ffunction-sections \ 156 -funwind-tables \ 157 -g \ 158 -fstack-protector \ 159 -fno-short-enums \ 160 -finline-limit=64 \ 161 -Wa,--noexecstack \ 162 -U_FORTIFY_SOURCE \ 163 -Wno-extra \ 164 -Wno-ignored-qualifiers \ 165 -Wno-type-limits \ 166 -Os \ 167 -fno-ident \ 168 -fdata-sections \ 169 -ffunction-sections \ 170 -fomit-frame-pointer 171 172 MY_DEFS_Release := \ 173 '-DV8_DEPRECATION_WARNINGS' \ 174 '-D_FILE_OFFSET_BITS=64' \ 175 '-DNO_TCMALLOC' \ 176 '-DDISABLE_NACL' \ 177 '-DCHROMIUM_BUILD' \ 178 '-DUSE_LIBJPEG_TURBO=1' \ 179 '-DUSE_PROPRIETARY_CODECS' \ 180 '-DENABLE_CONFIGURATION_POLICY' \ 181 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 182 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 183 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 184 '-DUSE_OPENSSL=1' \ 185 '-DENABLE_EGLIMAGE=1' \ 186 '-DCLD_VERSION=1' \ 187 '-DENABLE_PRINTING=1' \ 188 '-DENABLE_MANAGED_USERS=1' \ 189 '-DWEBKIT_COMMON_IMPLEMENTATION' \ 190 '-DPOSIX_AVOID_MMAP' \ 191 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 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)/skia/config \ 217 $(PWD)/external/skia/include \ 218 $(PWD)/external/skia/include/core \ 219 $(LOCAL_PATH)/third_party/skia/src/core \ 220 $(LOCAL_PATH)/skia/ext \ 221 $(PWD)/external/icu4c/common \ 222 $(PWD)/external/icu4c/i18n \ 223 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 224 $(PWD)/frameworks/wilhelm/include \ 225 $(PWD)/bionic \ 226 $(PWD)/external/stlport/stlport 227 228 229 # Flags passed to only C++ (and not C) files. 230 LOCAL_CPPFLAGS_Release := \ 231 -fno-rtti \ 232 -fno-threadsafe-statics \ 233 -fvisibility-inlines-hidden \ 234 -Wsign-compare \ 235 -Wno-uninitialized \ 236 -Wno-error=c++0x-compat \ 237 -Wno-non-virtual-dtor \ 238 -Wno-sign-promo 239 240 241 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 242 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 243 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 244 ### Rules for final target. 245 246 LOCAL_LDFLAGS_Debug := \ 247 -Wl,-z,now \ 248 -Wl,-z,relro \ 249 -Wl,-z,noexecstack \ 250 -fPIC \ 251 -EL \ 252 -Wl,--no-keep-memory \ 253 -nostdlib \ 254 -Wl,--no-undefined \ 255 -Wl,--exclude-libs=ALL \ 256 -Wl,--fatal-warnings \ 257 -Wl,--gc-sections \ 258 -Wl,--warn-shared-textrel \ 259 -Wl,-O1 \ 260 -Wl,--as-needed 261 262 263 LOCAL_LDFLAGS_Release := \ 264 -Wl,-z,now \ 265 -Wl,-z,relro \ 266 -Wl,-z,noexecstack \ 267 -fPIC \ 268 -EL \ 269 -Wl,--no-keep-memory \ 270 -nostdlib \ 271 -Wl,--no-undefined \ 272 -Wl,--exclude-libs=ALL \ 273 -Wl,-O1 \ 274 -Wl,--as-needed \ 275 -Wl,--gc-sections \ 276 -Wl,--fatal-warnings \ 277 -Wl,--warn-shared-textrel 278 279 280 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 281 282 LOCAL_STATIC_LIBRARIES := \ 283 ui_ui_gyp 284 285 # Enable grouping to fix circular references 286 LOCAL_GROUP_STATIC_LIBRARIES := true 287 288 LOCAL_SHARED_LIBRARIES := \ 289 libskia \ 290 libstlport \ 291 libdl 292 293 # Add target alias to "gyp_all_modules" target. 294 .PHONY: gyp_all_modules 295 gyp_all_modules: webkit_common_webkit_common_gyp 296 297 # Alias gyp target name. 298 .PHONY: webkit_common 299 webkit_common: webkit_common_webkit_common_gyp 300 301 include $(BUILD_STATIC_LIBRARY) 302