cc.target.darwin-x86.mk revision 90dce4d38c5ff5333bea97d859d4e484e27edf0c
1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := cc_cc_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_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 \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a 18 19GYP_GENERATED_OUTPUTS := 20 21# Make sure our deps and generated files are built first. 22LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24LOCAL_CPP_EXTENSION := .cc 25LOCAL_GENERATED_SOURCES := 26 27GYP_COPIED_SOURCE_ORIGIN_DIRS := 28 29LOCAL_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/scrollbar_animation_controller_linear_fade.cc \ 38 cc/animation/timing_function.cc \ 39 cc/animation/transform_operation.cc \ 40 cc/animation/transform_operations.cc \ 41 cc/base/math_util.cc \ 42 cc/base/region.cc \ 43 cc/base/switches.cc \ 44 cc/base/thread_impl.cc \ 45 cc/base/tiling_data.cc \ 46 cc/base/worker_pool.cc \ 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 \ 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 \ 56 cc/debug/traced_picture.cc \ 57 cc/debug/traced_value.cc \ 58 cc/input/page_scale_animation.cc \ 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 \ 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 \ 92 cc/output/compositor_frame.cc \ 93 cc/output/compositor_frame_ack.cc \ 94 cc/output/compositor_frame_metadata.cc \ 95 cc/output/copy_output_request.cc \ 96 cc/output/delegated_frame_data.cc \ 97 cc/output/delegating_renderer.cc \ 98 cc/output/direct_renderer.cc \ 99 cc/output/geometry_binding.cc \ 100 cc/output/gl_frame_data.cc \ 101 cc/output/gl_renderer.cc \ 102 cc/output/gl_renderer_draw_cache.cc \ 103 cc/output/output_surface.cc \ 104 cc/output/program_binding.cc \ 105 cc/output/render_surface_filters.cc \ 106 cc/output/renderer.cc \ 107 cc/output/shader.cc \ 108 cc/output/software_frame_data.cc \ 109 cc/output/software_output_device.cc \ 110 cc/output/software_renderer.cc \ 111 cc/output/texture_copier.cc \ 112 cc/quads/checkerboard_draw_quad.cc \ 113 cc/quads/content_draw_quad_base.cc \ 114 cc/quads/debug_border_draw_quad.cc \ 115 cc/quads/draw_quad.cc \ 116 cc/quads/io_surface_draw_quad.cc \ 117 cc/quads/picture_draw_quad.cc \ 118 cc/quads/render_pass.cc \ 119 cc/quads/render_pass_draw_quad.cc \ 120 cc/quads/shared_quad_state.cc \ 121 cc/quads/solid_color_draw_quad.cc \ 122 cc/quads/stream_video_draw_quad.cc \ 123 cc/quads/texture_draw_quad.cc \ 124 cc/quads/tile_draw_quad.cc \ 125 cc/quads/yuv_video_draw_quad.cc \ 126 cc/resources/bitmap_content_layer_updater.cc \ 127 cc/resources/bitmap_skpicture_content_layer_updater.cc \ 128 cc/resources/caching_bitmap_content_layer_updater.cc \ 129 cc/resources/content_layer_updater.cc \ 130 cc/resources/image_layer_updater.cc \ 131 cc/resources/layer_quad.cc \ 132 cc/resources/layer_tiling_data.cc \ 133 cc/resources/layer_updater.cc \ 134 cc/resources/managed_memory_policy.cc \ 135 cc/resources/managed_tile_state.cc \ 136 cc/resources/memory_history.cc \ 137 cc/resources/picture.cc \ 138 cc/resources/picture_layer_tiling.cc \ 139 cc/resources/picture_layer_tiling_set.cc \ 140 cc/resources/picture_pile.cc \ 141 cc/resources/picture_pile_base.cc \ 142 cc/resources/picture_pile_impl.cc \ 143 cc/resources/prioritized_resource.cc \ 144 cc/resources/prioritized_resource_manager.cc \ 145 cc/resources/priority_calculator.cc \ 146 cc/resources/raster_worker_pool.cc \ 147 cc/resources/resource.cc \ 148 cc/resources/resource_pool.cc \ 149 cc/resources/resource_provider.cc \ 150 cc/resources/resource_update.cc \ 151 cc/resources/resource_update_controller.cc \ 152 cc/resources/resource_update_queue.cc \ 153 cc/resources/scoped_resource.cc \ 154 cc/resources/skpicture_content_layer_updater.cc \ 155 cc/resources/sync_point_helper.cc \ 156 cc/resources/texture_mailbox.cc \ 157 cc/resources/tile.cc \ 158 cc/resources/tile_manager.cc \ 159 cc/resources/tile_priority.cc \ 160 cc/resources/transferable_resource.cc \ 161 cc/resources/video_resource_updater.cc \ 162 cc/scheduler/delay_based_time_source.cc \ 163 cc/scheduler/frame_rate_controller.cc \ 164 cc/scheduler/rate_limiter.cc \ 165 cc/scheduler/scheduler.cc \ 166 cc/scheduler/scheduler_settings.cc \ 167 cc/scheduler/scheduler_state_machine.cc \ 168 cc/scheduler/texture_uploader.cc \ 169 cc/scheduler/vsync_time_source.cc \ 170 cc/trees/damage_tracker.cc \ 171 cc/trees/layer_sorter.cc \ 172 cc/trees/layer_tree_host.cc \ 173 cc/trees/layer_tree_host_common.cc \ 174 cc/trees/layer_tree_host_impl.cc \ 175 cc/trees/layer_tree_impl.cc \ 176 cc/trees/layer_tree_settings.cc \ 177 cc/trees/occlusion_tracker.cc \ 178 cc/trees/proxy.cc \ 179 cc/trees/quad_culler.cc \ 180 cc/trees/single_thread_proxy.cc \ 181 cc/trees/thread_proxy.cc \ 182 cc/trees/tree_synchronizer.cc 183 184 185# Flags passed to both C and C++ files. 186MY_CFLAGS := \ 187 --param=ssp-buffer-size=4 \ 188 -Werror \ 189 -fno-exceptions \ 190 -fno-strict-aliasing \ 191 -Wall \ 192 -Wno-unused-parameter \ 193 -Wno-missing-field-initializers \ 194 -fvisibility=hidden \ 195 -pipe \ 196 -fPIC \ 197 -m32 \ 198 -mmmx \ 199 -march=pentium4 \ 200 -msse2 \ 201 -mfpmath=sse \ 202 -fuse-ld=gold \ 203 -ffunction-sections \ 204 -funwind-tables \ 205 -g \ 206 -fno-short-enums \ 207 -finline-limit=64 \ 208 -Wa,--noexecstack \ 209 -U_FORTIFY_SOURCE \ 210 -Wno-extra \ 211 -Wno-ignored-qualifiers \ 212 -Wno-type-limits \ 213 -fno-stack-protector \ 214 -Os \ 215 -g \ 216 -fomit-frame-pointer \ 217 -fdata-sections \ 218 -ffunction-sections 219 220MY_CFLAGS_C := 221 222MY_DEFS := \ 223 '-D_FILE_OFFSET_BITS=64' \ 224 '-DUSE_LINUX_BREAKPAD' \ 225 '-DNO_TCMALLOC' \ 226 '-DDISABLE_NACL' \ 227 '-DCHROMIUM_BUILD' \ 228 '-DENABLE_DOUBLE_RESOURCE_LOAD_TIMING' \ 229 '-DUSE_LIBJPEG_TURBO=1' \ 230 '-DUSE_PROPRIETARY_CODECS' \ 231 '-DENABLE_GPU=1' \ 232 '-DUSE_OPENSSL=1' \ 233 '-DENABLE_EGLIMAGE=1' \ 234 '-DENABLE_LANGUAGE_DETECTION=1' \ 235 '-DCC_IMPLEMENTATION=1' \ 236 '-DSK_BUILD_NO_IMAGE_ENCODE' \ 237 '-DSK_DEFERRED_CANVAS_USES_GPIPE=1' \ 238 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 239 '-DGR_AGGRESSIVE_SHADER_OPTS=1' \ 240 '-DSK_ENABLE_INST_COUNT=0' \ 241 '-DSK_USE_POSIX_THREADS' \ 242 '-DSK_BUILD_FOR_ANDROID' \ 243 '-DMEDIA_DISABLE_LIBVPX' \ 244 '-DU_USING_ICU_NAMESPACE=0' \ 245 '-D__STDC_CONSTANT_MACROS' \ 246 '-D__STDC_FORMAT_MACROS' \ 247 '-DANDROID' \ 248 '-D__GNU_SOURCE=1' \ 249 '-DUSE_STLPORT=1' \ 250 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 251 '-DCHROME_BUILD_ID=""' \ 252 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 253 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 254 '-D_DEBUG' 255 256LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) 257 258# Include paths placed before CFLAGS/CPPFLAGS 259LOCAL_C_INCLUDES := \ 260 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 261 $(LOCAL_PATH) \ 262 $(LOCAL_PATH)/third_party/khronos \ 263 $(LOCAL_PATH)/gpu \ 264 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 265 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 266 $(LOCAL_PATH)/skia/config \ 267 $(LOCAL_PATH)/third_party/skia/src/core \ 268 $(LOCAL_PATH)/third_party/skia/include/config \ 269 $(LOCAL_PATH)/third_party/skia/include/core \ 270 $(LOCAL_PATH)/third_party/skia/include/effects \ 271 $(LOCAL_PATH)/third_party/skia/include/pdf \ 272 $(LOCAL_PATH)/third_party/skia/include/gpu \ 273 $(LOCAL_PATH)/third_party/skia/include/gpu/gl \ 274 $(LOCAL_PATH)/third_party/skia/include/pathops \ 275 $(LOCAL_PATH)/third_party/skia/include/pipe \ 276 $(LOCAL_PATH)/third_party/skia/include/ports \ 277 $(LOCAL_PATH)/third_party/skia/include/utils \ 278 $(LOCAL_PATH)/skia/ext \ 279 $(gyp_shared_intermediate_dir)/ui/gl \ 280 $(LOCAL_PATH)/third_party/mesa/MesaLib/include \ 281 $(PWD)/external/icu4c/common \ 282 $(PWD)/external/icu4c/i18n \ 283 $(LOCAL_PATH)/third_party/WebKit/Source/Platform/chromium \ 284 $(LOCAL_PATH)/third_party/WebKit/Source/Platform/chromium \ 285 $(LOCAL_PATH)/third_party/npapi \ 286 $(LOCAL_PATH)/third_party/npapi/bindings \ 287 $(LOCAL_PATH)/v8/include \ 288 $(PWD)/frameworks/wilhelm/include \ 289 $(PWD)/bionic \ 290 $(PWD)/external/stlport/stlport 291 292LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES) 293 294# Flags passed to only C++ (and not C) files. 295LOCAL_CPPFLAGS := \ 296 -fno-rtti \ 297 -fno-threadsafe-statics \ 298 -fvisibility-inlines-hidden \ 299 -Wsign-compare \ 300 -Wno-error=c++0x-compat \ 301 -Wno-non-virtual-dtor \ 302 -Wno-sign-promo 303 304### Rules for final target. 305 306LOCAL_LDFLAGS := \ 307 -Wl,-z,now \ 308 -Wl,-z,relro \ 309 -Wl,-z,noexecstack \ 310 -fPIC \ 311 -m32 \ 312 -fuse-ld=gold \ 313 -nostdlib \ 314 -Wl,--no-undefined \ 315 -Wl,--exclude-libs=ALL \ 316 -Wl,--gc-sections \ 317 -Wl,-O1 \ 318 -Wl,--as-needed 319 320 321LOCAL_STATIC_LIBRARIES := \ 322 skia_skia_gyp \ 323 ui_gl_gl_gyp \ 324 ui_ui_gyp 325 326# Enable grouping to fix circular references 327LOCAL_GROUP_STATIC_LIBRARIES := true 328 329LOCAL_SHARED_LIBRARIES := \ 330 libstlport \ 331 libdl 332 333# Add target alias to "gyp_all_modules" target. 334.PHONY: gyp_all_modules 335gyp_all_modules: cc_cc_gyp 336 337# Alias gyp target name. 338.PHONY: cc 339cc: cc_cc_gyp 340 341include $(BUILD_STATIC_LIBRARY) 342