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 := cc_cc_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,gpu_gpu_gyp)/gpu.stamp \ 15 $(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \ 16 $(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_minimal_gyp)/blink_minimal.stamp \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a 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 cc/animation/animation.cc \ 31 cc/animation/animation_curve.cc \ 32 cc/animation/animation_events.cc \ 33 cc/animation/animation_id_provider.cc \ 34 cc/animation/animation_registrar.cc \ 35 cc/animation/keyframed_animation_curve.cc \ 36 cc/animation/layer_animation_controller.cc \ 37 cc/animation/scroll_offset_animation_curve.cc \ 38 cc/animation/scrollbar_animation_controller_linear_fade.cc \ 39 cc/animation/scrollbar_animation_controller_thinning.cc \ 40 cc/animation/timing_function.cc \ 41 cc/animation/transform_operation.cc \ 42 cc/animation/transform_operations.cc \ 43 cc/base/invalidation_region.cc \ 44 cc/base/latency_info_swap_promise.cc \ 45 cc/base/latency_info_swap_promise_monitor.cc \ 46 cc/base/math_util.cc \ 47 cc/base/region.cc \ 48 cc/base/swap_promise_monitor.cc \ 49 cc/base/switches.cc \ 50 cc/base/tiling_data.cc \ 51 cc/debug/benchmark_instrumentation.cc \ 52 cc/debug/debug_colors.cc \ 53 cc/debug/debug_rect_history.cc \ 54 cc/debug/frame_rate_counter.cc \ 55 cc/debug/layer_tree_debug_state.cc \ 56 cc/debug/micro_benchmark.cc \ 57 cc/debug/micro_benchmark_impl.cc \ 58 cc/debug/micro_benchmark_controller.cc \ 59 cc/debug/micro_benchmark_controller_impl.cc \ 60 cc/debug/overdraw_metrics.cc \ 61 cc/debug/paint_time_counter.cc \ 62 cc/debug/picture_record_benchmark.cc \ 63 cc/debug/rasterize_and_record_benchmark.cc \ 64 cc/debug/rasterize_and_record_benchmark_impl.cc \ 65 cc/debug/rendering_stats.cc \ 66 cc/debug/rendering_stats_instrumentation.cc \ 67 cc/debug/traced_picture.cc \ 68 cc/debug/traced_value.cc \ 69 cc/debug/unittest_only_benchmark.cc \ 70 cc/debug/unittest_only_benchmark_impl.cc \ 71 cc/input/page_scale_animation.cc \ 72 cc/input/top_controls_manager.cc \ 73 cc/layers/content_layer.cc \ 74 cc/layers/contents_scaling_layer.cc \ 75 cc/layers/delegated_frame_provider.cc \ 76 cc/layers/delegated_frame_resource_collection.cc \ 77 cc/layers/delegated_renderer_layer.cc \ 78 cc/layers/delegated_renderer_layer_impl.cc \ 79 cc/layers/heads_up_display_layer.cc \ 80 cc/layers/heads_up_display_layer_impl.cc \ 81 cc/layers/image_layer.cc \ 82 cc/layers/io_surface_layer.cc \ 83 cc/layers/io_surface_layer_impl.cc \ 84 cc/layers/layer.cc \ 85 cc/layers/layer_impl.cc \ 86 cc/layers/layer_iterator.cc \ 87 cc/layers/layer_lists.cc \ 88 cc/layers/layer_position_constraint.cc \ 89 cc/layers/nine_patch_layer.cc \ 90 cc/layers/nine_patch_layer_impl.cc \ 91 cc/layers/painted_scrollbar_layer.cc \ 92 cc/layers/painted_scrollbar_layer_impl.cc \ 93 cc/layers/picture_image_layer.cc \ 94 cc/layers/picture_image_layer_impl.cc \ 95 cc/layers/picture_layer.cc \ 96 cc/layers/picture_layer_impl.cc \ 97 cc/layers/render_surface.cc \ 98 cc/layers/render_surface_impl.cc \ 99 cc/layers/scrollbar_layer_impl_base.cc \ 100 cc/layers/solid_color_layer.cc \ 101 cc/layers/solid_color_layer_impl.cc \ 102 cc/layers/solid_color_scrollbar_layer.cc \ 103 cc/layers/solid_color_scrollbar_layer_impl.cc \ 104 cc/layers/texture_layer.cc \ 105 cc/layers/texture_layer_impl.cc \ 106 cc/layers/tiled_layer.cc \ 107 cc/layers/tiled_layer_impl.cc \ 108 cc/layers/ui_resource_layer.cc \ 109 cc/layers/ui_resource_layer_impl.cc \ 110 cc/layers/video_frame_provider_client_impl.cc \ 111 cc/layers/video_layer.cc \ 112 cc/layers/video_layer_impl.cc \ 113 cc/output/begin_frame_args.cc \ 114 cc/output/compositor_frame.cc \ 115 cc/output/compositor_frame_ack.cc \ 116 cc/output/compositor_frame_metadata.cc \ 117 cc/output/context_provider.cc \ 118 cc/output/copy_output_request.cc \ 119 cc/output/copy_output_result.cc \ 120 cc/output/delegated_frame_data.cc \ 121 cc/output/delegating_renderer.cc \ 122 cc/output/direct_renderer.cc \ 123 cc/output/filter_operation.cc \ 124 cc/output/filter_operations.cc \ 125 cc/output/geometry_binding.cc \ 126 cc/output/gl_frame_data.cc \ 127 cc/output/gl_renderer.cc \ 128 cc/output/gl_renderer_draw_cache.cc \ 129 cc/output/managed_memory_policy.cc \ 130 cc/output/output_surface.cc \ 131 cc/output/program_binding.cc \ 132 cc/output/render_surface_filters.cc \ 133 cc/output/renderer.cc \ 134 cc/output/shader.cc \ 135 cc/output/software_frame_data.cc \ 136 cc/output/software_output_device.cc \ 137 cc/output/software_renderer.cc \ 138 cc/quads/checkerboard_draw_quad.cc \ 139 cc/quads/content_draw_quad_base.cc \ 140 cc/quads/debug_border_draw_quad.cc \ 141 cc/quads/draw_quad.cc \ 142 cc/quads/io_surface_draw_quad.cc \ 143 cc/quads/picture_draw_quad.cc \ 144 cc/quads/render_pass.cc \ 145 cc/quads/render_pass_draw_quad.cc \ 146 cc/quads/shared_quad_state.cc \ 147 cc/quads/solid_color_draw_quad.cc \ 148 cc/quads/stream_video_draw_quad.cc \ 149 cc/quads/texture_draw_quad.cc \ 150 cc/quads/tile_draw_quad.cc \ 151 cc/quads/yuv_video_draw_quad.cc \ 152 cc/resources/bitmap_content_layer_updater.cc \ 153 cc/resources/bitmap_skpicture_content_layer_updater.cc \ 154 cc/resources/caching_bitmap_content_layer_updater.cc \ 155 cc/resources/content_layer_updater.cc \ 156 cc/resources/etc1_pixel_ref.cc \ 157 cc/resources/image_layer_updater.cc \ 158 cc/resources/image_raster_worker_pool.cc \ 159 cc/resources/layer_quad.cc \ 160 cc/resources/layer_tiling_data.cc \ 161 cc/resources/layer_updater.cc \ 162 cc/resources/managed_tile_state.cc \ 163 cc/resources/memory_history.cc \ 164 cc/resources/picture.cc \ 165 cc/resources/picture_layer_tiling.cc \ 166 cc/resources/picture_layer_tiling_set.cc \ 167 cc/resources/picture_pile.cc \ 168 cc/resources/picture_pile_base.cc \ 169 cc/resources/picture_pile_impl.cc \ 170 cc/resources/pixel_buffer_raster_worker_pool.cc \ 171 cc/resources/prioritized_resource.cc \ 172 cc/resources/prioritized_resource_manager.cc \ 173 cc/resources/prioritized_tile_set.cc \ 174 cc/resources/priority_calculator.cc \ 175 cc/resources/raster_mode.cc \ 176 cc/resources/raster_worker_pool.cc \ 177 cc/resources/resource.cc \ 178 cc/resources/resource_format.cc \ 179 cc/resources/resource_pool.cc \ 180 cc/resources/resource_provider.cc \ 181 cc/resources/resource_update.cc \ 182 cc/resources/resource_update_controller.cc \ 183 cc/resources/resource_update_queue.cc \ 184 cc/resources/scoped_resource.cc \ 185 cc/resources/scoped_ui_resource.cc \ 186 cc/resources/shared_bitmap.cc \ 187 cc/resources/single_release_callback.cc \ 188 cc/resources/skpicture_content_layer_updater.cc \ 189 cc/resources/texture_mailbox.cc \ 190 cc/resources/texture_mailbox_deleter.cc \ 191 cc/resources/tile.cc \ 192 cc/resources/tile_manager.cc \ 193 cc/resources/tile_priority.cc \ 194 cc/resources/transferable_resource.cc \ 195 cc/resources/ui_resource_bitmap.cc \ 196 cc/resources/ui_resource_request.cc \ 197 cc/resources/video_resource_updater.cc \ 198 cc/resources/worker_pool.cc \ 199 cc/scheduler/delay_based_time_source.cc \ 200 cc/scheduler/frame_rate_controller.cc \ 201 cc/scheduler/rolling_time_delta_history.cc \ 202 cc/scheduler/scheduler.cc \ 203 cc/scheduler/scheduler_settings.cc \ 204 cc/scheduler/scheduler_state_machine.cc \ 205 cc/scheduler/texture_uploader.cc \ 206 cc/trees/blocking_task_runner.cc \ 207 cc/trees/damage_tracker.cc \ 208 cc/trees/layer_sorter.cc \ 209 cc/trees/layer_tree_host.cc \ 210 cc/trees/layer_tree_host_common.cc \ 211 cc/trees/layer_tree_host_impl.cc \ 212 cc/trees/layer_tree_impl.cc \ 213 cc/trees/layer_tree_settings.cc \ 214 cc/trees/occlusion_tracker.cc \ 215 cc/trees/proxy.cc \ 216 cc/trees/quad_culler.cc \ 217 cc/trees/single_thread_proxy.cc \ 218 cc/trees/thread_proxy.cc \ 219 cc/trees/tree_synchronizer.cc 220 221 222 # Flags passed to both C and C++ files. 223 MY_CFLAGS_Debug := \ 224 -fstack-protector \ 225 --param=ssp-buffer-size=4 \ 226 -Werror \ 227 -fno-exceptions \ 228 -fno-strict-aliasing \ 229 -Wall \ 230 -Wno-unused-parameter \ 231 -Wno-missing-field-initializers \ 232 -fvisibility=hidden \ 233 -pipe \ 234 -fPIC \ 235 -Wno-unknown-pragmas \ 236 -fno-tree-sra \ 237 -fuse-ld=gold \ 238 -Wno-psabi \ 239 -ffunction-sections \ 240 -funwind-tables \ 241 -g \ 242 -fstack-protector \ 243 -fno-short-enums \ 244 -finline-limit=64 \ 245 -Wa,--noexecstack \ 246 -U_FORTIFY_SOURCE \ 247 -Wno-extra \ 248 -Wno-ignored-qualifiers \ 249 -Wno-type-limits \ 250 -Os \ 251 -g \ 252 -fomit-frame-pointer \ 253 -fdata-sections \ 254 -ffunction-sections 255 256 MY_DEFS_Debug := \ 257 '-DV8_DEPRECATION_WARNINGS' \ 258 '-D_FILE_OFFSET_BITS=64' \ 259 '-DNO_TCMALLOC' \ 260 '-DDISABLE_NACL' \ 261 '-DCHROMIUM_BUILD' \ 262 '-DUSE_LIBJPEG_TURBO=1' \ 263 '-DUSE_PROPRIETARY_CODECS' \ 264 '-DENABLE_CONFIGURATION_POLICY' \ 265 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 266 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 267 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 268 '-DUSE_OPENSSL=1' \ 269 '-DENABLE_EGLIMAGE=1' \ 270 '-DCLD_VERSION=1' \ 271 '-DENABLE_PRINTING=1' \ 272 '-DENABLE_MANAGED_USERS=1' \ 273 '-DCC_IMPLEMENTATION=1' \ 274 '-DMEDIA_DISABLE_LIBVPX' \ 275 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 276 '-DU_USING_ICU_NAMESPACE=0' \ 277 '-DMESA_EGL_NO_X11_HEADERS' \ 278 '-D__STDC_CONSTANT_MACROS' \ 279 '-D__STDC_FORMAT_MACROS' \ 280 '-DANDROID' \ 281 '-D__GNU_SOURCE=1' \ 282 '-DUSE_STLPORT=1' \ 283 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 284 '-DCHROME_BUILD_ID=""' \ 285 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 286 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 287 '-D_DEBUG' 288 289 290 # Include paths placed before CFLAGS/CPPFLAGS 291 LOCAL_C_INCLUDES_Debug := \ 292 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 293 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 294 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 295 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 296 $(LOCAL_PATH) \ 297 $(LOCAL_PATH)/third_party/khronos \ 298 $(LOCAL_PATH)/gpu \ 299 $(LOCAL_PATH)/skia/config \ 300 $(LOCAL_PATH)/third_party/WebKit/Source \ 301 $(PWD)/external/skia/include \ 302 $(PWD)/external/skia/include/core \ 303 $(LOCAL_PATH)/third_party/skia/src/core \ 304 $(LOCAL_PATH)/skia/ext \ 305 $(PWD)/external/icu4c/common \ 306 $(PWD)/external/icu4c/i18n \ 307 $(gyp_shared_intermediate_dir)/ui/gl \ 308 $(LOCAL_PATH)/third_party/mesa/src/include \ 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_Debug := \ 316 -fno-rtti \ 317 -fno-threadsafe-statics \ 318 -fvisibility-inlines-hidden \ 319 -Wsign-compare \ 320 -Wno-abi \ 321 -Wno-error=c++0x-compat \ 322 -Wno-non-virtual-dtor \ 323 -Wno-sign-promo 324 325 326 # Flags passed to both C and C++ files. 327 MY_CFLAGS_Release := \ 328 -fstack-protector \ 329 --param=ssp-buffer-size=4 \ 330 -Werror \ 331 -fno-exceptions \ 332 -fno-strict-aliasing \ 333 -Wall \ 334 -Wno-unused-parameter \ 335 -Wno-missing-field-initializers \ 336 -fvisibility=hidden \ 337 -pipe \ 338 -fPIC \ 339 -Wno-unknown-pragmas \ 340 -fno-tree-sra \ 341 -fuse-ld=gold \ 342 -Wno-psabi \ 343 -ffunction-sections \ 344 -funwind-tables \ 345 -g \ 346 -fstack-protector \ 347 -fno-short-enums \ 348 -finline-limit=64 \ 349 -Wa,--noexecstack \ 350 -U_FORTIFY_SOURCE \ 351 -Wno-extra \ 352 -Wno-ignored-qualifiers \ 353 -Wno-type-limits \ 354 -Os \ 355 -fno-ident \ 356 -fdata-sections \ 357 -ffunction-sections \ 358 -fomit-frame-pointer 359 360 MY_DEFS_Release := \ 361 '-DV8_DEPRECATION_WARNINGS' \ 362 '-D_FILE_OFFSET_BITS=64' \ 363 '-DNO_TCMALLOC' \ 364 '-DDISABLE_NACL' \ 365 '-DCHROMIUM_BUILD' \ 366 '-DUSE_LIBJPEG_TURBO=1' \ 367 '-DUSE_PROPRIETARY_CODECS' \ 368 '-DENABLE_CONFIGURATION_POLICY' \ 369 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 370 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 371 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 372 '-DUSE_OPENSSL=1' \ 373 '-DENABLE_EGLIMAGE=1' \ 374 '-DCLD_VERSION=1' \ 375 '-DENABLE_PRINTING=1' \ 376 '-DENABLE_MANAGED_USERS=1' \ 377 '-DCC_IMPLEMENTATION=1' \ 378 '-DMEDIA_DISABLE_LIBVPX' \ 379 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 380 '-DU_USING_ICU_NAMESPACE=0' \ 381 '-DMESA_EGL_NO_X11_HEADERS' \ 382 '-D__STDC_CONSTANT_MACROS' \ 383 '-D__STDC_FORMAT_MACROS' \ 384 '-DANDROID' \ 385 '-D__GNU_SOURCE=1' \ 386 '-DUSE_STLPORT=1' \ 387 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 388 '-DCHROME_BUILD_ID=""' \ 389 '-DNDEBUG' \ 390 '-DNVALGRIND' \ 391 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 392 '-D_FORTIFY_SOURCE=2' 393 394 395 # Include paths placed before CFLAGS/CPPFLAGS 396 LOCAL_C_INCLUDES_Release := \ 397 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 398 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 399 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 400 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 401 $(LOCAL_PATH) \ 402 $(LOCAL_PATH)/third_party/khronos \ 403 $(LOCAL_PATH)/gpu \ 404 $(LOCAL_PATH)/skia/config \ 405 $(LOCAL_PATH)/third_party/WebKit/Source \ 406 $(PWD)/external/skia/include \ 407 $(PWD)/external/skia/include/core \ 408 $(LOCAL_PATH)/third_party/skia/src/core \ 409 $(LOCAL_PATH)/skia/ext \ 410 $(PWD)/external/icu4c/common \ 411 $(PWD)/external/icu4c/i18n \ 412 $(gyp_shared_intermediate_dir)/ui/gl \ 413 $(LOCAL_PATH)/third_party/mesa/src/include \ 414 $(PWD)/frameworks/wilhelm/include \ 415 $(PWD)/bionic \ 416 $(PWD)/external/stlport/stlport 417 418 419 # Flags passed to only C++ (and not C) files. 420 LOCAL_CPPFLAGS_Release := \ 421 -fno-rtti \ 422 -fno-threadsafe-statics \ 423 -fvisibility-inlines-hidden \ 424 -Wsign-compare \ 425 -Wno-abi \ 426 -Wno-error=c++0x-compat \ 427 -Wno-non-virtual-dtor \ 428 -Wno-sign-promo 429 430 431 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 432 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 433 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 434 ### Rules for final target. 435 436 LOCAL_LDFLAGS_Debug := \ 437 -Wl,-z,now \ 438 -Wl,-z,relro \ 439 -Wl,-z,noexecstack \ 440 -fPIC \ 441 -Wl,-z,relro \ 442 -Wl,-z,now \ 443 -fuse-ld=gold \ 444 -nostdlib \ 445 -Wl,--no-undefined \ 446 -Wl,--exclude-libs=ALL \ 447 -Wl,--icf=safe \ 448 -Wl,--fatal-warnings \ 449 -Wl,--gc-sections \ 450 -Wl,--warn-shared-textrel \ 451 -Wl,-O1 \ 452 -Wl,--as-needed 453 454 455 LOCAL_LDFLAGS_Release := \ 456 -Wl,-z,now \ 457 -Wl,-z,relro \ 458 -Wl,-z,noexecstack \ 459 -fPIC \ 460 -Wl,-z,relro \ 461 -Wl,-z,now \ 462 -fuse-ld=gold \ 463 -nostdlib \ 464 -Wl,--no-undefined \ 465 -Wl,--exclude-libs=ALL \ 466 -Wl,--icf=safe \ 467 -Wl,-O1 \ 468 -Wl,--as-needed \ 469 -Wl,--gc-sections \ 470 -Wl,--fatal-warnings \ 471 -Wl,--warn-shared-textrel 472 473 474 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 475 476 LOCAL_STATIC_LIBRARIES := \ 477 ui_gl_gl_gyp 478 479 # Enable grouping to fix circular references 480 LOCAL_GROUP_STATIC_LIBRARIES := true 481 482 LOCAL_SHARED_LIBRARIES := \ 483 libskia \ 484 libstlport \ 485 libdl 486 487 # Add target alias to "gyp_all_modules" target. 488 .PHONY: gyp_all_modules 489 gyp_all_modules: cc_cc_gyp 490 491 # Alias gyp target name. 492 .PHONY: cc 493 cc: cc_cc_gyp 494 495 include $(BUILD_STATIC_LIBRARY) 496