Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +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 \ |
| 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) | 5e3f23d | 2013-06-11 16:24:11 +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 \ |
Ben Murdoch | ca12bfa | 2013-07-23 11:17:05 +0100 | [diff] [blame^] | 42 | cc/base/invalidation_region.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 43 | cc/base/math_util.cc \ |
| 44 | cc/base/region.cc \ |
| 45 | cc/base/switches.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 46 | cc/base/tiling_data.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +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 \ |
| 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 \ |
Ben Murdoch | ca12bfa | 2013-07-23 11:17:05 +0100 | [diff] [blame^] | 72 | cc/layers/layer_lists.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 73 | cc/layers/layer_position_constraint.cc \ |
| 74 | cc/layers/nine_patch_layer.cc \ |
| 75 | cc/layers/nine_patch_layer_impl.cc \ |
| 76 | cc/layers/picture_image_layer.cc \ |
| 77 | cc/layers/picture_image_layer_impl.cc \ |
| 78 | cc/layers/picture_layer.cc \ |
| 79 | cc/layers/picture_layer_impl.cc \ |
| 80 | cc/layers/render_surface.cc \ |
| 81 | cc/layers/render_surface_impl.cc \ |
| 82 | cc/layers/scrollbar_layer.cc \ |
| 83 | cc/layers/scrollbar_layer_impl.cc \ |
| 84 | cc/layers/solid_color_layer.cc \ |
| 85 | cc/layers/solid_color_layer_impl.cc \ |
| 86 | cc/layers/texture_layer.cc \ |
| 87 | cc/layers/texture_layer_impl.cc \ |
| 88 | cc/layers/tiled_layer.cc \ |
| 89 | cc/layers/tiled_layer_impl.cc \ |
| 90 | cc/layers/video_frame_provider_client_impl.cc \ |
| 91 | cc/layers/video_layer.cc \ |
| 92 | cc/layers/video_layer_impl.cc \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 93 | cc/output/begin_frame_args.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 94 | cc/output/compositor_frame.cc \ |
| 95 | cc/output/compositor_frame_ack.cc \ |
| 96 | cc/output/compositor_frame_metadata.cc \ |
| 97 | cc/output/copy_output_request.cc \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 98 | cc/output/copy_output_result.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 99 | cc/output/delegated_frame_data.cc \ |
| 100 | cc/output/delegating_renderer.cc \ |
| 101 | cc/output/direct_renderer.cc \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 102 | cc/output/filter_operation.cc \ |
| 103 | cc/output/filter_operations.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 104 | cc/output/geometry_binding.cc \ |
| 105 | cc/output/gl_frame_data.cc \ |
| 106 | cc/output/gl_renderer.cc \ |
| 107 | cc/output/gl_renderer_draw_cache.cc \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 108 | cc/output/managed_memory_policy.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 109 | cc/output/output_surface.cc \ |
| 110 | cc/output/program_binding.cc \ |
| 111 | cc/output/render_surface_filters.cc \ |
| 112 | cc/output/renderer.cc \ |
| 113 | cc/output/shader.cc \ |
| 114 | cc/output/software_frame_data.cc \ |
| 115 | cc/output/software_output_device.cc \ |
| 116 | cc/output/software_renderer.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 117 | cc/quads/checkerboard_draw_quad.cc \ |
| 118 | cc/quads/content_draw_quad_base.cc \ |
| 119 | cc/quads/debug_border_draw_quad.cc \ |
| 120 | cc/quads/draw_quad.cc \ |
| 121 | cc/quads/io_surface_draw_quad.cc \ |
| 122 | cc/quads/picture_draw_quad.cc \ |
| 123 | cc/quads/render_pass.cc \ |
| 124 | cc/quads/render_pass_draw_quad.cc \ |
| 125 | cc/quads/shared_quad_state.cc \ |
| 126 | cc/quads/solid_color_draw_quad.cc \ |
| 127 | cc/quads/stream_video_draw_quad.cc \ |
| 128 | cc/quads/texture_draw_quad.cc \ |
| 129 | cc/quads/tile_draw_quad.cc \ |
| 130 | cc/quads/yuv_video_draw_quad.cc \ |
| 131 | cc/resources/bitmap_content_layer_updater.cc \ |
| 132 | cc/resources/bitmap_skpicture_content_layer_updater.cc \ |
| 133 | cc/resources/caching_bitmap_content_layer_updater.cc \ |
| 134 | cc/resources/content_layer_updater.cc \ |
| 135 | cc/resources/image_layer_updater.cc \ |
| 136 | cc/resources/image_raster_worker_pool.cc \ |
| 137 | cc/resources/layer_quad.cc \ |
| 138 | cc/resources/layer_tiling_data.cc \ |
| 139 | cc/resources/layer_updater.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 140 | cc/resources/managed_tile_state.cc \ |
| 141 | cc/resources/memory_history.cc \ |
| 142 | cc/resources/picture.cc \ |
| 143 | cc/resources/picture_layer_tiling.cc \ |
| 144 | cc/resources/picture_layer_tiling_set.cc \ |
| 145 | cc/resources/picture_pile.cc \ |
| 146 | cc/resources/picture_pile_base.cc \ |
| 147 | cc/resources/picture_pile_impl.cc \ |
| 148 | cc/resources/pixel_buffer_raster_worker_pool.cc \ |
| 149 | cc/resources/prioritized_resource.cc \ |
| 150 | cc/resources/prioritized_resource_manager.cc \ |
| 151 | cc/resources/priority_calculator.cc \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 152 | cc/resources/raster_mode.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 153 | cc/resources/raster_worker_pool.cc \ |
| 154 | cc/resources/resource.cc \ |
| 155 | cc/resources/resource_pool.cc \ |
| 156 | cc/resources/resource_provider.cc \ |
| 157 | cc/resources/resource_update.cc \ |
| 158 | cc/resources/resource_update_controller.cc \ |
| 159 | cc/resources/resource_update_queue.cc \ |
| 160 | cc/resources/scoped_resource.cc \ |
| 161 | cc/resources/skpicture_content_layer_updater.cc \ |
| 162 | cc/resources/sync_point_helper.cc \ |
| 163 | cc/resources/texture_mailbox.cc \ |
| 164 | cc/resources/tile.cc \ |
| 165 | cc/resources/tile_manager.cc \ |
| 166 | cc/resources/tile_priority.cc \ |
| 167 | cc/resources/transferable_resource.cc \ |
| 168 | cc/resources/video_resource_updater.cc \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 169 | cc/resources/worker_pool.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 170 | cc/scheduler/delay_based_time_source.cc \ |
| 171 | cc/scheduler/frame_rate_controller.cc \ |
| 172 | cc/scheduler/rate_limiter.cc \ |
| 173 | cc/scheduler/rolling_time_delta_history.cc \ |
| 174 | cc/scheduler/scheduler.cc \ |
| 175 | cc/scheduler/scheduler_settings.cc \ |
| 176 | cc/scheduler/scheduler_state_machine.cc \ |
| 177 | cc/scheduler/texture_uploader.cc \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 178 | cc/trees/damage_tracker.cc \ |
| 179 | cc/trees/layer_sorter.cc \ |
| 180 | cc/trees/layer_tree_host.cc \ |
| 181 | cc/trees/layer_tree_host_common.cc \ |
| 182 | cc/trees/layer_tree_host_impl.cc \ |
| 183 | cc/trees/layer_tree_impl.cc \ |
| 184 | cc/trees/layer_tree_settings.cc \ |
| 185 | cc/trees/occlusion_tracker.cc \ |
| 186 | cc/trees/proxy.cc \ |
| 187 | cc/trees/quad_culler.cc \ |
| 188 | cc/trees/single_thread_proxy.cc \ |
| 189 | cc/trees/thread_proxy.cc \ |
| 190 | cc/trees/tree_synchronizer.cc |
| 191 | |
| 192 | |
| 193 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 194 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 195 | -fstack-protector \ |
| 196 | --param=ssp-buffer-size=4 \ |
| 197 | \ |
| 198 | -fno-exceptions \ |
| 199 | -fno-strict-aliasing \ |
| 200 | -Wall \ |
| 201 | -Wno-unused-parameter \ |
| 202 | -Wno-missing-field-initializers \ |
| 203 | -fvisibility=hidden \ |
| 204 | -pipe \ |
| 205 | -fPIC \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 206 | -Wno-unknown-pragmas \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 207 | -EL \ |
| 208 | -mhard-float \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 209 | -ffunction-sections \ |
| 210 | -funwind-tables \ |
| 211 | -g \ |
| 212 | -fstack-protector \ |
| 213 | -fno-short-enums \ |
| 214 | -finline-limit=64 \ |
| 215 | -Wa,--noexecstack \ |
| 216 | -U_FORTIFY_SOURCE \ |
| 217 | -Wno-extra \ |
| 218 | -Wno-ignored-qualifiers \ |
| 219 | -Wno-type-limits \ |
| 220 | -Os \ |
| 221 | -g \ |
| 222 | -fomit-frame-pointer \ |
| 223 | -fdata-sections \ |
| 224 | -ffunction-sections |
| 225 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 226 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 227 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 228 | '-D_FILE_OFFSET_BITS=64' \ |
| 229 | '-DNO_TCMALLOC' \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 230 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 231 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 232 | '-DDISABLE_NACL' \ |
| 233 | '-DCHROMIUM_BUILD' \ |
| 234 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 235 | '-DUSE_PROPRIETARY_CODECS' \ |
| 236 | '-DENABLE_GPU=1' \ |
| 237 | '-DUSE_OPENSSL=1' \ |
| 238 | '-DENABLE_EGLIMAGE=1' \ |
| 239 | '-DENABLE_LANGUAGE_DETECTION=1' \ |
| 240 | '-DCC_IMPLEMENTATION=1' \ |
| 241 | '-DSK_BUILD_NO_IMAGE_ENCODE' \ |
| 242 | '-DSK_DEFERRED_CANVAS_USES_GPIPE=1' \ |
| 243 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
| 244 | '-DGR_AGGRESSIVE_SHADER_OPTS=1' \ |
| 245 | '-DSK_ENABLE_INST_COUNT=0' \ |
| 246 | '-DSK_USE_POSIX_THREADS' \ |
| 247 | '-DSK_BUILD_FOR_ANDROID' \ |
| 248 | '-DMEDIA_DISABLE_LIBVPX' \ |
| 249 | '-DPOSIX_AVOID_MMAP' \ |
| 250 | '-DU_USING_ICU_NAMESPACE=0' \ |
| 251 | '-D__STDC_CONSTANT_MACROS' \ |
| 252 | '-D__STDC_FORMAT_MACROS' \ |
| 253 | '-DANDROID' \ |
| 254 | '-D__GNU_SOURCE=1' \ |
| 255 | '-DUSE_STLPORT=1' \ |
| 256 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 257 | '-DCHROME_BUILD_ID=""' \ |
| 258 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 259 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 260 | '-D_DEBUG' |
| 261 | |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 262 | |
| 263 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 264 | LOCAL_C_INCLUDES_Debug := \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 265 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 266 | $(LOCAL_PATH) \ |
| 267 | $(LOCAL_PATH)/third_party/khronos \ |
| 268 | $(LOCAL_PATH)/gpu \ |
| 269 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 270 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| 271 | $(LOCAL_PATH)/skia/config \ |
| 272 | $(LOCAL_PATH)/third_party/skia/src/core \ |
| 273 | $(LOCAL_PATH)/third_party/skia/include/config \ |
| 274 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 275 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 276 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 277 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
| 278 | $(LOCAL_PATH)/third_party/skia/include/gpu/gl \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 279 | $(LOCAL_PATH)/third_party/skia/include/lazy \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 280 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| 281 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 282 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 283 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
| 284 | $(LOCAL_PATH)/skia/ext \ |
| 285 | $(gyp_shared_intermediate_dir)/ui/gl \ |
| 286 | $(LOCAL_PATH)/third_party/mesa/src/include \ |
| 287 | $(PWD)/external/icu4c/common \ |
| 288 | $(PWD)/external/icu4c/i18n \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 289 | $(PWD)/frameworks/wilhelm/include \ |
| 290 | $(PWD)/bionic \ |
| 291 | $(PWD)/external/stlport/stlport |
| 292 | |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 293 | |
| 294 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 295 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 296 | -fno-rtti \ |
| 297 | -fno-threadsafe-statics \ |
| 298 | -fvisibility-inlines-hidden \ |
| 299 | -Wsign-compare \ |
| 300 | -Wno-uninitialized \ |
| 301 | -Wno-error=c++0x-compat \ |
| 302 | -Wno-non-virtual-dtor \ |
| 303 | -Wno-sign-promo |
| 304 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 305 | |
| 306 | # Flags passed to both C and C++ files. |
| 307 | MY_CFLAGS_Release := \ |
| 308 | -fstack-protector \ |
| 309 | --param=ssp-buffer-size=4 \ |
| 310 | \ |
| 311 | -fno-exceptions \ |
| 312 | -fno-strict-aliasing \ |
| 313 | -Wall \ |
| 314 | -Wno-unused-parameter \ |
| 315 | -Wno-missing-field-initializers \ |
| 316 | -fvisibility=hidden \ |
| 317 | -pipe \ |
| 318 | -fPIC \ |
| 319 | -Wno-unknown-pragmas \ |
| 320 | -EL \ |
| 321 | -mhard-float \ |
| 322 | -ffunction-sections \ |
| 323 | -funwind-tables \ |
| 324 | -g \ |
| 325 | -fstack-protector \ |
| 326 | -fno-short-enums \ |
| 327 | -finline-limit=64 \ |
| 328 | -Wa,--noexecstack \ |
| 329 | -U_FORTIFY_SOURCE \ |
| 330 | -Wno-extra \ |
| 331 | -Wno-ignored-qualifiers \ |
| 332 | -Wno-type-limits \ |
| 333 | -Os \ |
| 334 | -fno-ident \ |
| 335 | -fdata-sections \ |
| 336 | -ffunction-sections \ |
| 337 | -fomit-frame-pointer |
| 338 | |
| 339 | MY_DEFS_Release := \ |
| 340 | '-DANGLE_DX11' \ |
| 341 | '-D_FILE_OFFSET_BITS=64' \ |
| 342 | '-DNO_TCMALLOC' \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 343 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 344 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 345 | '-DDISABLE_NACL' \ |
| 346 | '-DCHROMIUM_BUILD' \ |
| 347 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 348 | '-DUSE_PROPRIETARY_CODECS' \ |
| 349 | '-DENABLE_GPU=1' \ |
| 350 | '-DUSE_OPENSSL=1' \ |
| 351 | '-DENABLE_EGLIMAGE=1' \ |
| 352 | '-DENABLE_LANGUAGE_DETECTION=1' \ |
| 353 | '-DCC_IMPLEMENTATION=1' \ |
| 354 | '-DSK_BUILD_NO_IMAGE_ENCODE' \ |
| 355 | '-DSK_DEFERRED_CANVAS_USES_GPIPE=1' \ |
| 356 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
| 357 | '-DGR_AGGRESSIVE_SHADER_OPTS=1' \ |
| 358 | '-DSK_ENABLE_INST_COUNT=0' \ |
| 359 | '-DSK_USE_POSIX_THREADS' \ |
| 360 | '-DSK_BUILD_FOR_ANDROID' \ |
| 361 | '-DMEDIA_DISABLE_LIBVPX' \ |
| 362 | '-DPOSIX_AVOID_MMAP' \ |
| 363 | '-DU_USING_ICU_NAMESPACE=0' \ |
| 364 | '-D__STDC_CONSTANT_MACROS' \ |
| 365 | '-D__STDC_FORMAT_MACROS' \ |
| 366 | '-DANDROID' \ |
| 367 | '-D__GNU_SOURCE=1' \ |
| 368 | '-DUSE_STLPORT=1' \ |
| 369 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 370 | '-DCHROME_BUILD_ID=""' \ |
| 371 | '-DNDEBUG' \ |
| 372 | '-DNVALGRIND' \ |
| 373 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 374 | '-D_FORTIFY_SOURCE=2' |
| 375 | |
| 376 | |
| 377 | # Include paths placed before CFLAGS/CPPFLAGS |
| 378 | LOCAL_C_INCLUDES_Release := \ |
| 379 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 380 | $(LOCAL_PATH) \ |
| 381 | $(LOCAL_PATH)/third_party/khronos \ |
| 382 | $(LOCAL_PATH)/gpu \ |
| 383 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 384 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| 385 | $(LOCAL_PATH)/skia/config \ |
| 386 | $(LOCAL_PATH)/third_party/skia/src/core \ |
| 387 | $(LOCAL_PATH)/third_party/skia/include/config \ |
| 388 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 389 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 390 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 391 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
| 392 | $(LOCAL_PATH)/third_party/skia/include/gpu/gl \ |
| 393 | $(LOCAL_PATH)/third_party/skia/include/lazy \ |
| 394 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| 395 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 396 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 397 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
| 398 | $(LOCAL_PATH)/skia/ext \ |
| 399 | $(gyp_shared_intermediate_dir)/ui/gl \ |
| 400 | $(LOCAL_PATH)/third_party/mesa/src/include \ |
| 401 | $(PWD)/external/icu4c/common \ |
| 402 | $(PWD)/external/icu4c/i18n \ |
| 403 | $(PWD)/frameworks/wilhelm/include \ |
| 404 | $(PWD)/bionic \ |
| 405 | $(PWD)/external/stlport/stlport |
| 406 | |
| 407 | |
| 408 | # Flags passed to only C++ (and not C) files. |
| 409 | LOCAL_CPPFLAGS_Release := \ |
| 410 | -fno-rtti \ |
| 411 | -fno-threadsafe-statics \ |
| 412 | -fvisibility-inlines-hidden \ |
| 413 | -Wsign-compare \ |
| 414 | -Wno-uninitialized \ |
| 415 | -Wno-error=c++0x-compat \ |
| 416 | -Wno-non-virtual-dtor \ |
| 417 | -Wno-sign-promo |
| 418 | |
| 419 | |
| 420 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 421 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 422 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 423 | ### Rules for final target. |
| 424 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 425 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 426 | -Wl,-z,now \ |
| 427 | -Wl,-z,relro \ |
| 428 | -Wl,-z,noexecstack \ |
| 429 | -fPIC \ |
| 430 | -EL \ |
| 431 | -Wl,--no-keep-memory \ |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 432 | -nostdlib \ |
| 433 | -Wl,--no-undefined \ |
| 434 | -Wl,--exclude-libs=ALL \ |
| 435 | -Wl,--gc-sections \ |
| 436 | -Wl,-O1 \ |
| 437 | -Wl,--as-needed |
| 438 | |
| 439 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 440 | LOCAL_LDFLAGS_Release := \ |
| 441 | -Wl,-z,now \ |
| 442 | -Wl,-z,relro \ |
| 443 | -Wl,-z,noexecstack \ |
| 444 | -fPIC \ |
| 445 | -EL \ |
| 446 | -Wl,--no-keep-memory \ |
| 447 | -nostdlib \ |
| 448 | -Wl,--no-undefined \ |
| 449 | -Wl,--exclude-libs=ALL \ |
| 450 | -Wl,-O1 \ |
| 451 | -Wl,--as-needed \ |
| 452 | -Wl,--gc-sections |
| 453 | |
| 454 | |
| 455 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 456 | |
Torne (Richard Coles) | 5e3f23d | 2013-06-11 16:24:11 +0100 | [diff] [blame] | 457 | LOCAL_STATIC_LIBRARIES := \ |
| 458 | skia_skia_gyp \ |
| 459 | ui_gl_gl_gyp \ |
| 460 | ui_ui_gyp |
| 461 | |
| 462 | # Enable grouping to fix circular references |
| 463 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 464 | |
| 465 | LOCAL_SHARED_LIBRARIES := \ |
| 466 | libstlport \ |
| 467 | libdl |
| 468 | |
| 469 | # Add target alias to "gyp_all_modules" target. |
| 470 | .PHONY: gyp_all_modules |
| 471 | gyp_all_modules: cc_cc_gyp |
| 472 | |
| 473 | # Alias gyp target name. |
| 474 | .PHONY: cc |
| 475 | cc: cc_cc_gyp |
| 476 | |
| 477 | include $(BUILD_STATIC_LIBRARY) |