Exclude more files from Android build

These files are not used on Android but were unnecessarily compiled.
They didn't affect binary size because they were removed during linker GC,
but excluding them may save build time, and help future modular exclusion.

BUG=none
TBR=ben,kbr,brettw,jar  (An Android only change to gyps)


Review URL: https://chromiumcodereview.appspot.com/10823291

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151529 0039d316-1c4b-4281-b951-d872f2087c98
parent a69ee4c2
...@@ -574,6 +574,7 @@ ...@@ -574,6 +574,7 @@
}], }],
['OS == "android" and >(nacl_untrusted_build)==0', { ['OS == "android" and >(nacl_untrusted_build)==0', {
'sources!': [ 'sources!': [
'base_paths_posix.cc',
'files/file_path_watcher_kqueue.cc', 'files/file_path_watcher_kqueue.cc',
'system_monitor/system_monitor_posix.cc', 'system_monitor/system_monitor_posix.cc',
], ],
......
...@@ -4516,6 +4516,7 @@ ...@@ -4516,6 +4516,7 @@
}, { # safe_browsing==0 }, { # safe_browsing==0
'dependencies!': [ 'dependencies!': [
'safe_browsing_report_proto', 'safe_browsing_report_proto',
'../third_party/libusb/libusb.gyp:libusb',
], ],
'sources!': [ 'sources!': [
'browser/renderer_host/safe_browsing_resource_throttle.cc', 'browser/renderer_host/safe_browsing_resource_throttle.cc',
...@@ -4982,7 +4983,9 @@ ...@@ -4982,7 +4983,9 @@
'browser/page_cycler/page_cycler.cc', 'browser/page_cycler/page_cycler.cc',
'browser/page_cycler/page_cycler.h', 'browser/page_cycler/page_cycler.h',
'browser/ui/browser.cc', 'browser/ui/browser.cc',
'browser/ui/browser_command_controller.cc',
'browser/ui/browser_finder.cc', 'browser/ui/browser_finder.cc',
'browser/ui/browser_instant_controller.cc',
'browser/ui/browser_list.cc', 'browser/ui/browser_list.cc',
'browser/ui/browser_navigator.cc', 'browser/ui/browser_navigator.cc',
'browser/ui/browser_otr_state.cc', 'browser/ui/browser_otr_state.cc',
...@@ -5021,7 +5024,14 @@ ...@@ -5021,7 +5024,14 @@
'sources/': [ 'sources/': [
['exclude', '^browser/captive_portal/'], ['exclude', '^browser/captive_portal/'],
['exclude', '^browser/chrome_to_mobile'], ['exclude', '^browser/chrome_to_mobile'],
['exclude', '^browser/first_run/'],
['include', '^browser/first_run/first_run.cc'], # For ctor/dtor of a struct.
['exclude', '^browser/importer/'], ['exclude', '^browser/importer/'],
['exclude', '^browser/lifetime/'],
['exclude', '^browser/service/'],
['exclude', '^browser/speech/'],
['exclude', '^browser/sync/glue/app_'],
['exclude', '^browser/sync/glue/extension_'],
['exclude', '^browser/ui/intents/'], ['exclude', '^browser/ui/intents/'],
['exclude', '^browser/ui/omnibox/'], ['exclude', '^browser/ui/omnibox/'],
['exclude', '^browser/ui/panels/'], ['exclude', '^browser/ui/panels/'],
......
This diff is collapsed.
...@@ -2458,6 +2458,12 @@ ...@@ -2458,6 +2458,12 @@
'sources/': [ 'sources/': [
['exclude', '^browser/captive_portal/'], ['exclude', '^browser/captive_portal/'],
['exclude', '^browser/chrome_to_mobile'], ['exclude', '^browser/chrome_to_mobile'],
['exclude', '^browser/first_run/'],
['exclude', '^browser/importer/'],
['exclude', '^browser/lifetime/'],
['exclude', '^browser/speech/'],
['exclude', '^browser/sync/glue/app_'],
['exclude', '^browser/sync/glue/extension_'],
['exclude', '^browser/themes/'], ['exclude', '^browser/themes/'],
['exclude', '^browser/ui/intents/'], ['exclude', '^browser/ui/intents/'],
['exclude', '^browser/ui/omnibox/'], ['exclude', '^browser/ui/omnibox/'],
...@@ -2474,6 +2480,7 @@ ...@@ -2474,6 +2480,7 @@
['exclude', '^browser/ui/webui/suggestions_internals'], ['exclude', '^browser/ui/webui/suggestions_internals'],
['exclude', '^browser/ui/webui/sync_promo'], ['exclude', '^browser/ui/webui/sync_promo'],
# No service process on Android. # No service process on Android.
['exclude', '^browser/service/'],
['exclude', '^common/service_'], ['exclude', '^common/service_'],
['exclude', '^service/'], ['exclude', '^service/'],
], ],
......
...@@ -264,23 +264,21 @@ ...@@ -264,23 +264,21 @@
'renderer/websharedworkerrepository_impl.h', 'renderer/websharedworkerrepository_impl.h',
], ],
'conditions': [ 'conditions': [
['toolkit_uses_gtk == 1', { ['notifications==0', {
'conditions': [ 'sources!': [
['input_speech==0', { 'renderer/notification_provider.cc',
'sources!': [ 'renderer/active_notification_tracker.cc',
'renderer/input_tag_speech_dispatcher.cc',
'renderer/input_tag_speech_dispatcher.h',
'renderer/speech_recognition_dispatcher.cc',
'renderer/speech_recognition_dispatcher.h',
]
}],
['notifications==0', {
'sources!': [
'renderer/notification_provider.cc',
'renderer/active_notification_tracker.cc',
],
}],
], ],
}],
['input_speech==0', {
'sources!': [
'renderer/input_tag_speech_dispatcher.cc',
'renderer/input_tag_speech_dispatcher.h',
'renderer/speech_recognition_dispatcher.cc',
'renderer/speech_recognition_dispatcher.h',
]
}],
['toolkit_uses_gtk == 1', {
'dependencies': [ 'dependencies': [
'../build/linux/system.gyp:gtk', '../build/linux/system.gyp:gtk',
], ],
......
...@@ -1073,6 +1073,7 @@ ...@@ -1073,6 +1073,7 @@
'net_jni_headers', 'net_jni_headers',
], ],
'sources!': [ 'sources!': [
'base/dnssec_chain_verifier.cc',
'base/openssl_memory_private_key_store.cc', 'base/openssl_memory_private_key_store.cc',
], ],
}, { # else OS! = "android" }, { # else OS! = "android"
......
...@@ -593,10 +593,10 @@ ...@@ -593,10 +593,10 @@
'sources/': [ 'sources/': [
['include', 'ext/platform_device_linux\\.cc$'], ['include', 'ext/platform_device_linux\\.cc$'],
['include', 'ext/platform_canvas_linux\\.cc$'], ['include', 'ext/platform_canvas_linux\\.cc$'],
['exclude', '../third_party/skia/src/pdf/'],
], ],
'sources!': [ 'sources!': [
'ext/vector_platform_device_skia.cc', 'ext/vector_platform_device_skia.cc',
'../third_party/skia/src/pdf/SkPDFFont.cpp',
], ],
'export_dependent_settings': [ 'export_dependent_settings': [
'../third_party/harfbuzz/harfbuzz.gyp:harfbuzz', '../third_party/harfbuzz/harfbuzz.gyp:harfbuzz',
......
...@@ -191,6 +191,7 @@ ...@@ -191,6 +191,7 @@
'sources!': [ 'sources!': [
'<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.cc', '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.cc',
'<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.h', '<(gl_binding_output_dir)/gl_bindings_autogen_osmesa.h',
'gl_context_osmesa.cc',
'system_monitor_posix.cc', 'system_monitor_posix.cc',
], ],
'defines': [ 'defines': [
......
...@@ -744,10 +744,12 @@ ...@@ -744,10 +744,12 @@
}], }],
['OS=="android"', { ['OS=="android"', {
'sources!': [ 'sources!': [
'base/dragdrop/drag_utils.cc',
'base/dragdrop/drag_utils.h',
'base/touch/touch_factory.cc', 'base/touch/touch_factory.cc',
'base/touch/touch_factory.h', 'base/touch/touch_factory.h',
'gfx/pango_util.h',
'gfx/pango_util.cc', 'gfx/pango_util.cc',
'gfx/pango_util.h',
'gfx/platform_font_pango.cc', 'gfx/platform_font_pango.cc',
'gfx/platform_font_pango.h', 'gfx/platform_font_pango.h',
], ],
......
...@@ -65,8 +65,13 @@ ...@@ -65,8 +65,13 @@
['OS == "android"', { ['OS == "android"', {
'sources!': [ 'sources!': [
'audio_decoder.cc', 'audio_decoder.cc',
'audio_decoder.h',
'filter_helpers.cc',
'filter_helpers.h',
'webmediaplayer_impl.cc', 'webmediaplayer_impl.cc',
'webmediaplayer_impl.h', 'webmediaplayer_impl.h',
'webmediaplayer_proxy.cc',
'webmediaplayer_proxy.h',
], ],
'dependencies': [ 'dependencies': [
'<(DEPTH)/media/media.gyp:player_android', '<(DEPTH)/media/media.gyp:player_android',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment