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