Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [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_child_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,content_content_resources_gyp,,,$(GYP_VAR_PREFIX))/content_resources.stamp \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 16 | $(call intermediates-dir-for,STATIC_LIBRARIES,mojo_mojo_application_bindings_gyp,,,$(GYP_VAR_PREFIX))/mojo_mojo_application_bindings_gyp.a \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 17 | $(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \ |
| 18 | $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ |
| 19 | $(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \ |
Torne (Richard Coles) | 6e8cce6 | 2014-08-19 13:00:08 +0100 | [diff] [blame^] | 20 | $(call intermediates-dir-for,GYP,content_app_strings_content_strings_gyp,,,$(GYP_VAR_PREFIX))/content_strings.stamp \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 21 | $(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_gyp,,,$(GYP_VAR_PREFIX))/blink.stamp \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 22 | $(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_resources_gyp,,,$(GYP_VAR_PREFIX))/blink_resources.stamp \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 23 | $(call intermediates-dir-for,GYP,third_party_npapi_npapi_gyp,,,$(GYP_VAR_PREFIX))/npapi.stamp \ |
Torne (Richard Coles) | 6e8cce6 | 2014-08-19 13:00:08 +0100 | [diff] [blame^] | 24 | $(call intermediates-dir-for,GYP,webkit_glue_resources_webkit_resources_gyp,,,$(GYP_VAR_PREFIX))/webkit_resources.stamp |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 25 | |
| 26 | GYP_GENERATED_OUTPUTS := |
| 27 | |
| 28 | # Make sure our deps and generated files are built first. |
| 29 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 30 | |
| 31 | LOCAL_CPP_EXTENSION := .cc |
| 32 | LOCAL_GENERATED_SOURCES := |
| 33 | |
| 34 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 35 | |
| 36 | LOCAL_SRC_FILES := \ |
| 37 | content/child/appcache/appcache_backend_proxy.cc \ |
| 38 | content/child/appcache/appcache_dispatcher.cc \ |
| 39 | content/child/appcache/appcache_frontend_impl.cc \ |
| 40 | content/child/appcache/web_application_cache_host_impl.cc \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 41 | content/child/assert_matching_enums.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 42 | content/child/blink_platform_impl.cc \ |
| 43 | content/child/child_histogram_message_filter.cc \ |
| 44 | content/child/child_message_filter.cc \ |
| 45 | content/child/child_process.cc \ |
| 46 | content/child/child_resource_message_filter.cc \ |
| 47 | content/child/child_shared_bitmap_manager.cc \ |
| 48 | content/child/child_thread.cc \ |
| 49 | content/child/content_child_helpers.cc \ |
| 50 | content/child/database_util.cc \ |
| 51 | content/child/db_message_filter.cc \ |
Torne (Richard Coles) | 6e8cce6 | 2014-08-19 13:00:08 +0100 | [diff] [blame^] | 52 | content/child/file_info_util.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 53 | content/child/fileapi/file_system_dispatcher.cc \ |
| 54 | content/child/fileapi/webfilesystem_impl.cc \ |
| 55 | content/child/fileapi/webfilewriter_base.cc \ |
| 56 | content/child/fileapi/webfilewriter_impl.cc \ |
| 57 | content/child/fling_animator_impl_android.cc \ |
| 58 | content/child/fling_curve_configuration.cc \ |
| 59 | content/child/ftp_directory_listing_response_delegate.cc \ |
| 60 | content/child/image_decoder.cc \ |
| 61 | content/child/indexed_db/indexed_db_dispatcher.cc \ |
| 62 | content/child/indexed_db/indexed_db_key_builders.cc \ |
| 63 | content/child/indexed_db/indexed_db_message_filter.cc \ |
| 64 | content/child/indexed_db/webidbcursor_impl.cc \ |
| 65 | content/child/indexed_db/webidbdatabase_impl.cc \ |
| 66 | content/child/indexed_db/webidbfactory_impl.cc \ |
| 67 | content/child/mojo/mojo_application.cc \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 68 | content/child/multipart_response_delegate.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 69 | content/child/npapi/np_channel_base.cc \ |
| 70 | content/child/npapi/npobject_proxy.cc \ |
| 71 | content/child/npapi/npobject_stub.cc \ |
| 72 | content/child/npapi/npobject_util.cc \ |
| 73 | content/child/npapi/npruntime_util.cc \ |
| 74 | content/child/plugin_message_generator.cc \ |
| 75 | content/child/plugin_param_traits.cc \ |
| 76 | content/child/power_monitor_broadcast_source.cc \ |
| 77 | content/child/quota_dispatcher.cc \ |
| 78 | content/child/quota_message_filter.cc \ |
| 79 | content/child/request_extra_data.cc \ |
| 80 | content/child/request_info.cc \ |
| 81 | content/child/resource_dispatcher.cc \ |
| 82 | content/child/runtime_features.cc \ |
| 83 | content/child/scoped_child_process_reference.cc \ |
| 84 | content/child/service_worker/service_worker_dispatcher.cc \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 85 | content/child/service_worker/service_worker_handle_reference.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 86 | content/child/service_worker/service_worker_message_filter.cc \ |
| 87 | content/child/service_worker/service_worker_network_provider.cc \ |
Torne (Richard Coles) | 010d83a | 2014-05-14 12:12:37 +0100 | [diff] [blame] | 88 | content/child/service_worker/service_worker_provider_context.cc \ |
Torne (Richard Coles) | 6e8cce6 | 2014-08-19 13:00:08 +0100 | [diff] [blame^] | 89 | content/child/service_worker/service_worker_registration_handle_reference.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 90 | content/child/service_worker/web_service_worker_impl.cc \ |
| 91 | content/child/service_worker/web_service_worker_provider_impl.cc \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 92 | content/child/service_worker/web_service_worker_registration_impl.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 93 | content/child/shared_worker_devtools_agent.cc \ |
| 94 | content/child/simple_webmimeregistry_impl.cc \ |
| 95 | content/child/site_isolation_policy.cc \ |
| 96 | content/child/socket_stream_dispatcher.cc \ |
| 97 | content/child/sync_load_response.cc \ |
| 98 | content/child/thread_safe_sender.cc \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 99 | content/child/threaded_data_provider.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 100 | content/child/touch_fling_gesture_curve.cc \ |
| 101 | content/child/web_database_observer_impl.cc \ |
| 102 | content/child/web_discardable_memory_impl.cc \ |
| 103 | content/child/web_socket_stream_handle_impl.cc \ |
| 104 | content/child/web_url_loader_impl.cc \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 105 | content/child/web_url_request_util.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 106 | content/child/webblobregistry_impl.cc \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 107 | content/child/webcrypto/algorithm_dispatch.cc \ |
| 108 | content/child/webcrypto/algorithm_implementation.cc \ |
| 109 | content/child/webcrypto/algorithm_registry.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 110 | content/child/webcrypto/crypto_data.cc \ |
| 111 | content/child/webcrypto/jwk.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 112 | content/child/webcrypto/status.cc \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 113 | content/child/webcrypto/structured_clone.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 114 | content/child/webcrypto/webcrypto_impl.cc \ |
| 115 | content/child/webcrypto/webcrypto_util.cc \ |
| 116 | content/child/webfallbackthemeengine_impl.cc \ |
| 117 | content/child/webfileutilities_impl.cc \ |
| 118 | content/child/webmessageportchannel_impl.cc \ |
| 119 | content/child/websocket_bridge.cc \ |
| 120 | content/child/websocket_dispatcher.cc \ |
| 121 | content/child/webthemeengine_impl_android.cc \ |
| 122 | content/child/webthread_impl.cc \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 123 | content/child/weburlresponse_extradata_impl.cc \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 124 | content/child/worker_task_runner.cc \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 125 | content/child/worker_thread_task_runner.cc \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 126 | content/child/webcrypto/openssl/aes_cbc_openssl.cc \ |
| 127 | content/child/webcrypto/openssl/aes_gcm_openssl.cc \ |
| 128 | content/child/webcrypto/openssl/aes_key_openssl.cc \ |
| 129 | content/child/webcrypto/openssl/aes_kw_openssl.cc \ |
| 130 | content/child/webcrypto/openssl/hmac_openssl.cc \ |
| 131 | content/child/webcrypto/openssl/key_openssl.cc \ |
| 132 | content/child/webcrypto/openssl/rsa_key_openssl.cc \ |
| 133 | content/child/webcrypto/openssl/rsa_oaep_openssl.cc \ |
| 134 | content/child/webcrypto/openssl/rsa_ssa_openssl.cc \ |
| 135 | content/child/webcrypto/openssl/sha_openssl.cc \ |
| 136 | content/child/webcrypto/openssl/sym_key_openssl.cc \ |
| 137 | content/child/webcrypto/openssl/util_openssl.cc |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 138 | |
| 139 | |
| 140 | # Flags passed to both C and C++ files. |
| 141 | MY_CFLAGS_Debug := \ |
| 142 | --param=ssp-buffer-size=4 \ |
| 143 | -Werror \ |
| 144 | -fno-exceptions \ |
| 145 | -fno-strict-aliasing \ |
| 146 | -Wall \ |
| 147 | -Wno-unused-parameter \ |
| 148 | -Wno-missing-field-initializers \ |
| 149 | -fvisibility=hidden \ |
| 150 | -pipe \ |
| 151 | -fPIC \ |
| 152 | -Wno-unused-local-typedefs \ |
| 153 | -ffunction-sections \ |
| 154 | -funwind-tables \ |
| 155 | -g \ |
| 156 | -fno-short-enums \ |
| 157 | -finline-limit=64 \ |
| 158 | -Wa,--noexecstack \ |
| 159 | -U_FORTIFY_SOURCE \ |
| 160 | -Wno-extra \ |
| 161 | -Wno-ignored-qualifiers \ |
| 162 | -Wno-type-limits \ |
| 163 | -Wno-unused-but-set-variable \ |
| 164 | -Os \ |
| 165 | -g \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 166 | -fdata-sections \ |
| 167 | -ffunction-sections \ |
| 168 | -funwind-tables |
| 169 | |
| 170 | MY_DEFS_Debug := \ |
| 171 | '-DCONTENT_IMPLEMENTATION' \ |
| 172 | '-DV8_DEPRECATION_WARNINGS' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 173 | '-D_FILE_OFFSET_BITS=64' \ |
| 174 | '-DNO_TCMALLOC' \ |
| 175 | '-DDISABLE_NACL' \ |
| 176 | '-DCHROMIUM_BUILD' \ |
| 177 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 178 | '-DENABLE_WEBRTC=1' \ |
| 179 | '-DUSE_PROPRIETARY_CODECS' \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 180 | '-DENABLE_BROWSER_CDMS' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 181 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 182 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 183 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 184 | '-DENABLE_EGLIMAGE=1' \ |
| 185 | '-DCLD_VERSION=1' \ |
| 186 | '-DENABLE_PRINTING=1' \ |
| 187 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 188 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 189 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 190 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 191 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 192 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | 0de6073 | 2014-05-15 12:16:31 +0100 | [diff] [blame] | 193 | '-DVIDEO_HOLE=1' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 194 | '-DSK_ENABLE_INST_COUNT=0' \ |
| 195 | '-DSK_SUPPORT_GPU=1' \ |
| 196 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
| 197 | '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ |
| 198 | '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ |
| 199 | '-DGR_GL_IGNORE_ES3_MSAA=0' \ |
| 200 | '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 201 | '-DSK_SUPPORT_LEGACY_PICTURE_CLONE' \ |
| 202 | '-DSK_SUPPORT_LEGACY_GETDEVICE' \ |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 203 | '-DSK_IGNORE_ETC1_SUPPORT' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 204 | '-DSK_IGNORE_GPU_DITHER' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 205 | '-DSK_BUILD_FOR_ANDROID' \ |
| 206 | '-DSK_USE_POSIX_THREADS' \ |
| 207 | '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ |
| 208 | '-DPOSIX_AVOID_MMAP' \ |
| 209 | '-DU_USING_ICU_NAMESPACE=0' \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 210 | '-DU_ENABLE_DYLOAD=0' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 211 | '-DCHROME_PNG_WRITE_SUPPORT' \ |
| 212 | '-DPNG_USER_CONFIG' \ |
| 213 | '-DCHROME_PNG_READ_PACK_SUPPORT' \ |
| 214 | '-DUSE_SYSTEM_LIBJPEG' \ |
| 215 | '-DUSE_OPENSSL=1' \ |
| 216 | '-DUSE_OPENSSL_CERTS=1' \ |
| 217 | '-D__STDC_CONSTANT_MACROS' \ |
| 218 | '-D__STDC_FORMAT_MACROS' \ |
| 219 | '-DANDROID' \ |
| 220 | '-D__GNU_SOURCE=1' \ |
| 221 | '-DUSE_STLPORT=1' \ |
| 222 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 223 | '-DCHROME_BUILD_ID=""' \ |
| 224 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 225 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 226 | '-D_DEBUG' |
| 227 | |
| 228 | |
| 229 | # Include paths placed before CFLAGS/CPPFLAGS |
| 230 | LOCAL_C_INCLUDES_Debug := \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 231 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 232 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 233 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 234 | $(gyp_shared_intermediate_dir) \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 235 | $(LOCAL_PATH) \ |
| 236 | $(LOCAL_PATH)/skia/config \ |
| 237 | $(LOCAL_PATH)/third_party/WebKit/Source \ |
| 238 | $(LOCAL_PATH)/third_party/khronos \ |
| 239 | $(LOCAL_PATH)/gpu \ |
| 240 | $(gyp_shared_intermediate_dir)/content \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 241 | $(LOCAL_PATH)/third_party/skia/src/core \ |
| 242 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 243 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 244 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 245 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
| 246 | $(LOCAL_PATH)/third_party/skia/include/lazy \ |
| 247 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| 248 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 249 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 250 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
| 251 | $(LOCAL_PATH)/skia/ext \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 252 | $(PWD)/external/icu/icu4c/source/common \ |
| 253 | $(PWD)/external/icu/icu4c/source/i18n \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 254 | $(LOCAL_PATH)/third_party/WebKit \ |
| 255 | $(LOCAL_PATH)/v8/include \ |
| 256 | $(LOCAL_PATH)/third_party/libpng \ |
| 257 | $(LOCAL_PATH)/third_party/zlib \ |
| 258 | $(LOCAL_PATH)/third_party/libwebp \ |
| 259 | $(LOCAL_PATH)/third_party/ots/include \ |
| 260 | $(LOCAL_PATH)/third_party/qcms/src \ |
| 261 | $(LOCAL_PATH)/third_party/iccjpeg \ |
| 262 | $(PWD)/external/jpeg \ |
| 263 | $(LOCAL_PATH)/third_party/npapi \ |
| 264 | $(LOCAL_PATH)/third_party/npapi/bindings \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 265 | $(gyp_shared_intermediate_dir)/webkit \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 266 | $(LOCAL_PATH)/third_party/boringssl/src/include \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 267 | $(PWD)/frameworks/wilhelm/include \ |
| 268 | $(PWD)/bionic \ |
| 269 | $(PWD)/external/stlport/stlport |
| 270 | |
| 271 | |
| 272 | # Flags passed to only C++ (and not C) files. |
| 273 | LOCAL_CPPFLAGS_Debug := \ |
| 274 | -fno-rtti \ |
| 275 | -fno-threadsafe-statics \ |
| 276 | -fvisibility-inlines-hidden \ |
| 277 | -Wsign-compare \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 278 | -std=gnu++11 \ |
| 279 | -Wno-narrowing \ |
| 280 | -Wno-literal-suffix \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 281 | -Wno-non-virtual-dtor \ |
| 282 | -Wno-sign-promo |
| 283 | |
| 284 | |
| 285 | # Flags passed to both C and C++ files. |
| 286 | MY_CFLAGS_Release := \ |
| 287 | --param=ssp-buffer-size=4 \ |
| 288 | -Werror \ |
| 289 | -fno-exceptions \ |
| 290 | -fno-strict-aliasing \ |
| 291 | -Wall \ |
| 292 | -Wno-unused-parameter \ |
| 293 | -Wno-missing-field-initializers \ |
| 294 | -fvisibility=hidden \ |
| 295 | -pipe \ |
| 296 | -fPIC \ |
| 297 | -Wno-unused-local-typedefs \ |
| 298 | -ffunction-sections \ |
| 299 | -funwind-tables \ |
| 300 | -g \ |
| 301 | -fno-short-enums \ |
| 302 | -finline-limit=64 \ |
| 303 | -Wa,--noexecstack \ |
| 304 | -U_FORTIFY_SOURCE \ |
| 305 | -Wno-extra \ |
| 306 | -Wno-ignored-qualifiers \ |
| 307 | -Wno-type-limits \ |
| 308 | -Wno-unused-but-set-variable \ |
| 309 | -Os \ |
| 310 | -fno-ident \ |
| 311 | -fdata-sections \ |
| 312 | -ffunction-sections \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 313 | -funwind-tables |
| 314 | |
| 315 | MY_DEFS_Release := \ |
| 316 | '-DCONTENT_IMPLEMENTATION' \ |
| 317 | '-DV8_DEPRECATION_WARNINGS' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 318 | '-D_FILE_OFFSET_BITS=64' \ |
| 319 | '-DNO_TCMALLOC' \ |
| 320 | '-DDISABLE_NACL' \ |
| 321 | '-DCHROMIUM_BUILD' \ |
| 322 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 323 | '-DENABLE_WEBRTC=1' \ |
| 324 | '-DUSE_PROPRIETARY_CODECS' \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 325 | '-DENABLE_BROWSER_CDMS' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 326 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 327 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 328 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 329 | '-DENABLE_EGLIMAGE=1' \ |
| 330 | '-DCLD_VERSION=1' \ |
| 331 | '-DENABLE_PRINTING=1' \ |
| 332 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 333 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 334 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 335 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 336 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 337 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | 0de6073 | 2014-05-15 12:16:31 +0100 | [diff] [blame] | 338 | '-DVIDEO_HOLE=1' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 339 | '-DSK_ENABLE_INST_COUNT=0' \ |
| 340 | '-DSK_SUPPORT_GPU=1' \ |
| 341 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
| 342 | '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ |
| 343 | '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ |
| 344 | '-DGR_GL_IGNORE_ES3_MSAA=0' \ |
| 345 | '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 346 | '-DSK_SUPPORT_LEGACY_PICTURE_CLONE' \ |
| 347 | '-DSK_SUPPORT_LEGACY_GETDEVICE' \ |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 348 | '-DSK_IGNORE_ETC1_SUPPORT' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 349 | '-DSK_IGNORE_GPU_DITHER' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 350 | '-DSK_BUILD_FOR_ANDROID' \ |
| 351 | '-DSK_USE_POSIX_THREADS' \ |
| 352 | '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ |
| 353 | '-DPOSIX_AVOID_MMAP' \ |
| 354 | '-DU_USING_ICU_NAMESPACE=0' \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 355 | '-DU_ENABLE_DYLOAD=0' \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 356 | '-DCHROME_PNG_WRITE_SUPPORT' \ |
| 357 | '-DPNG_USER_CONFIG' \ |
| 358 | '-DCHROME_PNG_READ_PACK_SUPPORT' \ |
| 359 | '-DUSE_SYSTEM_LIBJPEG' \ |
| 360 | '-DUSE_OPENSSL=1' \ |
| 361 | '-DUSE_OPENSSL_CERTS=1' \ |
| 362 | '-D__STDC_CONSTANT_MACROS' \ |
| 363 | '-D__STDC_FORMAT_MACROS' \ |
| 364 | '-DANDROID' \ |
| 365 | '-D__GNU_SOURCE=1' \ |
| 366 | '-DUSE_STLPORT=1' \ |
| 367 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 368 | '-DCHROME_BUILD_ID=""' \ |
| 369 | '-DNDEBUG' \ |
| 370 | '-DNVALGRIND' \ |
| 371 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 372 | '-D_FORTIFY_SOURCE=2' |
| 373 | |
| 374 | |
| 375 | # Include paths placed before CFLAGS/CPPFLAGS |
| 376 | LOCAL_C_INCLUDES_Release := \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 377 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 378 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 379 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 380 | $(gyp_shared_intermediate_dir) \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 381 | $(LOCAL_PATH) \ |
| 382 | $(LOCAL_PATH)/skia/config \ |
| 383 | $(LOCAL_PATH)/third_party/WebKit/Source \ |
| 384 | $(LOCAL_PATH)/third_party/khronos \ |
| 385 | $(LOCAL_PATH)/gpu \ |
| 386 | $(gyp_shared_intermediate_dir)/content \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 387 | $(LOCAL_PATH)/third_party/skia/src/core \ |
| 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/lazy \ |
| 393 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| 394 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 395 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 396 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
| 397 | $(LOCAL_PATH)/skia/ext \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 398 | $(PWD)/external/icu/icu4c/source/common \ |
| 399 | $(PWD)/external/icu/icu4c/source/i18n \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 400 | $(LOCAL_PATH)/third_party/WebKit \ |
| 401 | $(LOCAL_PATH)/v8/include \ |
| 402 | $(LOCAL_PATH)/third_party/libpng \ |
| 403 | $(LOCAL_PATH)/third_party/zlib \ |
| 404 | $(LOCAL_PATH)/third_party/libwebp \ |
| 405 | $(LOCAL_PATH)/third_party/ots/include \ |
| 406 | $(LOCAL_PATH)/third_party/qcms/src \ |
| 407 | $(LOCAL_PATH)/third_party/iccjpeg \ |
| 408 | $(PWD)/external/jpeg \ |
| 409 | $(LOCAL_PATH)/third_party/npapi \ |
| 410 | $(LOCAL_PATH)/third_party/npapi/bindings \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 411 | $(gyp_shared_intermediate_dir)/webkit \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 412 | $(LOCAL_PATH)/third_party/boringssl/src/include \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 413 | $(PWD)/frameworks/wilhelm/include \ |
| 414 | $(PWD)/bionic \ |
| 415 | $(PWD)/external/stlport/stlport |
| 416 | |
| 417 | |
| 418 | # Flags passed to only C++ (and not C) files. |
| 419 | LOCAL_CPPFLAGS_Release := \ |
| 420 | -fno-rtti \ |
| 421 | -fno-threadsafe-statics \ |
| 422 | -fvisibility-inlines-hidden \ |
| 423 | -Wsign-compare \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame] | 424 | -std=gnu++11 \ |
| 425 | -Wno-narrowing \ |
| 426 | -Wno-literal-suffix \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 427 | -Wno-non-virtual-dtor \ |
| 428 | -Wno-sign-promo |
| 429 | |
| 430 | |
| 431 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 432 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 433 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
| 434 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
| 435 | ### Rules for final target. |
| 436 | |
| 437 | LOCAL_LDFLAGS_Debug := \ |
| 438 | -Wl,-z,now \ |
| 439 | -Wl,-z,relro \ |
| 440 | -Wl,--fatal-warnings \ |
| 441 | -Wl,-z,noexecstack \ |
| 442 | -fPIC \ |
| 443 | -nostdlib \ |
| 444 | -Wl,--no-undefined \ |
| 445 | -Wl,--exclude-libs=ALL \ |
| 446 | -Wl,--warn-shared-textrel \ |
| 447 | -Wl,-O1 \ |
| 448 | -Wl,--as-needed |
| 449 | |
| 450 | |
| 451 | LOCAL_LDFLAGS_Release := \ |
| 452 | -Wl,-z,now \ |
| 453 | -Wl,-z,relro \ |
| 454 | -Wl,--fatal-warnings \ |
| 455 | -Wl,-z,noexecstack \ |
| 456 | -fPIC \ |
| 457 | -nostdlib \ |
| 458 | -Wl,--no-undefined \ |
| 459 | -Wl,--exclude-libs=ALL \ |
| 460 | -Wl,-O1 \ |
| 461 | -Wl,--as-needed \ |
| 462 | -Wl,--gc-sections \ |
| 463 | -Wl,--warn-shared-textrel |
| 464 | |
| 465 | |
| 466 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 467 | |
| 468 | LOCAL_STATIC_LIBRARIES := \ |
| 469 | cpufeatures \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 470 | mojo_mojo_application_bindings_gyp \ |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 471 | skia_skia_library_gyp \ |
Torne (Richard Coles) | 5f1c943 | 2014-08-12 13:47:38 +0100 | [diff] [blame] | 472 | ui_base_ui_base_gyp |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 473 | |
| 474 | # Enable grouping to fix circular references |
| 475 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 476 | |
| 477 | LOCAL_SHARED_LIBRARIES := \ |
| 478 | libstlport \ |
| 479 | libdl |
| 480 | |
| 481 | # Add target alias to "gyp_all_modules" target. |
| 482 | .PHONY: gyp_all_modules |
| 483 | gyp_all_modules: content_content_child_gyp |
| 484 | |
| 485 | # Alias gyp target name. |
| 486 | .PHONY: content_child |
| 487 | content_child: content_content_child_gyp |
| 488 | |
| 489 | include $(BUILD_STATIC_LIBRARY) |