Home | History | Annotate | Download | only in cc
      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 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,gpu_gpu_gyp,,,$(GYP_VAR_PREFIX))/gpu.stamp \
     16 	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
     17 	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
     18 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a
     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/scroll_offset_animation_curve.cc \
     39 	cc/animation/scrollbar_animation_controller.cc \
     40 	cc/animation/scrollbar_animation_controller_linear_fade.cc \
     41 	cc/animation/scrollbar_animation_controller_thinning.cc \
     42 	cc/animation/timing_function.cc \
     43 	cc/animation/transform_operation.cc \
     44 	cc/animation/transform_operations.cc \
     45 	cc/base/delayed_unique_notifier.cc \
     46 	cc/base/invalidation_region.cc \
     47 	cc/base/latency_info_swap_promise.cc \
     48 	cc/base/latency_info_swap_promise_monitor.cc \
     49 	cc/base/math_util.cc \
     50 	cc/base/region.cc \
     51 	cc/base/rolling_time_delta_history.cc \
     52 	cc/base/swap_promise_monitor.cc \
     53 	cc/base/switches.cc \
     54 	cc/base/tiling_data.cc \
     55 	cc/base/unique_notifier.cc \
     56 	cc/debug/benchmark_instrumentation.cc \
     57 	cc/debug/debug_colors.cc \
     58 	cc/debug/debug_rect_history.cc \
     59 	cc/debug/frame_rate_counter.cc \
     60 	cc/debug/invalidation_benchmark.cc \
     61 	cc/debug/lap_timer.cc \
     62 	cc/debug/layer_tree_debug_state.cc \
     63 	cc/debug/micro_benchmark.cc \
     64 	cc/debug/micro_benchmark_impl.cc \
     65 	cc/debug/micro_benchmark_controller.cc \
     66 	cc/debug/micro_benchmark_controller_impl.cc \
     67 	cc/debug/paint_time_counter.cc \
     68 	cc/debug/picture_record_benchmark.cc \
     69 	cc/debug/rasterize_and_record_benchmark.cc \
     70 	cc/debug/rasterize_and_record_benchmark_impl.cc \
     71 	cc/debug/rendering_stats.cc \
     72 	cc/debug/rendering_stats_instrumentation.cc \
     73 	cc/debug/traced_picture.cc \
     74 	cc/debug/traced_value.cc \
     75 	cc/debug/unittest_only_benchmark.cc \
     76 	cc/debug/unittest_only_benchmark_impl.cc \
     77 	cc/input/page_scale_animation.cc \
     78 	cc/input/top_controls_manager.cc \
     79 	cc/layers/content_layer.cc \
     80 	cc/layers/contents_scaling_layer.cc \
     81 	cc/layers/delegated_frame_provider.cc \
     82 	cc/layers/delegated_frame_resource_collection.cc \
     83 	cc/layers/delegated_renderer_layer.cc \
     84 	cc/layers/delegated_renderer_layer_impl.cc \
     85 	cc/layers/heads_up_display_layer.cc \
     86 	cc/layers/heads_up_display_layer_impl.cc \
     87 	cc/layers/image_layer.cc \
     88 	cc/layers/io_surface_layer.cc \
     89 	cc/layers/io_surface_layer_impl.cc \
     90 	cc/layers/layer.cc \
     91 	cc/layers/layer_impl.cc \
     92 	cc/layers/layer_lists.cc \
     93 	cc/layers/layer_position_constraint.cc \
     94 	cc/layers/layer_utils.cc \
     95 	cc/layers/nine_patch_layer.cc \
     96 	cc/layers/nine_patch_layer_impl.cc \
     97 	cc/layers/painted_scrollbar_layer.cc \
     98 	cc/layers/painted_scrollbar_layer_impl.cc \
     99 	cc/layers/picture_image_layer.cc \
    100 	cc/layers/picture_image_layer_impl.cc \
    101 	cc/layers/picture_layer.cc \
    102 	cc/layers/picture_layer_impl.cc \
    103 	cc/layers/quad_sink.cc \
    104 	cc/layers/render_surface.cc \
    105 	cc/layers/render_surface_impl.cc \
    106 	cc/layers/scrollbar_layer_impl_base.cc \
    107 	cc/layers/solid_color_layer.cc \
    108 	cc/layers/solid_color_layer_impl.cc \
    109 	cc/layers/solid_color_scrollbar_layer.cc \
    110 	cc/layers/solid_color_scrollbar_layer_impl.cc \
    111 	cc/layers/surface_layer.cc \
    112 	cc/layers/surface_layer_impl.cc \
    113 	cc/layers/texture_layer.cc \
    114 	cc/layers/texture_layer_impl.cc \
    115 	cc/layers/tiled_layer.cc \
    116 	cc/layers/tiled_layer_impl.cc \
    117 	cc/layers/ui_resource_layer.cc \
    118 	cc/layers/ui_resource_layer_impl.cc \
    119 	cc/layers/video_frame_provider_client_impl.cc \
    120 	cc/layers/video_layer.cc \
    121 	cc/layers/video_layer_impl.cc \
    122 	cc/output/begin_frame_args.cc \
    123 	cc/output/compositor_frame.cc \
    124 	cc/output/compositor_frame_ack.cc \
    125 	cc/output/compositor_frame_metadata.cc \
    126 	cc/output/context_provider.cc \
    127 	cc/output/copy_output_request.cc \
    128 	cc/output/copy_output_result.cc \
    129 	cc/output/delegated_frame_data.cc \
    130 	cc/output/delegating_renderer.cc \
    131 	cc/output/direct_renderer.cc \
    132 	cc/output/filter_operation.cc \
    133 	cc/output/filter_operations.cc \
    134 	cc/output/geometry_binding.cc \
    135 	cc/output/gl_frame_data.cc \
    136 	cc/output/gl_renderer.cc \
    137 	cc/output/gl_renderer_draw_cache.cc \
    138 	cc/output/managed_memory_policy.cc \
    139 	cc/output/output_surface.cc \
    140 	cc/output/overlay_candidate.cc \
    141 	cc/output/overlay_processor.cc \
    142 	cc/output/overlay_strategy_single_on_top.cc \
    143 	cc/output/program_binding.cc \
    144 	cc/output/render_surface_filters.cc \
    145 	cc/output/renderer.cc \
    146 	cc/output/shader.cc \
    147 	cc/output/software_frame_data.cc \
    148 	cc/output/software_output_device.cc \
    149 	cc/output/software_renderer.cc \
    150 	cc/quads/checkerboard_draw_quad.cc \
    151 	cc/quads/content_draw_quad_base.cc \
    152 	cc/quads/debug_border_draw_quad.cc \
    153 	cc/quads/draw_quad.cc \
    154 	cc/quads/io_surface_draw_quad.cc \
    155 	cc/quads/picture_draw_quad.cc \
    156 	cc/quads/render_pass.cc \
    157 	cc/quads/render_pass_draw_quad.cc \
    158 	cc/quads/shared_quad_state.cc \
    159 	cc/quads/solid_color_draw_quad.cc \
    160 	cc/quads/stream_video_draw_quad.cc \
    161 	cc/quads/surface_draw_quad.cc \
    162 	cc/quads/texture_draw_quad.cc \
    163 	cc/quads/tile_draw_quad.cc \
    164 	cc/quads/yuv_video_draw_quad.cc \
    165 	cc/resources/bitmap_content_layer_updater.cc \
    166 	cc/resources/bitmap_skpicture_content_layer_updater.cc \
    167 	cc/resources/content_layer_updater.cc \
    168 	cc/resources/direct_raster_worker_pool.cc \
    169 	cc/resources/image_layer_updater.cc \
    170 	cc/resources/image_raster_worker_pool.cc \
    171 	cc/resources/image_copy_raster_worker_pool.cc \
    172 	cc/resources/layer_quad.cc \
    173 	cc/resources/layer_tiling_data.cc \
    174 	cc/resources/layer_updater.cc \
    175 	cc/resources/managed_tile_state.cc \
    176 	cc/resources/memory_history.cc \
    177 	cc/resources/picture.cc \
    178 	cc/resources/picture_layer_tiling.cc \
    179 	cc/resources/picture_layer_tiling_set.cc \
    180 	cc/resources/picture_pile.cc \
    181 	cc/resources/picture_pile_base.cc \
    182 	cc/resources/picture_pile_impl.cc \
    183 	cc/resources/pixel_buffer_raster_worker_pool.cc \
    184 	cc/resources/prioritized_resource.cc \
    185 	cc/resources/prioritized_resource_manager.cc \
    186 	cc/resources/prioritized_tile_set.cc \
    187 	cc/resources/priority_calculator.cc \
    188 	cc/resources/raster_mode.cc \
    189 	cc/resources/raster_worker_pool.cc \
    190 	cc/resources/rasterizer.cc \
    191 	cc/resources/resource.cc \
    192 	cc/resources/resource_format.cc \
    193 	cc/resources/resource_pool.cc \
    194 	cc/resources/resource_provider.cc \
    195 	cc/resources/resource_update.cc \
    196 	cc/resources/resource_update_controller.cc \
    197 	cc/resources/resource_update_queue.cc \
    198 	cc/resources/scoped_resource.cc \
    199 	cc/resources/scoped_ui_resource.cc \
    200 	cc/resources/shared_bitmap.cc \
    201 	cc/resources/single_release_callback.cc \
    202 	cc/resources/skpicture_content_layer_updater.cc \
    203 	cc/resources/task_graph_runner.cc \
    204 	cc/resources/texture_mailbox.cc \
    205 	cc/resources/texture_mailbox_deleter.cc \
    206 	cc/resources/texture_uploader.cc \
    207 	cc/resources/tile.cc \
    208 	cc/resources/tile_manager.cc \
    209 	cc/resources/tile_priority.cc \
    210 	cc/resources/transferable_resource.cc \
    211 	cc/resources/ui_resource_bitmap.cc \
    212 	cc/resources/ui_resource_request.cc \
    213 	cc/resources/video_resource_updater.cc \
    214 	cc/scheduler/delay_based_time_source.cc \
    215 	cc/scheduler/scheduler.cc \
    216 	cc/scheduler/scheduler_settings.cc \
    217 	cc/scheduler/scheduler_state_machine.cc \
    218 	cc/trees/blocking_task_runner.cc \
    219 	cc/trees/damage_tracker.cc \
    220 	cc/trees/layer_sorter.cc \
    221 	cc/trees/layer_tree_host.cc \
    222 	cc/trees/layer_tree_host_common.cc \
    223 	cc/trees/layer_tree_host_impl.cc \
    224 	cc/trees/layer_tree_impl.cc \
    225 	cc/trees/layer_tree_settings.cc \
    226 	cc/trees/occlusion_tracker.cc \
    227 	cc/trees/proxy.cc \
    228 	cc/trees/proxy_timing_history.cc \
    229 	cc/trees/single_thread_proxy.cc \
    230 	cc/trees/thread_proxy.cc \
    231 	cc/trees/tree_synchronizer.cc
    232 
    233 
    234 # Flags passed to both C and C++ files.
    235 MY_CFLAGS_Debug := \
    236 	--param=ssp-buffer-size=4 \
    237 	-Werror \
    238 	-fno-exceptions \
    239 	-fno-strict-aliasing \
    240 	-Wall \
    241 	-Wno-unused-parameter \
    242 	-Wno-missing-field-initializers \
    243 	-fvisibility=hidden \
    244 	-pipe \
    245 	-fPIC \
    246 	-Wno-unused-local-typedefs \
    247 	-msse2 \
    248 	-mfpmath=sse \
    249 	-mmmx \
    250 	-m32 \
    251 	-ffunction-sections \
    252 	-funwind-tables \
    253 	-g \
    254 	-fno-short-enums \
    255 	-finline-limit=64 \
    256 	-Wa,--noexecstack \
    257 	-U_FORTIFY_SOURCE \
    258 	-Wno-extra \
    259 	-Wno-ignored-qualifiers \
    260 	-Wno-type-limits \
    261 	-Wno-unused-but-set-variable \
    262 	-fno-stack-protector \
    263 	-Os \
    264 	-g \
    265 	-fdata-sections \
    266 	-ffunction-sections \
    267 	-fomit-frame-pointer \
    268 	-funwind-tables
    269 
    270 MY_DEFS_Debug := \
    271 	'-DV8_DEPRECATION_WARNINGS' \
    272 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    273 	'-D_FILE_OFFSET_BITS=64' \
    274 	'-DNO_TCMALLOC' \
    275 	'-DDISABLE_NACL' \
    276 	'-DCHROMIUM_BUILD' \
    277 	'-DUSE_LIBJPEG_TURBO=1' \
    278 	'-DENABLE_WEBRTC=1' \
    279 	'-DUSE_PROPRIETARY_CODECS' \
    280 	'-DENABLE_BROWSER_CDMS' \
    281 	'-DENABLE_CONFIGURATION_POLICY' \
    282 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    283 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    284 	'-DENABLE_EGLIMAGE=1' \
    285 	'-DCLD_VERSION=1' \
    286 	'-DENABLE_PRINTING=1' \
    287 	'-DENABLE_MANAGED_USERS=1' \
    288 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    289 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    290 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    291 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    292 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    293 	'-DVIDEO_HOLE=1' \
    294 	'-DCC_IMPLEMENTATION=1' \
    295 	'-DMEDIA_DISABLE_LIBVPX' \
    296 	'-DSK_ENABLE_INST_COUNT=0' \
    297 	'-DSK_SUPPORT_GPU=1' \
    298 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    299 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    300 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    301 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    302 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    303 	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
    304 	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
    305 	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
    306 	'-DSK_SUPPORT_LEGACY_N32_NAME' \
    307 	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
    308 	'-DSK_IGNORE_ETC1_SUPPORT' \
    309 	'-DSK_IGNORE_GPU_DITHER' \
    310 	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
    311 	'-DSK_BUILD_FOR_ANDROID' \
    312 	'-DSK_USE_POSIX_THREADS' \
    313 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    314 	'-DU_USING_ICU_NAMESPACE=0' \
    315 	'-DMESA_EGL_NO_X11_HEADERS' \
    316 	'-DUSE_OPENSSL=1' \
    317 	'-DUSE_OPENSSL_CERTS=1' \
    318 	'-D__STDC_CONSTANT_MACROS' \
    319 	'-D__STDC_FORMAT_MACROS' \
    320 	'-DANDROID' \
    321 	'-D__GNU_SOURCE=1' \
    322 	'-DUSE_STLPORT=1' \
    323 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    324 	'-DCHROME_BUILD_ID=""' \
    325 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    326 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    327 	'-D_DEBUG'
    328 
    329 
    330 # Include paths placed before CFLAGS/CPPFLAGS
    331 LOCAL_C_INCLUDES_Debug := \
    332 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    333 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    334 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    335 	$(gyp_shared_intermediate_dir) \
    336 	$(LOCAL_PATH) \
    337 	$(LOCAL_PATH)/third_party/khronos \
    338 	$(LOCAL_PATH)/gpu \
    339 	$(LOCAL_PATH)/skia/config \
    340 	$(LOCAL_PATH)/third_party/skia/src/core \
    341 	$(LOCAL_PATH)/third_party/skia/include/core \
    342 	$(LOCAL_PATH)/third_party/skia/include/effects \
    343 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    344 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    345 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    346 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    347 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    348 	$(LOCAL_PATH)/third_party/skia/include/ports \
    349 	$(LOCAL_PATH)/third_party/skia/include/utils \
    350 	$(LOCAL_PATH)/skia/ext \
    351 	$(PWD)/external/icu/icu4c/source/common \
    352 	$(PWD)/external/icu/icu4c/source/i18n \
    353 	$(gyp_shared_intermediate_dir)/ui/gl \
    354 	$(LOCAL_PATH)/third_party/mesa/src/include \
    355 	$(PWD)/frameworks/wilhelm/include \
    356 	$(PWD)/bionic \
    357 	$(PWD)/external/stlport/stlport
    358 
    359 
    360 # Flags passed to only C++ (and not C) files.
    361 LOCAL_CPPFLAGS_Debug := \
    362 	-fno-rtti \
    363 	-fno-threadsafe-statics \
    364 	-fvisibility-inlines-hidden \
    365 	-Wsign-compare \
    366 	-Wno-non-virtual-dtor \
    367 	-Wno-sign-promo
    368 
    369 
    370 LOCAL_FDO_SUPPORT_Debug := false
    371 
    372 # Flags passed to both C and C++ files.
    373 MY_CFLAGS_Release := \
    374 	--param=ssp-buffer-size=4 \
    375 	-Werror \
    376 	-fno-exceptions \
    377 	-fno-strict-aliasing \
    378 	-Wall \
    379 	-Wno-unused-parameter \
    380 	-Wno-missing-field-initializers \
    381 	-fvisibility=hidden \
    382 	-pipe \
    383 	-fPIC \
    384 	-Wno-unused-local-typedefs \
    385 	-msse2 \
    386 	-mfpmath=sse \
    387 	-mmmx \
    388 	-m32 \
    389 	-ffunction-sections \
    390 	-funwind-tables \
    391 	-g \
    392 	-fno-short-enums \
    393 	-finline-limit=64 \
    394 	-Wa,--noexecstack \
    395 	-U_FORTIFY_SOURCE \
    396 	-Wno-extra \
    397 	-Wno-ignored-qualifiers \
    398 	-Wno-type-limits \
    399 	-Wno-unused-but-set-variable \
    400 	-fno-stack-protector \
    401 	-Os \
    402 	-fno-ident \
    403 	-fdata-sections \
    404 	-ffunction-sections \
    405 	-fomit-frame-pointer \
    406 	-funwind-tables
    407 
    408 MY_DEFS_Release := \
    409 	'-DV8_DEPRECATION_WARNINGS' \
    410 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    411 	'-D_FILE_OFFSET_BITS=64' \
    412 	'-DNO_TCMALLOC' \
    413 	'-DDISABLE_NACL' \
    414 	'-DCHROMIUM_BUILD' \
    415 	'-DUSE_LIBJPEG_TURBO=1' \
    416 	'-DENABLE_WEBRTC=1' \
    417 	'-DUSE_PROPRIETARY_CODECS' \
    418 	'-DENABLE_BROWSER_CDMS' \
    419 	'-DENABLE_CONFIGURATION_POLICY' \
    420 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    421 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    422 	'-DENABLE_EGLIMAGE=1' \
    423 	'-DCLD_VERSION=1' \
    424 	'-DENABLE_PRINTING=1' \
    425 	'-DENABLE_MANAGED_USERS=1' \
    426 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    427 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    428 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    429 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    430 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    431 	'-DVIDEO_HOLE=1' \
    432 	'-DCC_IMPLEMENTATION=1' \
    433 	'-DMEDIA_DISABLE_LIBVPX' \
    434 	'-DSK_ENABLE_INST_COUNT=0' \
    435 	'-DSK_SUPPORT_GPU=1' \
    436 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    437 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    438 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    439 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    440 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    441 	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
    442 	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
    443 	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
    444 	'-DSK_SUPPORT_LEGACY_N32_NAME' \
    445 	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
    446 	'-DSK_IGNORE_ETC1_SUPPORT' \
    447 	'-DSK_IGNORE_GPU_DITHER' \
    448 	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
    449 	'-DSK_BUILD_FOR_ANDROID' \
    450 	'-DSK_USE_POSIX_THREADS' \
    451 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    452 	'-DU_USING_ICU_NAMESPACE=0' \
    453 	'-DMESA_EGL_NO_X11_HEADERS' \
    454 	'-DUSE_OPENSSL=1' \
    455 	'-DUSE_OPENSSL_CERTS=1' \
    456 	'-D__STDC_CONSTANT_MACROS' \
    457 	'-D__STDC_FORMAT_MACROS' \
    458 	'-DANDROID' \
    459 	'-D__GNU_SOURCE=1' \
    460 	'-DUSE_STLPORT=1' \
    461 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    462 	'-DCHROME_BUILD_ID=""' \
    463 	'-DNDEBUG' \
    464 	'-DNVALGRIND' \
    465 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    466 	'-D_FORTIFY_SOURCE=2'
    467 
    468 
    469 # Include paths placed before CFLAGS/CPPFLAGS
    470 LOCAL_C_INCLUDES_Release := \
    471 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    472 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    473 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    474 	$(gyp_shared_intermediate_dir) \
    475 	$(LOCAL_PATH) \
    476 	$(LOCAL_PATH)/third_party/khronos \
    477 	$(LOCAL_PATH)/gpu \
    478 	$(LOCAL_PATH)/skia/config \
    479 	$(LOCAL_PATH)/third_party/skia/src/core \
    480 	$(LOCAL_PATH)/third_party/skia/include/core \
    481 	$(LOCAL_PATH)/third_party/skia/include/effects \
    482 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    483 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    484 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    485 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    486 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    487 	$(LOCAL_PATH)/third_party/skia/include/ports \
    488 	$(LOCAL_PATH)/third_party/skia/include/utils \
    489 	$(LOCAL_PATH)/skia/ext \
    490 	$(PWD)/external/icu/icu4c/source/common \
    491 	$(PWD)/external/icu/icu4c/source/i18n \
    492 	$(gyp_shared_intermediate_dir)/ui/gl \
    493 	$(LOCAL_PATH)/third_party/mesa/src/include \
    494 	$(PWD)/frameworks/wilhelm/include \
    495 	$(PWD)/bionic \
    496 	$(PWD)/external/stlport/stlport
    497 
    498 
    499 # Flags passed to only C++ (and not C) files.
    500 LOCAL_CPPFLAGS_Release := \
    501 	-fno-rtti \
    502 	-fno-threadsafe-statics \
    503 	-fvisibility-inlines-hidden \
    504 	-Wsign-compare \
    505 	-Wno-non-virtual-dtor \
    506 	-Wno-sign-promo
    507 
    508 
    509 LOCAL_FDO_SUPPORT_Release := false
    510 
    511 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    512 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    513 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    514 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    515 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    516 ### Rules for final target.
    517 
    518 LOCAL_LDFLAGS_Debug := \
    519 	-Wl,-z,now \
    520 	-Wl,-z,relro \
    521 	-Wl,--fatal-warnings \
    522 	-Wl,-z,noexecstack \
    523 	-fPIC \
    524 	-m32 \
    525 	-fuse-ld=gold \
    526 	-nostdlib \
    527 	-Wl,--no-undefined \
    528 	-Wl,--exclude-libs=ALL \
    529 	-Wl,--warn-shared-textrel \
    530 	-Wl,-O1 \
    531 	-Wl,--as-needed
    532 
    533 
    534 LOCAL_LDFLAGS_Release := \
    535 	-Wl,-z,now \
    536 	-Wl,-z,relro \
    537 	-Wl,--fatal-warnings \
    538 	-Wl,-z,noexecstack \
    539 	-fPIC \
    540 	-m32 \
    541 	-fuse-ld=gold \
    542 	-nostdlib \
    543 	-Wl,--no-undefined \
    544 	-Wl,--exclude-libs=ALL \
    545 	-Wl,-O1 \
    546 	-Wl,--as-needed \
    547 	-Wl,--gc-sections \
    548 	-Wl,--warn-shared-textrel
    549 
    550 
    551 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    552 
    553 LOCAL_STATIC_LIBRARIES := \
    554 	skia_skia_library_gyp \
    555 	ui_gl_gl_gyp
    556 
    557 # Enable grouping to fix circular references
    558 LOCAL_GROUP_STATIC_LIBRARIES := true
    559 
    560 LOCAL_SHARED_LIBRARIES := \
    561 	libstlport \
    562 	libdl
    563 
    564 # Add target alias to "gyp_all_modules" target.
    565 .PHONY: gyp_all_modules
    566 gyp_all_modules: cc_cc_gyp
    567 
    568 # Alias gyp target name.
    569 .PHONY: cc
    570 cc: cc_cc_gyp
    571 
    572 include $(BUILD_STATIC_LIBRARY)
    573