| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 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,STATIC_LIBRARIES,skia_skia_gyp)/skia_skia_gyp.a \ |
| 16 | $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \ |
| Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 17 | $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \ |
| Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame^] | 18 | $(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_minimal_gyp)/blink_minimal.stamp |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 19 | |
| 20 | GYP_GENERATED_OUTPUTS := |
| 21 | |
| 22 | # Make sure our deps and generated files are built first. |
| 23 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 24 | |
| 25 | LOCAL_CPP_EXTENSION := .cc |
| 26 | LOCAL_GENERATED_SOURCES := |
| 27 | |
| 28 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 29 | |
| 30 | LOCAL_SRC_FILES := \ |
| 31 | cc/animation/animation.cc \ |
| 32 | cc/animation/animation_curve.cc \ |
| 33 | cc/animation/animation_events.cc \ |
| 34 | cc/animation/animation_id_provider.cc \ |
| 35 | cc/animation/animation_registrar.cc \ |
| 36 | cc/animation/keyframed_animation_curve.cc \ |
| 37 | cc/animation/layer_animation_controller.cc \ |
| 38 | cc/animation/scrollbar_animation_controller_linear_fade.cc \ |
| 39 | cc/animation/timing_function.cc \ |
| 40 | cc/animation/transform_operation.cc \ |
| 41 | cc/animation/transform_operations.cc \ |
| 42 | cc/base/math_util.cc \ |
| 43 | cc/base/region.cc \ |
| 44 | cc/base/switches.cc \ |
| 45 | cc/base/thread_impl.cc \ |
| 46 | cc/base/tiling_data.cc \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 47 | cc/debug/debug_colors.cc \ |
| 48 | cc/debug/debug_rect_history.cc \ |
| 49 | cc/debug/fake_web_graphics_context_3d.cc \ |
| 50 | cc/debug/frame_rate_counter.cc \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 51 | cc/debug/layer_tree_debug_state.cc \ |
| 52 | cc/debug/overdraw_metrics.cc \ |
| 53 | cc/debug/paint_time_counter.cc \ |
| 54 | cc/debug/rendering_stats.cc \ |
| 55 | cc/debug/rendering_stats_instrumentation.cc \ |
| Torne (Richard Coles) | a93a17c | 2013-05-15 11:34:50 +0100 | [diff] [blame] | 56 | cc/debug/traced_picture.cc \ |
| Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 57 | cc/debug/traced_value.cc \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 58 | cc/input/page_scale_animation.cc \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 59 | cc/input/top_controls_manager.cc \ |
| 60 | cc/layers/content_layer.cc \ |
| 61 | cc/layers/contents_scaling_layer.cc \ |
| 62 | cc/layers/delegated_renderer_layer.cc \ |
| 63 | cc/layers/delegated_renderer_layer_impl.cc \ |
| 64 | cc/layers/heads_up_display_layer.cc \ |
| 65 | cc/layers/heads_up_display_layer_impl.cc \ |
| 66 | cc/layers/image_layer.cc \ |
| 67 | cc/layers/io_surface_layer.cc \ |
| 68 | cc/layers/io_surface_layer_impl.cc \ |
| 69 | cc/layers/layer.cc \ |
| 70 | cc/layers/layer_impl.cc \ |
| 71 | cc/layers/layer_iterator.cc \ |
| 72 | cc/layers/layer_position_constraint.cc \ |
| 73 | cc/layers/nine_patch_layer.cc \ |
| 74 | cc/layers/nine_patch_layer_impl.cc \ |
| 75 | cc/layers/picture_image_layer.cc \ |
| 76 | cc/layers/picture_image_layer_impl.cc \ |
| 77 | cc/layers/picture_layer.cc \ |
| 78 | cc/layers/picture_layer_impl.cc \ |
| 79 | cc/layers/render_surface.cc \ |
| 80 | cc/layers/render_surface_impl.cc \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 81 | cc/layers/scrollbar_layer.cc \ |
| 82 | cc/layers/scrollbar_layer_impl.cc \ |
| 83 | cc/layers/solid_color_layer.cc \ |
| 84 | cc/layers/solid_color_layer_impl.cc \ |
| 85 | cc/layers/texture_layer.cc \ |
| 86 | cc/layers/texture_layer_impl.cc \ |
| 87 | cc/layers/tiled_layer.cc \ |
| 88 | cc/layers/tiled_layer_impl.cc \ |
| 89 | cc/layers/video_frame_provider_client_impl.cc \ |
| 90 | cc/layers/video_layer.cc \ |
| 91 | cc/layers/video_layer_impl.cc \ |
| Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame^] | 92 | cc/output/begin_frame_args.cc \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 93 | cc/output/compositor_frame.cc \ |
| 94 | cc/output/compositor_frame_ack.cc \ |
| 95 | cc/output/compositor_frame_metadata.cc \ |
| Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 96 | cc/output/copy_output_request.cc \ |
| Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame^] | 97 | cc/output/copy_output_result.cc \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 98 | cc/output/delegated_frame_data.cc \ |
| 99 | cc/output/delegating_renderer.cc \ |
| 100 | cc/output/direct_renderer.cc \ |
| 101 | cc/output/geometry_binding.cc \ |
| 102 | cc/output/gl_frame_data.cc \ |
| 103 | cc/output/gl_renderer.cc \ |
| 104 | cc/output/gl_renderer_draw_cache.cc \ |
| 105 | cc/output/output_surface.cc \ |
| 106 | cc/output/program_binding.cc \ |
| 107 | cc/output/render_surface_filters.cc \ |
| 108 | cc/output/renderer.cc \ |
| 109 | cc/output/shader.cc \ |
| 110 | cc/output/software_frame_data.cc \ |
| 111 | cc/output/software_output_device.cc \ |
| 112 | cc/output/software_renderer.cc \ |
| 113 | cc/output/texture_copier.cc \ |
| 114 | cc/quads/checkerboard_draw_quad.cc \ |
| 115 | cc/quads/content_draw_quad_base.cc \ |
| 116 | cc/quads/debug_border_draw_quad.cc \ |
| 117 | cc/quads/draw_quad.cc \ |
| 118 | cc/quads/io_surface_draw_quad.cc \ |
| 119 | cc/quads/picture_draw_quad.cc \ |
| 120 | cc/quads/render_pass.cc \ |
| 121 | cc/quads/render_pass_draw_quad.cc \ |
| 122 | cc/quads/shared_quad_state.cc \ |
| 123 | cc/quads/solid_color_draw_quad.cc \ |
| 124 | cc/quads/stream_video_draw_quad.cc \ |
| 125 | cc/quads/texture_draw_quad.cc \ |
| 126 | cc/quads/tile_draw_quad.cc \ |
| 127 | cc/quads/yuv_video_draw_quad.cc \ |
| 128 | cc/resources/bitmap_content_layer_updater.cc \ |
| 129 | cc/resources/bitmap_skpicture_content_layer_updater.cc \ |
| 130 | cc/resources/caching_bitmap_content_layer_updater.cc \ |
| 131 | cc/resources/content_layer_updater.cc \ |
| 132 | cc/resources/image_layer_updater.cc \ |
| Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 133 | cc/resources/image_raster_worker_pool.cc \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 134 | cc/resources/layer_quad.cc \ |
| 135 | cc/resources/layer_tiling_data.cc \ |
| 136 | cc/resources/layer_updater.cc \ |
| 137 | cc/resources/managed_memory_policy.cc \ |
| 138 | cc/resources/managed_tile_state.cc \ |
| 139 | cc/resources/memory_history.cc \ |
| 140 | cc/resources/picture.cc \ |
| 141 | cc/resources/picture_layer_tiling.cc \ |
| 142 | cc/resources/picture_layer_tiling_set.cc \ |
| 143 | cc/resources/picture_pile.cc \ |
| 144 | cc/resources/picture_pile_base.cc \ |
| 145 | cc/resources/picture_pile_impl.cc \ |
| Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 146 | cc/resources/pixel_buffer_raster_worker_pool.cc \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 147 | cc/resources/prioritized_resource.cc \ |
| 148 | cc/resources/prioritized_resource_manager.cc \ |
| 149 | cc/resources/priority_calculator.cc \ |
| 150 | cc/resources/raster_worker_pool.cc \ |
| 151 | cc/resources/resource.cc \ |
| 152 | cc/resources/resource_pool.cc \ |
| 153 | cc/resources/resource_provider.cc \ |
| 154 | cc/resources/resource_update.cc \ |
| 155 | cc/resources/resource_update_controller.cc \ |
| 156 | cc/resources/resource_update_queue.cc \ |
| 157 | cc/resources/scoped_resource.cc \ |
| 158 | cc/resources/skpicture_content_layer_updater.cc \ |
| 159 | cc/resources/sync_point_helper.cc \ |
| 160 | cc/resources/texture_mailbox.cc \ |
| 161 | cc/resources/tile.cc \ |
| 162 | cc/resources/tile_manager.cc \ |
| 163 | cc/resources/tile_priority.cc \ |
| 164 | cc/resources/transferable_resource.cc \ |
| 165 | cc/resources/video_resource_updater.cc \ |
| Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame^] | 166 | cc/resources/worker_pool.cc \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 167 | cc/scheduler/delay_based_time_source.cc \ |
| 168 | cc/scheduler/frame_rate_controller.cc \ |
| 169 | cc/scheduler/rate_limiter.cc \ |
| Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 170 | cc/scheduler/rolling_time_delta_history.cc \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 171 | cc/scheduler/scheduler.cc \ |
| 172 | cc/scheduler/scheduler_settings.cc \ |
| 173 | cc/scheduler/scheduler_state_machine.cc \ |
| 174 | cc/scheduler/texture_uploader.cc \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 175 | cc/trees/damage_tracker.cc \ |
| 176 | cc/trees/layer_sorter.cc \ |
| 177 | cc/trees/layer_tree_host.cc \ |
| 178 | cc/trees/layer_tree_host_common.cc \ |
| 179 | cc/trees/layer_tree_host_impl.cc \ |
| 180 | cc/trees/layer_tree_impl.cc \ |
| 181 | cc/trees/layer_tree_settings.cc \ |
| 182 | cc/trees/occlusion_tracker.cc \ |
| 183 | cc/trees/proxy.cc \ |
| 184 | cc/trees/quad_culler.cc \ |
| 185 | cc/trees/single_thread_proxy.cc \ |
| 186 | cc/trees/thread_proxy.cc \ |
| 187 | cc/trees/tree_synchronizer.cc |
| 188 | |
| 189 | |
| 190 | # Flags passed to both C and C++ files. |
| 191 | MY_CFLAGS := \ |
| 192 | -fstack-protector \ |
| 193 | --param=ssp-buffer-size=4 \ |
| 194 | -Werror \ |
| 195 | -fno-exceptions \ |
| 196 | -fno-strict-aliasing \ |
| 197 | -Wall \ |
| 198 | -Wno-unused-parameter \ |
| 199 | -Wno-missing-field-initializers \ |
| 200 | -fvisibility=hidden \ |
| 201 | -pipe \ |
| 202 | -fPIC \ |
| 203 | -fno-tree-sra \ |
| 204 | -fuse-ld=gold \ |
| 205 | -Wno-psabi \ |
| 206 | -ffunction-sections \ |
| 207 | -funwind-tables \ |
| 208 | -g \ |
| 209 | -fstack-protector \ |
| 210 | -fno-short-enums \ |
| 211 | -finline-limit=64 \ |
| 212 | -Wa,--noexecstack \ |
| 213 | -U_FORTIFY_SOURCE \ |
| 214 | -Wno-extra \ |
| 215 | -Wno-ignored-qualifiers \ |
| 216 | -Wno-type-limits \ |
| 217 | -Os \ |
| 218 | -g \ |
| 219 | -fomit-frame-pointer \ |
| 220 | -fdata-sections \ |
| 221 | -ffunction-sections |
| 222 | |
| 223 | MY_CFLAGS_C := |
| 224 | |
| 225 | MY_DEFS := \ |
| Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame^] | 226 | '-DANGLE_DX11' \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 227 | '-D_FILE_OFFSET_BITS=64' \ |
| 228 | '-DUSE_LINUX_BREAKPAD' \ |
| 229 | '-DNO_TCMALLOC' \ |
| 230 | '-DDISABLE_NACL' \ |
| 231 | '-DCHROMIUM_BUILD' \ |
| 232 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 233 | '-DUSE_PROPRIETARY_CODECS' \ |
| 234 | '-DENABLE_GPU=1' \ |
| 235 | '-DUSE_OPENSSL=1' \ |
| 236 | '-DENABLE_EGLIMAGE=1' \ |
| 237 | '-DENABLE_LANGUAGE_DETECTION=1' \ |
| 238 | '-DCC_IMPLEMENTATION=1' \ |
| 239 | '-DSK_BUILD_NO_IMAGE_ENCODE' \ |
| 240 | '-DSK_DEFERRED_CANVAS_USES_GPIPE=1' \ |
| 241 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
| 242 | '-DGR_AGGRESSIVE_SHADER_OPTS=1' \ |
| 243 | '-DSK_ENABLE_INST_COUNT=0' \ |
| 244 | '-DSK_USE_POSIX_THREADS' \ |
| Torne (Richard Coles) | a93a17c | 2013-05-15 11:34:50 +0100 | [diff] [blame] | 245 | '-DSK_BUILD_FOR_ANDROID' \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 246 | '-DMEDIA_DISABLE_LIBVPX' \ |
| 247 | '-DPOSIX_AVOID_MMAP' \ |
| 248 | '-DU_USING_ICU_NAMESPACE=0' \ |
| 249 | '-D__STDC_CONSTANT_MACROS' \ |
| 250 | '-D__STDC_FORMAT_MACROS' \ |
| 251 | '-DANDROID' \ |
| 252 | '-D__GNU_SOURCE=1' \ |
| 253 | '-DUSE_STLPORT=1' \ |
| 254 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 255 | '-DCHROME_BUILD_ID=""' \ |
| 256 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 257 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 258 | '-D_DEBUG' |
| 259 | |
| 260 | LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) |
| 261 | |
| 262 | # Include paths placed before CFLAGS/CPPFLAGS |
| 263 | LOCAL_C_INCLUDES := \ |
| 264 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 265 | $(LOCAL_PATH) \ |
| 266 | $(LOCAL_PATH)/third_party/khronos \ |
| 267 | $(LOCAL_PATH)/gpu \ |
| 268 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 269 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| 270 | $(LOCAL_PATH)/skia/config \ |
| 271 | $(LOCAL_PATH)/third_party/skia/src/core \ |
| 272 | $(LOCAL_PATH)/third_party/skia/include/config \ |
| 273 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 274 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 275 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 276 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
| 277 | $(LOCAL_PATH)/third_party/skia/include/gpu/gl \ |
| 278 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| 279 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 280 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 281 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
| 282 | $(LOCAL_PATH)/skia/ext \ |
| 283 | $(gyp_shared_intermediate_dir)/ui/gl \ |
| Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 284 | $(LOCAL_PATH)/third_party/mesa/src/include \ |
| Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 285 | $(PWD)/external/icu4c/common \ |
| 286 | $(PWD)/external/icu4c/i18n \ |
| Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 287 | $(PWD)/frameworks/wilhelm/include \ |
| 288 | $(PWD)/bionic \ |
| 289 | $(PWD)/external/stlport/stlport |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 290 | |
| 291 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES) |
| 292 | |
| 293 | # Flags passed to only C++ (and not C) files. |
| 294 | LOCAL_CPPFLAGS := \ |
| 295 | -fno-rtti \ |
| 296 | -fno-threadsafe-statics \ |
| 297 | -fvisibility-inlines-hidden \ |
| 298 | -Wsign-compare \ |
| 299 | -Wno-abi \ |
| 300 | -Wno-error=c++0x-compat \ |
| 301 | -Wno-non-virtual-dtor \ |
| 302 | -Wno-sign-promo |
| 303 | |
| 304 | ### Rules for final target. |
| 305 | |
| 306 | LOCAL_LDFLAGS := \ |
| 307 | -Wl,-z,now \ |
| 308 | -Wl,-z,relro \ |
| 309 | -Wl,-z,noexecstack \ |
| 310 | -fPIC \ |
| 311 | -Wl,-z,relro \ |
| 312 | -Wl,-z,now \ |
| 313 | -fuse-ld=gold \ |
| 314 | -nostdlib \ |
| 315 | -Wl,--no-undefined \ |
| 316 | -Wl,--exclude-libs=ALL \ |
| 317 | -Wl,--icf=safe \ |
| 318 | -Wl,--gc-sections \ |
| 319 | -Wl,-O1 \ |
| 320 | -Wl,--as-needed |
| 321 | |
| 322 | |
| 323 | LOCAL_STATIC_LIBRARIES := \ |
| 324 | skia_skia_gyp \ |
| 325 | ui_gl_gl_gyp \ |
| 326 | ui_ui_gyp |
| 327 | |
| 328 | # Enable grouping to fix circular references |
| 329 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 330 | |
| 331 | LOCAL_SHARED_LIBRARIES := \ |
| 332 | libstlport \ |
| 333 | libdl |
| 334 | |
| 335 | # Add target alias to "gyp_all_modules" target. |
| 336 | .PHONY: gyp_all_modules |
| 337 | gyp_all_modules: cc_cc_gyp |
| 338 | |
| 339 | # Alias gyp target name. |
| 340 | .PHONY: cc |
| 341 | cc: cc_cc_gyp |
| 342 | |
| 343 | include $(BUILD_STATIC_LIBRARY) |