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 := ui_gfx_gfx_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,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \ 18 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp \ 19 $(call intermediates-dir-for,GYP,third_party_libjpeg_libjpeg_gyp,,,$(GYP_VAR_PREFIX))/libjpeg.stamp \ 20 $(call intermediates-dir-for,GYP,ui_gfx_gfx_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/gfx_jni_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 ui/gfx/android/device_display_info.cc \ 34 ui/gfx/android/gfx_jni_registrar.cc \ 35 ui/gfx/android/java_bitmap.cc \ 36 ui/gfx/android/scroller.cc \ 37 ui/gfx/android/shared_device_display_info.cc \ 38 ui/gfx/android/view_configuration.cc \ 39 ui/gfx/animation/animation.cc \ 40 ui/gfx/animation/animation_container.cc \ 41 ui/gfx/animation/linear_animation.cc \ 42 ui/gfx/animation/multi_animation.cc \ 43 ui/gfx/animation/slide_animation.cc \ 44 ui/gfx/animation/tween.cc \ 45 ui/gfx/blit.cc \ 46 ui/gfx/canvas.cc \ 47 ui/gfx/canvas_android.cc \ 48 ui/gfx/codec/jpeg_codec.cc \ 49 ui/gfx/codec/png_codec.cc \ 50 ui/gfx/color_analysis.cc \ 51 ui/gfx/color_profile.cc \ 52 ui/gfx/color_utils.cc \ 53 ui/gfx/display.cc \ 54 ui/gfx/favicon_size.cc \ 55 ui/gfx/font.cc \ 56 ui/gfx/font_list.cc \ 57 ui/gfx/font_list_impl.cc \ 58 ui/gfx/font_render_params_android.cc \ 59 ui/gfx/gfx_paths.cc \ 60 ui/gfx/gpu_memory_buffer.cc \ 61 ui/gfx/image/canvas_image_source.cc \ 62 ui/gfx/image/image.cc \ 63 ui/gfx/image/image_family.cc \ 64 ui/gfx/image/image_png_rep.cc \ 65 ui/gfx/image/image_skia.cc \ 66 ui/gfx/image/image_skia_operations.cc \ 67 ui/gfx/image/image_skia_rep.cc \ 68 ui/gfx/image/image_util.cc \ 69 ui/gfx/interpolated_transform.cc \ 70 ui/gfx/linux_font_delegate.cc \ 71 ui/gfx/platform_font_android.cc \ 72 ui/gfx/range/range.cc \ 73 ui/gfx/screen.cc \ 74 ui/gfx/screen_android.cc \ 75 ui/gfx/scrollbar_size.cc \ 76 ui/gfx/sequential_id_generator.cc \ 77 ui/gfx/shadow_value.cc \ 78 ui/gfx/skbitmap_operations.cc \ 79 ui/gfx/skia_util.cc \ 80 ui/gfx/switches.cc \ 81 ui/gfx/sys_color_change_listener.cc \ 82 ui/gfx/text_elider.cc \ 83 ui/gfx/text_utils.cc \ 84 ui/gfx/text_utils_android.cc \ 85 ui/gfx/transform.cc \ 86 ui/gfx/transform_util.cc \ 87 ui/gfx/ui_gfx_exports.cc \ 88 ui/gfx/utf16_indexing.cc 89 90 91 # Flags passed to both C and C++ files. 92 MY_CFLAGS_Debug := \ 93 -fstack-protector \ 94 --param=ssp-buffer-size=4 \ 95 -Werror \ 96 -fno-exceptions \ 97 -fno-strict-aliasing \ 98 -Wall \ 99 -Wno-unused-parameter \ 100 -Wno-missing-field-initializers \ 101 -fvisibility=hidden \ 102 -pipe \ 103 -fPIC \ 104 -Wno-unused-local-typedefs \ 105 -fno-tree-sra \ 106 -fno-partial-inlining \ 107 -fno-early-inlining \ 108 -fno-tree-copy-prop \ 109 -fno-tree-loop-optimize \ 110 -fno-move-loop-invariants \ 111 -fno-caller-saves \ 112 -Wno-psabi \ 113 -ffunction-sections \ 114 -funwind-tables \ 115 -g \ 116 -fstack-protector \ 117 -fno-short-enums \ 118 -finline-limit=64 \ 119 -Wa,--noexecstack \ 120 -U_FORTIFY_SOURCE \ 121 -Wno-extra \ 122 -Wno-ignored-qualifiers \ 123 -Wno-type-limits \ 124 -Wno-unused-but-set-variable \ 125 -Os \ 126 -g \ 127 -fdata-sections \ 128 -ffunction-sections \ 129 -fomit-frame-pointer \ 130 -funwind-tables 131 132 MY_DEFS_Debug := \ 133 '-DV8_DEPRECATION_WARNINGS' \ 134 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 135 '-D_FILE_OFFSET_BITS=64' \ 136 '-DNO_TCMALLOC' \ 137 '-DDISABLE_NACL' \ 138 '-DCHROMIUM_BUILD' \ 139 '-DUSE_LIBJPEG_TURBO=1' \ 140 '-DENABLE_WEBRTC=1' \ 141 '-DUSE_PROPRIETARY_CODECS' \ 142 '-DENABLE_BROWSER_CDMS' \ 143 '-DENABLE_CONFIGURATION_POLICY' \ 144 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 145 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 146 '-DENABLE_EGLIMAGE=1' \ 147 '-DCLD_VERSION=1' \ 148 '-DENABLE_PRINTING=1' \ 149 '-DENABLE_MANAGED_USERS=1' \ 150 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 151 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 152 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 153 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 154 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 155 '-DVIDEO_HOLE=1' \ 156 '-DGFX_IMPLEMENTATION' \ 157 '-DSK_ENABLE_INST_COUNT=0' \ 158 '-DSK_SUPPORT_GPU=1' \ 159 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 160 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 161 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 162 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 163 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 164 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 165 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 166 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 167 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 168 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 169 '-DSK_IGNORE_ETC1_SUPPORT' \ 170 '-DSK_IGNORE_GPU_DITHER' \ 171 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 172 '-DSK_BUILD_FOR_ANDROID' \ 173 '-DSK_USE_POSIX_THREADS' \ 174 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 175 '-DU_USING_ICU_NAMESPACE=0' \ 176 '-DCHROME_PNG_WRITE_SUPPORT' \ 177 '-DPNG_USER_CONFIG' \ 178 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 179 '-DUSE_SYSTEM_LIBJPEG' \ 180 '-DUSE_OPENSSL=1' \ 181 '-DUSE_OPENSSL_CERTS=1' \ 182 '-D__STDC_CONSTANT_MACROS' \ 183 '-D__STDC_FORMAT_MACROS' \ 184 '-DANDROID' \ 185 '-D__GNU_SOURCE=1' \ 186 '-DUSE_STLPORT=1' \ 187 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 188 '-DCHROME_BUILD_ID=""' \ 189 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 190 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 191 '-D_DEBUG' 192 193 194 # Include paths placed before CFLAGS/CPPFLAGS 195 LOCAL_C_INCLUDES_Debug := \ 196 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 197 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 198 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 199 $(gyp_shared_intermediate_dir) \ 200 $(LOCAL_PATH)/third_party/icu/source/common \ 201 $(LOCAL_PATH) \ 202 $(LOCAL_PATH)/skia/config \ 203 $(LOCAL_PATH)/third_party/skia/src/core \ 204 $(LOCAL_PATH)/third_party/skia/include/core \ 205 $(LOCAL_PATH)/third_party/skia/include/effects \ 206 $(LOCAL_PATH)/third_party/skia/include/pdf \ 207 $(LOCAL_PATH)/third_party/skia/include/gpu \ 208 $(LOCAL_PATH)/third_party/skia/include/lazy \ 209 $(LOCAL_PATH)/third_party/skia/include/pathops \ 210 $(LOCAL_PATH)/third_party/skia/include/pipe \ 211 $(LOCAL_PATH)/third_party/skia/include/ports \ 212 $(LOCAL_PATH)/third_party/skia/include/utils \ 213 $(LOCAL_PATH)/skia/ext \ 214 $(LOCAL_PATH)/third_party/harfbuzz-ng/src \ 215 $(PWD)/external/icu/icu4c/source/common \ 216 $(PWD)/external/icu/icu4c/source/i18n \ 217 $(LOCAL_PATH)/third_party/libpng \ 218 $(LOCAL_PATH)/third_party/zlib \ 219 $(PWD)/external/jpeg \ 220 $(gyp_shared_intermediate_dir)/ui/gfx \ 221 $(PWD)/frameworks/wilhelm/include \ 222 $(PWD)/bionic \ 223 $(PWD)/external/stlport/stlport 224 225 226 # Flags passed to only C++ (and not C) files. 227 LOCAL_CPPFLAGS_Debug := \ 228 -fno-rtti \ 229 -fno-threadsafe-statics \ 230 -fvisibility-inlines-hidden \ 231 -Wsign-compare \ 232 -Wno-abi \ 233 -Wno-non-virtual-dtor \ 234 -Wno-sign-promo 235 236 237 LOCAL_FDO_SUPPORT_Debug := false 238 239 # Flags passed to both C and C++ files. 240 MY_CFLAGS_Release := \ 241 -fstack-protector \ 242 --param=ssp-buffer-size=4 \ 243 -Werror \ 244 -fno-exceptions \ 245 -fno-strict-aliasing \ 246 -Wall \ 247 -Wno-unused-parameter \ 248 -Wno-missing-field-initializers \ 249 -fvisibility=hidden \ 250 -pipe \ 251 -fPIC \ 252 -Wno-unused-local-typedefs \ 253 -fno-tree-sra \ 254 -fno-partial-inlining \ 255 -fno-early-inlining \ 256 -fno-tree-copy-prop \ 257 -fno-tree-loop-optimize \ 258 -fno-move-loop-invariants \ 259 -fno-caller-saves \ 260 -Wno-psabi \ 261 -ffunction-sections \ 262 -funwind-tables \ 263 -g \ 264 -fstack-protector \ 265 -fno-short-enums \ 266 -finline-limit=64 \ 267 -Wa,--noexecstack \ 268 -U_FORTIFY_SOURCE \ 269 -Wno-extra \ 270 -Wno-ignored-qualifiers \ 271 -Wno-type-limits \ 272 -Wno-unused-but-set-variable \ 273 -Os \ 274 -fno-ident \ 275 -fdata-sections \ 276 -ffunction-sections \ 277 -fomit-frame-pointer \ 278 -funwind-tables 279 280 MY_DEFS_Release := \ 281 '-DV8_DEPRECATION_WARNINGS' \ 282 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 283 '-D_FILE_OFFSET_BITS=64' \ 284 '-DNO_TCMALLOC' \ 285 '-DDISABLE_NACL' \ 286 '-DCHROMIUM_BUILD' \ 287 '-DUSE_LIBJPEG_TURBO=1' \ 288 '-DENABLE_WEBRTC=1' \ 289 '-DUSE_PROPRIETARY_CODECS' \ 290 '-DENABLE_BROWSER_CDMS' \ 291 '-DENABLE_CONFIGURATION_POLICY' \ 292 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 293 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 294 '-DENABLE_EGLIMAGE=1' \ 295 '-DCLD_VERSION=1' \ 296 '-DENABLE_PRINTING=1' \ 297 '-DENABLE_MANAGED_USERS=1' \ 298 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 299 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 300 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 301 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 302 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 303 '-DVIDEO_HOLE=1' \ 304 '-DGFX_IMPLEMENTATION' \ 305 '-DSK_ENABLE_INST_COUNT=0' \ 306 '-DSK_SUPPORT_GPU=1' \ 307 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 308 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 309 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 310 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 311 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 312 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 313 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 314 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 315 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 316 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 317 '-DSK_IGNORE_ETC1_SUPPORT' \ 318 '-DSK_IGNORE_GPU_DITHER' \ 319 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 320 '-DSK_BUILD_FOR_ANDROID' \ 321 '-DSK_USE_POSIX_THREADS' \ 322 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 323 '-DU_USING_ICU_NAMESPACE=0' \ 324 '-DCHROME_PNG_WRITE_SUPPORT' \ 325 '-DPNG_USER_CONFIG' \ 326 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 327 '-DUSE_SYSTEM_LIBJPEG' \ 328 '-DUSE_OPENSSL=1' \ 329 '-DUSE_OPENSSL_CERTS=1' \ 330 '-D__STDC_CONSTANT_MACROS' \ 331 '-D__STDC_FORMAT_MACROS' \ 332 '-DANDROID' \ 333 '-D__GNU_SOURCE=1' \ 334 '-DUSE_STLPORT=1' \ 335 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 336 '-DCHROME_BUILD_ID=""' \ 337 '-DNDEBUG' \ 338 '-DNVALGRIND' \ 339 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 340 '-D_FORTIFY_SOURCE=2' 341 342 343 # Include paths placed before CFLAGS/CPPFLAGS 344 LOCAL_C_INCLUDES_Release := \ 345 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 346 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 347 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 348 $(gyp_shared_intermediate_dir) \ 349 $(LOCAL_PATH)/third_party/icu/source/common \ 350 $(LOCAL_PATH) \ 351 $(LOCAL_PATH)/skia/config \ 352 $(LOCAL_PATH)/third_party/skia/src/core \ 353 $(LOCAL_PATH)/third_party/skia/include/core \ 354 $(LOCAL_PATH)/third_party/skia/include/effects \ 355 $(LOCAL_PATH)/third_party/skia/include/pdf \ 356 $(LOCAL_PATH)/third_party/skia/include/gpu \ 357 $(LOCAL_PATH)/third_party/skia/include/lazy \ 358 $(LOCAL_PATH)/third_party/skia/include/pathops \ 359 $(LOCAL_PATH)/third_party/skia/include/pipe \ 360 $(LOCAL_PATH)/third_party/skia/include/ports \ 361 $(LOCAL_PATH)/third_party/skia/include/utils \ 362 $(LOCAL_PATH)/skia/ext \ 363 $(LOCAL_PATH)/third_party/harfbuzz-ng/src \ 364 $(PWD)/external/icu/icu4c/source/common \ 365 $(PWD)/external/icu/icu4c/source/i18n \ 366 $(LOCAL_PATH)/third_party/libpng \ 367 $(LOCAL_PATH)/third_party/zlib \ 368 $(PWD)/external/jpeg \ 369 $(gyp_shared_intermediate_dir)/ui/gfx \ 370 $(PWD)/frameworks/wilhelm/include \ 371 $(PWD)/bionic \ 372 $(PWD)/external/stlport/stlport 373 374 375 # Flags passed to only C++ (and not C) files. 376 LOCAL_CPPFLAGS_Release := \ 377 -fno-rtti \ 378 -fno-threadsafe-statics \ 379 -fvisibility-inlines-hidden \ 380 -Wsign-compare \ 381 -Wno-abi \ 382 -Wno-non-virtual-dtor \ 383 -Wno-sign-promo 384 385 386 LOCAL_FDO_SUPPORT_Release := false 387 388 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 389 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 390 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 391 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 392 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 393 ### Rules for final target. 394 395 LOCAL_LDFLAGS_Debug := \ 396 -Wl,-z,now \ 397 -Wl,-z,relro \ 398 -Wl,--fatal-warnings \ 399 -Wl,-z,noexecstack \ 400 -fPIC \ 401 -Wl,-z,relro \ 402 -Wl,-z,now \ 403 -fuse-ld=gold \ 404 -nostdlib \ 405 -Wl,--no-undefined \ 406 -Wl,--exclude-libs=ALL \ 407 -Wl,--icf=safe \ 408 -Wl,--warn-shared-textrel \ 409 -Wl,-O1 \ 410 -Wl,--as-needed 411 412 413 LOCAL_LDFLAGS_Release := \ 414 -Wl,-z,now \ 415 -Wl,-z,relro \ 416 -Wl,--fatal-warnings \ 417 -Wl,-z,noexecstack \ 418 -fPIC \ 419 -Wl,-z,relro \ 420 -Wl,-z,now \ 421 -fuse-ld=gold \ 422 -nostdlib \ 423 -Wl,--no-undefined \ 424 -Wl,--exclude-libs=ALL \ 425 -Wl,--icf=safe \ 426 -Wl,-O1 \ 427 -Wl,--as-needed \ 428 -Wl,--gc-sections \ 429 -Wl,--warn-shared-textrel 430 431 432 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 433 434 LOCAL_STATIC_LIBRARIES := \ 435 skia_skia_library_gyp 436 437 # Enable grouping to fix circular references 438 LOCAL_GROUP_STATIC_LIBRARIES := true 439 440 LOCAL_SHARED_LIBRARIES := \ 441 libstlport \ 442 libdl 443 444 # Add target alias to "gyp_all_modules" target. 445 .PHONY: gyp_all_modules 446 gyp_all_modules: ui_gfx_gfx_gyp 447 448 # Alias gyp target name. 449 .PHONY: gfx 450 gfx: ui_gfx_gfx_gyp 451 452 include $(BUILD_STATIC_LIBRARY) 453