Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: chrome/browser/BUILD.gn

Issue 2358493002: Remove MTP support on Linux. (Closed)
Patch Set: fix build Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/BUILD.gn
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 244d12e95d6b419ea9844b9700d3d17334f4b7e7..4d1925ffb416337eb17ee795da5e270d3fe551b2 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -2077,8 +2077,32 @@ split_static_library("browser") {
defines += [ "ENABLE_HOTWORDING" ]
}
- if (is_linux && use_dbus) {
+ if (is_chromeos && use_dbus) {
deps += [ "//device/media_transfer_protocol" ]
+ sources += [
tommycli 2016/09/20 17:37:46 should we also rename this directory "chromeos"? .
Lei Zhang 2016/09/28 07:23:25 Done.
+ "media_galleries/linux/mtp_device_delegate_impl_linux.cc",
+ "media_galleries/linux/mtp_device_delegate_impl_linux.h",
+ "media_galleries/linux/mtp_device_object_enumerator.cc",
+ "media_galleries/linux/mtp_device_object_enumerator.h",
+ "media_galleries/linux/mtp_device_task_helper.cc",
+ "media_galleries/linux/mtp_device_task_helper.h",
+ "media_galleries/linux/mtp_device_task_helper_map_service.cc",
+ "media_galleries/linux/mtp_device_task_helper_map_service.h",
+ "media_galleries/linux/mtp_read_file_worker.cc",
+ "media_galleries/linux/mtp_read_file_worker.h",
+ ]
+ }
+ if (is_win || is_mac || (is_chromeos && use_dbus)) {
+ sources += [
+ "media_galleries/fileapi/device_media_async_file_util.cc",
+ "media_galleries/fileapi/device_media_async_file_util.h",
+ "media_galleries/fileapi/mtp_device_async_delegate.cc",
+ "media_galleries/fileapi/mtp_device_async_delegate.h",
+ "media_galleries/fileapi/mtp_device_map_service.cc",
+ "media_galleries/fileapi/mtp_device_map_service.h",
+ "media_galleries/fileapi/mtp_file_stream_reader.cc",
+ "media_galleries/fileapi/mtp_file_stream_reader.h",
+ ]
}
if (use_udev) {
@@ -2652,8 +2676,6 @@ split_static_library("browser") {
"media/webrtc/tab_desktop_media_list.h",
"media_galleries/fileapi/av_scanning_file_validator.cc",
"media_galleries/fileapi/av_scanning_file_validator.h",
- "media_galleries/fileapi/device_media_async_file_util.cc",
- "media_galleries/fileapi/device_media_async_file_util.h",
"media_galleries/fileapi/iapps_finder.h",
"media_galleries/fileapi/iapps_finder_impl.cc",
"media_galleries/fileapi/iapps_finder_impl.h",
@@ -2665,12 +2687,6 @@ split_static_library("browser") {
"media_galleries/fileapi/media_file_validator_factory.h",
"media_galleries/fileapi/media_path_filter.cc",
"media_galleries/fileapi/media_path_filter.h",
- "media_galleries/fileapi/mtp_device_async_delegate.cc",
- "media_galleries/fileapi/mtp_device_async_delegate.h",
- "media_galleries/fileapi/mtp_device_map_service.cc",
- "media_galleries/fileapi/mtp_device_map_service.h",
- "media_galleries/fileapi/mtp_file_stream_reader.cc",
- "media_galleries/fileapi/mtp_file_stream_reader.h",
"media_galleries/fileapi/native_media_file_util.cc",
"media_galleries/fileapi/native_media_file_util.h",
"media_galleries/fileapi/picasa_finder.cc",
@@ -2691,16 +2707,6 @@ split_static_library("browser") {
"media_galleries/gallery_watch_manager_observer.h",
"media_galleries/imported_media_gallery_registry.cc",
"media_galleries/imported_media_gallery_registry.h",
- "media_galleries/linux/mtp_device_delegate_impl_linux.cc",
- "media_galleries/linux/mtp_device_delegate_impl_linux.h",
- "media_galleries/linux/mtp_device_object_enumerator.cc",
- "media_galleries/linux/mtp_device_object_enumerator.h",
- "media_galleries/linux/mtp_device_task_helper.cc",
- "media_galleries/linux/mtp_device_task_helper.h",
- "media_galleries/linux/mtp_device_task_helper_map_service.cc",
- "media_galleries/linux/mtp_device_task_helper_map_service.h",
- "media_galleries/linux/mtp_read_file_worker.cc",
- "media_galleries/linux/mtp_read_file_worker.h",
"media_galleries/linux/snapshot_file_details.cc",
"media_galleries/linux/snapshot_file_details.h",
"media_galleries/mac/mtp_device_delegate_impl_mac.h",
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/media_file_system_backend.h » ('j') | chrome/test/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698