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 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := \ 15 $(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \ 18 $(call intermediates-dir-for,GYP,ui_resources_ui_resources_gyp,,,$(GYP_VAR_PREFIX))/ui_resources.stamp \ 19 $(call intermediates-dir-for,GYP,webkit_webkit_resources_gyp,,,$(GYP_VAR_PREFIX))/webkit_resources.stamp \ 20 $(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_headers_gyp,,,$(GYP_VAR_PREFIX))/blink_headers.stamp 21 22 GYP_GENERATED_OUTPUTS := 23 24 # Make sure our deps and generated files are built first. 25 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 26 27 LOCAL_CPP_EXTENSION := .cc 28 LOCAL_GENERATED_SOURCES := 29 30 GYP_COPIED_SOURCE_ORIGIN_DIRS := 31 32 LOCAL_SRC_FILES := \ 33 webkit/common/data_element.cc \ 34 webkit/common/resource_type.cc \ 35 webkit/common/webpreferences.cc 36 37 38 # Flags passed to both C and C++ files. 39 MY_CFLAGS_Debug := \ 40 -fstack-protector \ 41 --param=ssp-buffer-size=4 \ 42 -Werror \ 43 -fno-exceptions \ 44 -fno-strict-aliasing \ 45 -Wall \ 46 -Wno-unused-parameter \ 47 -Wno-missing-field-initializers \ 48 -fvisibility=hidden \ 49 -pipe \ 50 -fPIC \ 51 -Wno-unused-local-typedefs \ 52 -m64 \ 53 -march=x86-64 \ 54 -ffunction-sections \ 55 -funwind-tables \ 56 -g \ 57 -fstack-protector \ 58 -fno-short-enums \ 59 -finline-limit=64 \ 60 -Wa,--noexecstack \ 61 -U_FORTIFY_SOURCE \ 62 -Wno-extra \ 63 -Wno-ignored-qualifiers \ 64 -Wno-type-limits \ 65 -Wno-unused-but-set-variable \ 66 -Os \ 67 -g \ 68 -fdata-sections \ 69 -ffunction-sections \ 70 -fomit-frame-pointer \ 71 -funwind-tables 72 73 MY_DEFS_Debug := \ 74 '-DV8_DEPRECATION_WARNINGS' \ 75 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 76 '-D_FILE_OFFSET_BITS=64' \ 77 '-DNO_TCMALLOC' \ 78 '-DDISABLE_NACL' \ 79 '-DCHROMIUM_BUILD' \ 80 '-DUSE_LIBJPEG_TURBO=1' \ 81 '-DENABLE_WEBRTC=1' \ 82 '-DUSE_PROPRIETARY_CODECS' \ 83 '-DENABLE_BROWSER_CDMS' \ 84 '-DENABLE_CONFIGURATION_POLICY' \ 85 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 86 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DCLD_VERSION=1' \ 89 '-DENABLE_PRINTING=1' \ 90 '-DENABLE_MANAGED_USERS=1' \ 91 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 92 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 93 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 94 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 95 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 96 '-DVIDEO_HOLE=1' \ 97 '-DWEBKIT_COMMON_IMPLEMENTATION' \ 98 '-DPOSIX_AVOID_MMAP' \ 99 '-DSK_ENABLE_INST_COUNT=0' \ 100 '-DSK_SUPPORT_GPU=1' \ 101 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 102 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 103 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 104 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 105 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 106 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 107 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 108 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 109 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 110 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 111 '-DSK_IGNORE_ETC1_SUPPORT' \ 112 '-DSK_IGNORE_GPU_DITHER' \ 113 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 114 '-DSK_BUILD_FOR_ANDROID' \ 115 '-DSK_USE_POSIX_THREADS' \ 116 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 117 '-DU_USING_ICU_NAMESPACE=0' \ 118 '-DUSE_OPENSSL=1' \ 119 '-DUSE_OPENSSL_CERTS=1' \ 120 '-D__STDC_CONSTANT_MACROS' \ 121 '-D__STDC_FORMAT_MACROS' \ 122 '-DANDROID' \ 123 '-D__GNU_SOURCE=1' \ 124 '-DUSE_STLPORT=1' \ 125 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 126 '-DCHROME_BUILD_ID=""' \ 127 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 128 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 129 '-D_DEBUG' 130 131 132 # Include paths placed before CFLAGS/CPPFLAGS 133 LOCAL_C_INCLUDES_Debug := \ 134 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 135 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 136 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 137 $(gyp_shared_intermediate_dir) \ 138 $(gyp_intermediate_dir) \ 139 $(gyp_shared_intermediate_dir)/ui \ 140 $(gyp_shared_intermediate_dir)/webkit \ 141 $(LOCAL_PATH) \ 142 $(LOCAL_PATH)/skia/config \ 143 $(LOCAL_PATH)/third_party/skia/src/core \ 144 $(LOCAL_PATH)/third_party/skia/include/core \ 145 $(LOCAL_PATH)/third_party/skia/include/effects \ 146 $(LOCAL_PATH)/third_party/skia/include/pdf \ 147 $(LOCAL_PATH)/third_party/skia/include/gpu \ 148 $(LOCAL_PATH)/third_party/skia/include/lazy \ 149 $(LOCAL_PATH)/third_party/skia/include/pathops \ 150 $(LOCAL_PATH)/third_party/skia/include/pipe \ 151 $(LOCAL_PATH)/third_party/skia/include/ports \ 152 $(LOCAL_PATH)/third_party/skia/include/utils \ 153 $(LOCAL_PATH)/skia/ext \ 154 $(PWD)/external/icu/icu4c/source/common \ 155 $(PWD)/external/icu/icu4c/source/i18n \ 156 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 157 $(LOCAL_PATH)/third_party/WebKit \ 158 $(PWD)/frameworks/wilhelm/include \ 159 $(PWD)/bionic \ 160 $(PWD)/external/stlport/stlport 161 162 163 # Flags passed to only C++ (and not C) files. 164 LOCAL_CPPFLAGS_Debug := \ 165 -fno-rtti \ 166 -fno-threadsafe-statics \ 167 -fvisibility-inlines-hidden \ 168 -Wsign-compare \ 169 -Wno-non-virtual-dtor \ 170 -Wno-sign-promo 171 172 173 LOCAL_FDO_SUPPORT_Debug := false 174 175 # Flags passed to both C and C++ files. 176 MY_CFLAGS_Release := \ 177 -fstack-protector \ 178 --param=ssp-buffer-size=4 \ 179 -Werror \ 180 -fno-exceptions \ 181 -fno-strict-aliasing \ 182 -Wall \ 183 -Wno-unused-parameter \ 184 -Wno-missing-field-initializers \ 185 -fvisibility=hidden \ 186 -pipe \ 187 -fPIC \ 188 -Wno-unused-local-typedefs \ 189 -m64 \ 190 -march=x86-64 \ 191 -ffunction-sections \ 192 -funwind-tables \ 193 -g \ 194 -fstack-protector \ 195 -fno-short-enums \ 196 -finline-limit=64 \ 197 -Wa,--noexecstack \ 198 -U_FORTIFY_SOURCE \ 199 -Wno-extra \ 200 -Wno-ignored-qualifiers \ 201 -Wno-type-limits \ 202 -Wno-unused-but-set-variable \ 203 -Os \ 204 -fno-ident \ 205 -fdata-sections \ 206 -ffunction-sections \ 207 -fomit-frame-pointer \ 208 -funwind-tables 209 210 MY_DEFS_Release := \ 211 '-DV8_DEPRECATION_WARNINGS' \ 212 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 213 '-D_FILE_OFFSET_BITS=64' \ 214 '-DNO_TCMALLOC' \ 215 '-DDISABLE_NACL' \ 216 '-DCHROMIUM_BUILD' \ 217 '-DUSE_LIBJPEG_TURBO=1' \ 218 '-DENABLE_WEBRTC=1' \ 219 '-DUSE_PROPRIETARY_CODECS' \ 220 '-DENABLE_BROWSER_CDMS' \ 221 '-DENABLE_CONFIGURATION_POLICY' \ 222 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 223 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 224 '-DENABLE_EGLIMAGE=1' \ 225 '-DCLD_VERSION=1' \ 226 '-DENABLE_PRINTING=1' \ 227 '-DENABLE_MANAGED_USERS=1' \ 228 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 229 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 230 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 231 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 232 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 233 '-DVIDEO_HOLE=1' \ 234 '-DWEBKIT_COMMON_IMPLEMENTATION' \ 235 '-DPOSIX_AVOID_MMAP' \ 236 '-DSK_ENABLE_INST_COUNT=0' \ 237 '-DSK_SUPPORT_GPU=1' \ 238 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 239 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 240 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 241 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 242 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 243 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 244 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 245 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 246 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 247 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 248 '-DSK_IGNORE_ETC1_SUPPORT' \ 249 '-DSK_IGNORE_GPU_DITHER' \ 250 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 251 '-DSK_BUILD_FOR_ANDROID' \ 252 '-DSK_USE_POSIX_THREADS' \ 253 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 254 '-DU_USING_ICU_NAMESPACE=0' \ 255 '-DUSE_OPENSSL=1' \ 256 '-DUSE_OPENSSL_CERTS=1' \ 257 '-D__STDC_CONSTANT_MACROS' \ 258 '-D__STDC_FORMAT_MACROS' \ 259 '-DANDROID' \ 260 '-D__GNU_SOURCE=1' \ 261 '-DUSE_STLPORT=1' \ 262 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 263 '-DCHROME_BUILD_ID=""' \ 264 '-DNDEBUG' \ 265 '-DNVALGRIND' \ 266 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 267 '-D_FORTIFY_SOURCE=2' 268 269 270 # Include paths placed before CFLAGS/CPPFLAGS 271 LOCAL_C_INCLUDES_Release := \ 272 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 273 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 274 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 275 $(gyp_shared_intermediate_dir) \ 276 $(gyp_intermediate_dir) \ 277 $(gyp_shared_intermediate_dir)/ui \ 278 $(gyp_shared_intermediate_dir)/webkit \ 279 $(LOCAL_PATH) \ 280 $(LOCAL_PATH)/skia/config \ 281 $(LOCAL_PATH)/third_party/skia/src/core \ 282 $(LOCAL_PATH)/third_party/skia/include/core \ 283 $(LOCAL_PATH)/third_party/skia/include/effects \ 284 $(LOCAL_PATH)/third_party/skia/include/pdf \ 285 $(LOCAL_PATH)/third_party/skia/include/gpu \ 286 $(LOCAL_PATH)/third_party/skia/include/lazy \ 287 $(LOCAL_PATH)/third_party/skia/include/pathops \ 288 $(LOCAL_PATH)/third_party/skia/include/pipe \ 289 $(LOCAL_PATH)/third_party/skia/include/ports \ 290 $(LOCAL_PATH)/third_party/skia/include/utils \ 291 $(LOCAL_PATH)/skia/ext \ 292 $(PWD)/external/icu/icu4c/source/common \ 293 $(PWD)/external/icu/icu4c/source/i18n \ 294 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 295 $(LOCAL_PATH)/third_party/WebKit \ 296 $(PWD)/frameworks/wilhelm/include \ 297 $(PWD)/bionic \ 298 $(PWD)/external/stlport/stlport 299 300 301 # Flags passed to only C++ (and not C) files. 302 LOCAL_CPPFLAGS_Release := \ 303 -fno-rtti \ 304 -fno-threadsafe-statics \ 305 -fvisibility-inlines-hidden \ 306 -Wsign-compare \ 307 -Wno-non-virtual-dtor \ 308 -Wno-sign-promo 309 310 311 LOCAL_FDO_SUPPORT_Release := false 312 313 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 314 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 315 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 316 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 317 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 318 ### Rules for final target. 319 320 LOCAL_LDFLAGS_Debug := \ 321 -Wl,-z,now \ 322 -Wl,-z,relro \ 323 -Wl,--fatal-warnings \ 324 -Wl,-z,noexecstack \ 325 -fPIC \ 326 -m64 \ 327 -fuse-ld=gold \ 328 -nostdlib \ 329 -Wl,--no-undefined \ 330 -Wl,--exclude-libs=ALL \ 331 -Wl,--warn-shared-textrel \ 332 -Wl,-O1 \ 333 -Wl,--as-needed 334 335 336 LOCAL_LDFLAGS_Release := \ 337 -Wl,-z,now \ 338 -Wl,-z,relro \ 339 -Wl,--fatal-warnings \ 340 -Wl,-z,noexecstack \ 341 -fPIC \ 342 -m64 \ 343 -fuse-ld=gold \ 344 -nostdlib \ 345 -Wl,--no-undefined \ 346 -Wl,--exclude-libs=ALL \ 347 -Wl,-O1 \ 348 -Wl,--as-needed \ 349 -Wl,--gc-sections \ 350 -Wl,--warn-shared-textrel 351 352 353 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 354 355 LOCAL_STATIC_LIBRARIES := \ 356 skia_skia_library_gyp \ 357 ui_base_ui_base_gyp 358 359 # Enable grouping to fix circular references 360 LOCAL_GROUP_STATIC_LIBRARIES := true 361 362 LOCAL_SHARED_LIBRARIES := \ 363 libstlport \ 364 libdl 365 366 # Add target alias to "gyp_all_modules" target. 367 .PHONY: gyp_all_modules 368 gyp_all_modules: webkit_common_webkit_common_gyp 369 370 # Alias gyp target name. 371 .PHONY: webkit_common 372 webkit_common: webkit_common_webkit_common_gyp 373 374 include $(BUILD_STATIC_LIBRARY) 375