Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [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 := content_content_common_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 := \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 14 | $(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \ |
| 15 | $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp)/skia_skia_library_gyp.a \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 16 | $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 17 | $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 18 | $(call intermediates-dir-for,GYP,content_content_resources_gyp)/content_resources.stamp \ |
Ben Murdoch | ca12bfa | 2013-07-23 11:17:05 +0100 | [diff] [blame] | 19 | $(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_minimal_gyp)/blink_minimal.stamp \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 20 | $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \ |
| 21 | $(call intermediates-dir-for,STATIC_LIBRARIES,webkit_support_glue_gyp)/webkit_support_glue_gyp.a \ |
| 22 | $(call intermediates-dir-for,GYP,content_content_jni_headers_gyp)/content_jni_headers.stamp \ |
| 23 | $(call intermediates-dir-for,GYP,content_common_aidl_gyp)/common_aidl.stamp |
| 24 | |
| 25 | GYP_GENERATED_OUTPUTS := |
| 26 | |
| 27 | # Make sure our deps and generated files are built first. |
| 28 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 29 | |
| 30 | LOCAL_CPP_EXTENSION := .cc |
| 31 | LOCAL_GENERATED_SOURCES := |
| 32 | |
| 33 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 34 | |
| 35 | LOCAL_SRC_FILES := \ |
| 36 | content/public/common/child_process_host_delegate.cc \ |
| 37 | content/public/common/content_constants.cc \ |
| 38 | content/public/common/content_switches.cc \ |
| 39 | content/public/common/context_menu_params.cc \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 40 | content/public/common/drop_data.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 41 | content/public/common/favicon_url.cc \ |
| 42 | content/public/common/file_chooser_params.cc \ |
| 43 | content/public/common/frame_navigate_params.cc \ |
| 44 | content/public/common/geoposition.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 45 | content/public/common/gpu_memory_stats.cc \ |
| 46 | content/public/common/media_stream_request.cc \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 47 | content/public/common/menu_item.cc \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 48 | content/public/common/page_state.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 49 | content/public/common/page_transition_types.cc \ |
| 50 | content/public/common/password_form.cc \ |
| 51 | content/public/common/pepper_plugin_info.cc \ |
| 52 | content/public/common/renderer_preferences.cc \ |
| 53 | content/public/common/show_desktop_notification_params.cc \ |
| 54 | content/public/common/speech_recognition_result.cc \ |
| 55 | content/public/common/ssl_status.cc \ |
| 56 | content/public/common/url_constants.cc \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 57 | content/public/common/url_utils.cc \ |
Ben Murdoch | ca12bfa | 2013-07-23 11:17:05 +0100 | [diff] [blame] | 58 | content/public/common/webplugininfo.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 59 | content/common/accessibility_node_data.cc \ |
| 60 | content/common/android/address_parser.cc \ |
| 61 | content/common/android/address_parser_internal.cc \ |
| 62 | content/common/android/command_line.cc \ |
| 63 | content/common/android/common_jni_registrar.cc \ |
| 64 | content/common/android/device_telephony_info.cc \ |
| 65 | content/common/android/hash_set.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 66 | content/common/android/surface_texture_peer.cc \ |
| 67 | content/common/android/trace_event_binding.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 68 | content/common/browser_plugin/browser_plugin_constants.cc \ |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 69 | content/common/browser_rendering_stats.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 70 | content/common/cc_messages.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 71 | content/common/child_process_host_impl.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 72 | content/common/clipboard_messages.cc \ |
| 73 | content/common/content_constants_internal.cc \ |
| 74 | content/common/content_ipc_logging.cc \ |
| 75 | content/common/content_message_generator.cc \ |
| 76 | content/common/content_param_traits.cc \ |
| 77 | content/common/content_paths.cc \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 78 | content/common/cookie_data.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 79 | content/common/find_match_rect_android.cc \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 80 | content/common/font_list.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 81 | content/common/font_list_android.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 82 | content/common/gamepad_user_gesture.cc \ |
| 83 | content/common/gpu/client/command_buffer_proxy_impl.cc \ |
| 84 | content/common/gpu/client/context_provider_command_buffer.cc \ |
| 85 | content/common/gpu/client/gl_helper.cc \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 86 | content/common/gpu/client/gl_helper_scaling.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 87 | content/common/gpu/client/gpu_channel_host.cc \ |
| 88 | content/common/gpu/client/gpu_video_decode_accelerator_host.cc \ |
| 89 | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 90 | content/common/gpu/gpu_channel.cc \ |
| 91 | content/common/gpu/gpu_channel_manager.cc \ |
| 92 | content/common/gpu/gpu_command_buffer_stub.cc \ |
| 93 | content/common/gpu/gpu_memory_manager.cc \ |
| 94 | content/common/gpu/gpu_memory_manager_client.cc \ |
| 95 | content/common/gpu/gpu_memory_tracking.cc \ |
| 96 | content/common/gpu/gpu_rendering_stats.cc \ |
| 97 | content/common/gpu/gpu_surface_lookup.cc \ |
| 98 | content/common/gpu/stream_texture_manager_android.cc \ |
| 99 | content/common/gpu/image_transport_surface.cc \ |
| 100 | content/common/gpu/image_transport_surface_android.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 101 | content/common/gpu/media/h264_bit_reader.cc \ |
| 102 | content/common/gpu/media/h264_parser.cc \ |
| 103 | content/common/gpu/media/gpu_video_decode_accelerator.cc \ |
| 104 | content/common/gpu/sync_point_manager.cc \ |
| 105 | content/common/gpu/texture_image_transport_surface.cc \ |
| 106 | content/common/indexed_db/indexed_db_key.cc \ |
| 107 | content/common/indexed_db/indexed_db_key_path.cc \ |
| 108 | content/common/indexed_db/indexed_db_key_range.cc \ |
| 109 | content/common/indexed_db/indexed_db_param_traits.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 110 | content/common/inter_process_time_ticks_converter.cc \ |
| 111 | content/common/media/media_param_traits.cc \ |
| 112 | content/common/media/media_stream_options.cc \ |
| 113 | content/common/message_router.cc \ |
| 114 | content/common/net/url_fetcher.cc \ |
| 115 | content/common/net/url_request_user_data.cc \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 116 | content/common/one_writer_seqlock.cc \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 117 | content/common/page_state_serialization.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 118 | content/common/page_zoom.cc \ |
| 119 | content/common/pepper_renderer_instance_data.cc \ |
Ben Murdoch | ca12bfa | 2013-07-23 11:17:05 +0100 | [diff] [blame] | 120 | content/common/plugin_list.cc \ |
| 121 | content/common/plugin_list_posix.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 122 | content/common/process_type.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 123 | content/common/resource_messages.cc \ |
| 124 | content/common/sandbox_util.cc \ |
| 125 | content/common/savable_url_schemes.cc \ |
| 126 | content/common/set_process_title.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 127 | content/common/socket_stream_handle_data.cc \ |
| 128 | content/common/ssl_status_serialization.cc \ |
| 129 | content/common/swapped_out_messages.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 130 | content/common/url_schemes.cc \ |
Ben Murdoch | ca12bfa | 2013-07-23 11:17:05 +0100 | [diff] [blame] | 131 | content/common/webplugin_geometry.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 132 | content/public/common/common_param_traits.cc \ |
| 133 | content/public/common/content_client.cc \ |
| 134 | content/public/common/window_container_type.cc \ |
| 135 | content/common/gpu/media/android_video_decode_accelerator.cc |
| 136 | |
| 137 | |
| 138 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 139 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 140 | --param=ssp-buffer-size=4 \ |
| 141 | -Werror \ |
| 142 | -fno-exceptions \ |
| 143 | -fno-strict-aliasing \ |
| 144 | -Wall \ |
| 145 | -Wno-unused-parameter \ |
| 146 | -Wno-missing-field-initializers \ |
| 147 | -fvisibility=hidden \ |
| 148 | -pipe \ |
| 149 | -fPIC \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 150 | -Wno-unknown-pragmas \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 151 | -m32 \ |
| 152 | -mmmx \ |
| 153 | -march=pentium4 \ |
| 154 | -msse2 \ |
| 155 | -mfpmath=sse \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 156 | -fuse-ld=gold \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 157 | -ffunction-sections \ |
| 158 | -funwind-tables \ |
| 159 | -g \ |
| 160 | -fno-short-enums \ |
| 161 | -finline-limit=64 \ |
| 162 | -Wa,--noexecstack \ |
| 163 | -U_FORTIFY_SOURCE \ |
| 164 | -Wno-extra \ |
| 165 | -Wno-ignored-qualifiers \ |
| 166 | -Wno-type-limits \ |
| 167 | -fno-stack-protector \ |
| 168 | -Os \ |
| 169 | -g \ |
| 170 | -fomit-frame-pointer \ |
| 171 | -fdata-sections \ |
| 172 | -ffunction-sections |
| 173 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 174 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 175 | '-DCONTENT_IMPLEMENTATION' \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 176 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 177 | '-D_FILE_OFFSET_BITS=64' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 178 | '-DNO_TCMALLOC' \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 179 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 180 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 181 | '-DDISABLE_NACL' \ |
| 182 | '-DCHROMIUM_BUILD' \ |
| 183 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 184 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 185 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 186 | '-DENABLE_GPU=1' \ |
| 187 | '-DUSE_OPENSSL=1' \ |
| 188 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 189 | '-DMEDIA_DISABLE_LIBVPX' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 190 | '-DSK_ENABLE_INST_COUNT=0' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 191 | '-DSK_SUPPORT_GPU=1' \ |
| 192 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
Torne (Richard Coles) | a93a17c | 2013-05-15 11:34:50 +0100 | [diff] [blame] | 193 | '-DSK_BUILD_FOR_ANDROID' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 194 | '-DUSE_CHROMIUM_SKIA' \ |
| 195 | '-DSK_USE_POSIX_THREADS' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 196 | '-DU_USING_ICU_NAMESPACE=0' \ |
| 197 | '-D__STDC_CONSTANT_MACROS' \ |
| 198 | '-D__STDC_FORMAT_MACROS' \ |
| 199 | '-DANDROID' \ |
| 200 | '-D__GNU_SOURCE=1' \ |
| 201 | '-DUSE_STLPORT=1' \ |
| 202 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 203 | '-DCHROME_BUILD_ID=""' \ |
| 204 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 205 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 206 | '-D_DEBUG' |
| 207 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 208 | |
| 209 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 210 | LOCAL_C_INCLUDES_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 211 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 212 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 213 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 214 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 215 | $(LOCAL_PATH)/third_party/khronos \ |
| 216 | $(LOCAL_PATH)/gpu \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 217 | $(LOCAL_PATH)/third_party/skia/src/core \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 218 | $(LOCAL_PATH)/skia/config \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 219 | $(LOCAL_PATH)/third_party/skia/include/config \ |
| 220 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 221 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 222 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 223 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
| 224 | $(LOCAL_PATH)/third_party/skia/include/gpu/gl \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 225 | $(LOCAL_PATH)/third_party/skia/include/lazy \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 226 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 227 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 228 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 229 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
| 230 | $(LOCAL_PATH)/skia/ext \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 231 | $(PWD)/external/icu4c/common \ |
| 232 | $(PWD)/external/icu4c/i18n \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 233 | $(gyp_shared_intermediate_dir)/content \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 234 | $(gyp_shared_intermediate_dir)/ui/gl \ |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 235 | $(LOCAL_PATH)/third_party/mesa/src/include \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 236 | $(PWD)/frameworks/wilhelm/include \ |
| 237 | $(PWD)/bionic \ |
| 238 | $(PWD)/external/stlport/stlport |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 239 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 240 | |
| 241 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 242 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 243 | -fno-rtti \ |
| 244 | -fno-threadsafe-statics \ |
| 245 | -fvisibility-inlines-hidden \ |
| 246 | -Wsign-compare \ |
| 247 | -Wno-error=c++0x-compat \ |
| 248 | -Wno-non-virtual-dtor \ |
| 249 | -Wno-sign-promo |
| 250 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 251 | |
| 252 | # Flags passed to both C and C++ files. |
| 253 | MY_CFLAGS_Release := \ |
| 254 | --param=ssp-buffer-size=4 \ |
| 255 | -Werror \ |
| 256 | -fno-exceptions \ |
| 257 | -fno-strict-aliasing \ |
| 258 | -Wall \ |
| 259 | -Wno-unused-parameter \ |
| 260 | -Wno-missing-field-initializers \ |
| 261 | -fvisibility=hidden \ |
| 262 | -pipe \ |
| 263 | -fPIC \ |
| 264 | -Wno-unknown-pragmas \ |
| 265 | -m32 \ |
| 266 | -mmmx \ |
| 267 | -march=pentium4 \ |
| 268 | -msse2 \ |
| 269 | -mfpmath=sse \ |
| 270 | -fuse-ld=gold \ |
| 271 | -ffunction-sections \ |
| 272 | -funwind-tables \ |
| 273 | -g \ |
| 274 | -fno-short-enums \ |
| 275 | -finline-limit=64 \ |
| 276 | -Wa,--noexecstack \ |
| 277 | -U_FORTIFY_SOURCE \ |
| 278 | -Wno-extra \ |
| 279 | -Wno-ignored-qualifiers \ |
| 280 | -Wno-type-limits \ |
| 281 | -fno-stack-protector \ |
| 282 | -Os \ |
| 283 | -fno-ident \ |
| 284 | -fdata-sections \ |
| 285 | -ffunction-sections \ |
| 286 | -fomit-frame-pointer \ |
| 287 | -fno-unwind-tables \ |
| 288 | -fno-asynchronous-unwind-tables |
| 289 | |
| 290 | MY_DEFS_Release := \ |
| 291 | '-DCONTENT_IMPLEMENTATION' \ |
| 292 | '-DANGLE_DX11' \ |
| 293 | '-D_FILE_OFFSET_BITS=64' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 294 | '-DNO_TCMALLOC' \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 295 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 296 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 297 | '-DDISABLE_NACL' \ |
| 298 | '-DCHROMIUM_BUILD' \ |
| 299 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 300 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 301 | '-DENABLE_CONFIGURATION_POLICY' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 302 | '-DENABLE_GPU=1' \ |
| 303 | '-DUSE_OPENSSL=1' \ |
| 304 | '-DENABLE_EGLIMAGE=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 305 | '-DMEDIA_DISABLE_LIBVPX' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 306 | '-DSK_ENABLE_INST_COUNT=0' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 307 | '-DSK_SUPPORT_GPU=1' \ |
| 308 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 309 | '-DSK_BUILD_FOR_ANDROID' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 310 | '-DUSE_CHROMIUM_SKIA' \ |
| 311 | '-DSK_USE_POSIX_THREADS' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 312 | '-DU_USING_ICU_NAMESPACE=0' \ |
| 313 | '-D__STDC_CONSTANT_MACROS' \ |
| 314 | '-D__STDC_FORMAT_MACROS' \ |
| 315 | '-DANDROID' \ |
| 316 | '-D__GNU_SOURCE=1' \ |
| 317 | '-DUSE_STLPORT=1' \ |
| 318 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 319 | '-DCHROME_BUILD_ID=""' \ |
| 320 | '-DNDEBUG' \ |
| 321 | '-DNVALGRIND' \ |
| 322 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 323 | '-D_FORTIFY_SOURCE=2' |
| 324 | |
| 325 | |
| 326 | # Include paths placed before CFLAGS/CPPFLAGS |
| 327 | LOCAL_C_INCLUDES_Release := \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 328 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 329 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 330 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 331 | $(LOCAL_PATH) \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 332 | $(LOCAL_PATH)/third_party/khronos \ |
| 333 | $(LOCAL_PATH)/gpu \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 334 | $(LOCAL_PATH)/third_party/skia/src/core \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 335 | $(LOCAL_PATH)/skia/config \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 336 | $(LOCAL_PATH)/third_party/skia/include/config \ |
| 337 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 338 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 339 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 340 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
| 341 | $(LOCAL_PATH)/third_party/skia/include/gpu/gl \ |
| 342 | $(LOCAL_PATH)/third_party/skia/include/lazy \ |
| 343 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| 344 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 345 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 346 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
| 347 | $(LOCAL_PATH)/skia/ext \ |
| 348 | $(PWD)/external/icu4c/common \ |
| 349 | $(PWD)/external/icu4c/i18n \ |
| 350 | $(gyp_shared_intermediate_dir)/content \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 351 | $(gyp_shared_intermediate_dir)/ui/gl \ |
| 352 | $(LOCAL_PATH)/third_party/mesa/src/include \ |
| 353 | $(PWD)/frameworks/wilhelm/include \ |
| 354 | $(PWD)/bionic \ |
| 355 | $(PWD)/external/stlport/stlport |
| 356 | |
| 357 | |
| 358 | # Flags passed to only C++ (and not C) files. |
| 359 | LOCAL_CPPFLAGS_Release := \ |
| 360 | -fno-rtti \ |
| 361 | -fno-threadsafe-statics \ |
| 362 | -fvisibility-inlines-hidden \ |
| 363 | -Wsign-compare \ |
| 364 | -Wno-error=c++0x-compat \ |
| 365 | -Wno-non-virtual-dtor \ |
| 366 | -Wno-sign-promo |
| 367 | |
| 368 | |
| 369 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 370 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 371 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 372 | ### Rules for final target. |
| 373 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 374 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 375 | -Wl,-z,now \ |
| 376 | -Wl,-z,relro \ |
| 377 | -Wl,-z,noexecstack \ |
| 378 | -fPIC \ |
| 379 | -m32 \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 380 | -fuse-ld=gold \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 381 | -nostdlib \ |
| 382 | -Wl,--no-undefined \ |
| 383 | -Wl,--exclude-libs=ALL \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 384 | -Wl,--gc-sections \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 385 | -Wl,-O1 \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 386 | -Wl,--as-needed |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 387 | |
| 388 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 389 | LOCAL_LDFLAGS_Release := \ |
| 390 | -Wl,-z,now \ |
| 391 | -Wl,-z,relro \ |
| 392 | -Wl,-z,noexecstack \ |
| 393 | -fPIC \ |
| 394 | -m32 \ |
| 395 | -fuse-ld=gold \ |
| 396 | -nostdlib \ |
| 397 | -Wl,--no-undefined \ |
| 398 | -Wl,--exclude-libs=ALL \ |
| 399 | -Wl,-O1 \ |
| 400 | -Wl,--as-needed \ |
| 401 | -Wl,--gc-sections |
| 402 | |
| 403 | |
| 404 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 405 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 406 | LOCAL_STATIC_LIBRARIES := \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 407 | skia_skia_library_gyp \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 408 | ui_ui_gyp \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 409 | ui_gl_gl_gyp \ |
| 410 | webkit_support_glue_gyp |
| 411 | |
| 412 | # Enable grouping to fix circular references |
| 413 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 414 | |
| 415 | LOCAL_SHARED_LIBRARIES := \ |
| 416 | libstlport \ |
| 417 | libdl |
| 418 | |
| 419 | # Add target alias to "gyp_all_modules" target. |
| 420 | .PHONY: gyp_all_modules |
| 421 | gyp_all_modules: content_content_common_gyp |
| 422 | |
| 423 | # Alias gyp target name. |
| 424 | .PHONY: content_common |
| 425 | content_common: content_content_common_gyp |
| 426 | |
| 427 | include $(BUILD_STATIC_LIBRARY) |