blob: d5176722e27f9bd19149086d31c88e2c0b4eb66f [file] [log] [blame]
[email protected]e4c5f97b2014-02-17 18:57:171# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'targets': [
7 {
[email protected]ae916d82014-07-14 20:30:038 # GN version: //components/storage_monitor
[email protected]e4c5f97b2014-02-17 18:57:179 'target_name': 'storage_monitor',
10 'type': 'static_library',
11 'include_dirs': [
12 '..',
13 ],
14 'dependencies': [
15 '../base/base.gyp:base',
16 ],
17 'sources': [
18 'storage_monitor/image_capture_device.h',
19 'storage_monitor/image_capture_device.mm',
20 'storage_monitor/image_capture_device_manager.h',
21 'storage_monitor/image_capture_device_manager.mm',
22 'storage_monitor/media_storage_util.cc',
23 'storage_monitor/media_storage_util.h',
24 'storage_monitor/media_transfer_protocol_device_observer_linux.cc',
25 'storage_monitor/media_transfer_protocol_device_observer_linux.h',
26 'storage_monitor/mtab_watcher_linux.cc',
27 'storage_monitor/mtab_watcher_linux.h',
28 'storage_monitor/portable_device_watcher_win.cc',
29 'storage_monitor/portable_device_watcher_win.h',
30 'storage_monitor/removable_device_constants.cc',
31 'storage_monitor/removable_device_constants.h',
32 'storage_monitor/removable_storage_observer.h',
33 'storage_monitor/storage_info.cc',
34 'storage_monitor/storage_info.h',
35 'storage_monitor/storage_monitor.cc',
36 'storage_monitor/storage_monitor.h',
37 'storage_monitor/storage_monitor_chromeos.cc',
38 'storage_monitor/storage_monitor_chromeos.h',
39 'storage_monitor/storage_monitor_linux.cc',
40 'storage_monitor/storage_monitor_linux.h',
41 'storage_monitor/storage_monitor_mac.h',
42 'storage_monitor/storage_monitor_mac.mm',
43 'storage_monitor/storage_monitor_win.cc',
44 'storage_monitor/storage_monitor_win.h',
45 'storage_monitor/transient_device_ids.cc',
46 'storage_monitor/transient_device_ids.h',
47 'storage_monitor/udev_util_linux.cc',
48 'storage_monitor/udev_util_linux.h',
49 'storage_monitor/volume_mount_watcher_win.cc',
50 'storage_monitor/volume_mount_watcher_win.h',
51 ],
52 'conditions': [
53 ['OS == "mac"', {
54 'link_settings': {
55 'libraries': [
56 '$(SDKROOT)/System/Library/Frameworks/DiskArbitration.framework',
57 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
58 '$(SDKROOT)/System/Library/Frameworks/ImageCaptureCore.framework',
59 ],
60 },
61 }],
62 ['OS=="linux"', {
63 'dependencies': [
[email protected]e4c5f97b2014-02-17 18:57:1764 '../device/media_transfer_protocol/media_transfer_protocol.gyp:device_media_transfer_protocol',
65 '../device/media_transfer_protocol/media_transfer_protocol.gyp:mtp_file_entry_proto',
66 '../device/media_transfer_protocol/media_transfer_protocol.gyp:mtp_storage_info_proto',
67 ],
68 }],
[email protected]e8daf712014-06-03 22:36:0569 ['use_udev==1', {
70 'dependencies': [
71 '../device/udev_linux/udev.gyp:udev_linux',
72 ],
[email protected]47d4e8e2014-06-05 02:01:5473 }, { # use_udev==0
74 'sources!': [
75 'storage_monitor/storage_monitor_linux.cc',
76 'storage_monitor/storage_monitor_linux.h',
77 'storage_monitor/udev_util_linux.cc',
78 'storage_monitor/udev_util_linux.h',
79 ],
[email protected]e8daf712014-06-03 22:36:0580 }],
[email protected]e4c5f97b2014-02-17 18:57:1781 ['chromeos==1', {
82 'sources!': [
83 'storage_monitor/mtab_watcher_linux.cc',
84 'storage_monitor/mtab_watcher_linux.h',
85 'storage_monitor/storage_monitor_linux.cc',
86 'storage_monitor/storage_monitor_linux.h',
87 ],
88 }],
89 ],
90 },
91 {
[email protected]ae916d82014-07-14 20:30:0392 # GN version: //components/storage_monitor:test_support
[email protected]e4c5f97b2014-02-17 18:57:1793 'target_name': 'storage_monitor_test_support',
94 'type': 'static_library',
95 'include_dirs': [
96 '..',
97 ],
98 'dependencies': [
99 '../base/base.gyp:base',
100 'storage_monitor',
101 ],
102 'sources': [
103 'storage_monitor/mock_removable_storage_observer.cc',
104 'storage_monitor/mock_removable_storage_observer.h',
105 'storage_monitor/test_media_transfer_protocol_manager_linux.cc',
106 'storage_monitor/test_media_transfer_protocol_manager_linux.h',
107 'storage_monitor/test_portable_device_watcher_win.cc',
108 'storage_monitor/test_portable_device_watcher_win.h',
109 'storage_monitor/test_storage_monitor.cc',
110 'storage_monitor/test_storage_monitor.h',
111 'storage_monitor/test_storage_monitor_win.cc',
112 'storage_monitor/test_storage_monitor_win.h',
113 'storage_monitor/test_volume_mount_watcher_win.cc',
114 'storage_monitor/test_volume_mount_watcher_win.h',
115 ],
116 'conditions': [
117 ['OS=="linux"', {
118 'dependencies': [
119 '../device/media_transfer_protocol/media_transfer_protocol.gyp:device_media_transfer_protocol',
120 '../device/media_transfer_protocol/media_transfer_protocol.gyp:mtp_file_entry_proto',
amistrycbb53e22015-07-01 11:39:45121 '../device/media_transfer_protocol/media_transfer_protocol.gyp:mtp_storage_info_proto',
[email protected]e4c5f97b2014-02-17 18:57:17122 ],
123 }],
dcheng7764fe92015-10-10 01:17:26124 ['OS=="win"', {
125 'dependencies': [
126 '../testing/gtest.gyp:gtest',
127 ],
128 }],
[email protected]e4c5f97b2014-02-17 18:57:17129 ],
130 },
131 ],
132}