Non-SFI mode: Clean up libevent_nacl_nonsfi.gyp.
[chromium-blink-merge.git] / storage / browser / BUILD.gn
blob7b0b461da1a0bf10503f84a964d788046b0d8aaa
1 # 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.
5 # GYP version: storage/storage_browser.gyp:storage
6 component("browser") {
7   output_name = "storage_browser"
8   sources = [
9     "storage_browser_export.h",
10     "blob/blob_data_handle.cc",
11     "blob/blob_data_handle.h",
12     "blob/blob_storage_context.cc",
13     "blob/blob_storage_context.h",
14     "blob/blob_url_request_job.cc",
15     "blob/blob_url_request_job.h",
16     "blob/blob_url_request_job_factory.cc",
17     "blob/blob_url_request_job_factory.h",
18     "blob/file_stream_reader.cc",
19     "blob/file_stream_reader.h",
20     "blob/local_file_stream_reader.cc",
21     "blob/local_file_stream_reader.h",
22     "blob/view_blob_internals_job.cc",
23     "blob/view_blob_internals_job.h",
24     "database/database_quota_client.cc",
25     "database/database_quota_client.h",
26     "database/database_tracker.cc",
27     "database/database_tracker.h",
28     "database/database_util.cc",
29     "database/database_util.h",
30     "database/databases_table.cc",
31     "database/databases_table.h",
32     "database/vfs_backend.cc",
33     "database/vfs_backend.h",
34     "fileapi/async_file_util.h",
35     "fileapi/async_file_util_adapter.cc",
36     "fileapi/async_file_util_adapter.h",
37     "fileapi/copy_or_move_file_validator.h",
38     "fileapi/copy_or_move_operation_delegate.cc",
39     "fileapi/copy_or_move_operation_delegate.h",
40     "fileapi/dragged_file_util.cc",
41     "fileapi/dragged_file_util.h",
42     "fileapi/external_mount_points.cc",
43     "fileapi/external_mount_points.h",
44     "fileapi/file_observers.h",
45     "fileapi/file_permission_policy.h",
46     "fileapi/file_stream_writer.h",
47     "fileapi/file_system_backend.h",
48     "fileapi/file_system_context.cc",
49     "fileapi/file_system_context.h",
50     "fileapi/file_system_dir_url_request_job.cc",
51     "fileapi/file_system_dir_url_request_job.h",
52     "fileapi/file_system_file_stream_reader.cc",
53     "fileapi/file_system_file_stream_reader.h",
54     "fileapi/file_system_file_util.cc",
55     "fileapi/file_system_file_util.h",
56     "fileapi/file_system_operation.h",
57     "fileapi/file_system_operation_context.cc",
58     "fileapi/file_system_operation_context.h",
59     "fileapi/file_system_operation_impl.cc",
60     "fileapi/file_system_operation_impl.h",
61     "fileapi/file_system_operation_runner.cc",
62     "fileapi/file_system_operation_runner.h",
63     "fileapi/file_system_options.cc",
64     "fileapi/file_system_options.h",
65     "fileapi/file_system_quota_client.cc",
66     "fileapi/file_system_quota_client.h",
67     "fileapi/file_system_quota_util.h",
68     "fileapi/file_system_url.cc",
69     "fileapi/file_system_url.h",
70     "fileapi/file_system_url_request_job.cc",
71     "fileapi/file_system_url_request_job.h",
72     "fileapi/file_system_url_request_job_factory.cc",
73     "fileapi/file_system_url_request_job_factory.h",
74     "fileapi/file_system_usage_cache.cc",
75     "fileapi/file_system_usage_cache.h",
76     "fileapi/file_writer_delegate.cc",
77     "fileapi/file_writer_delegate.h",
78     "fileapi/isolated_context.cc",
79     "fileapi/isolated_context.h",
80     "fileapi/isolated_file_system_backend.cc",
81     "fileapi/isolated_file_system_backend.h",
82     "fileapi/local_file_stream_writer.cc",
83     "fileapi/local_file_stream_writer.h",
84     "fileapi/local_file_util.cc",
85     "fileapi/local_file_util.h",
86     "fileapi/mount_points.cc",
87     "fileapi/mount_points.h",
88     "fileapi/native_file_util.cc",
89     "fileapi/native_file_util.h",
90     "fileapi/obfuscated_file_util.cc",
91     "fileapi/obfuscated_file_util.h",
92     "fileapi/open_file_system_mode.h",
93     "fileapi/plugin_private_file_system_backend.cc",
94     "fileapi/plugin_private_file_system_backend.h",
95     "fileapi/quota/open_file_handle.cc",
96     "fileapi/quota/open_file_handle.h",
97     "fileapi/quota/open_file_handle_context.cc",
98     "fileapi/quota/open_file_handle_context.h",
99     "fileapi/quota/quota_backend_impl.cc",
100     "fileapi/quota/quota_backend_impl.h",
101     "fileapi/quota/quota_reservation.cc",
102     "fileapi/quota/quota_reservation.h",
103     "fileapi/quota/quota_reservation_buffer.cc",
104     "fileapi/quota/quota_reservation_buffer.h",
105     "fileapi/quota/quota_reservation_manager.cc",
106     "fileapi/quota/quota_reservation_manager.h",
107     "fileapi/recursive_operation_delegate.cc",
108     "fileapi/recursive_operation_delegate.h",
109     "fileapi/remove_operation_delegate.cc",
110     "fileapi/remove_operation_delegate.h",
111     "fileapi/sandbox_directory_database.cc",
112     "fileapi/sandbox_directory_database.h",
113     "fileapi/sandbox_file_stream_writer.cc",
114     "fileapi/sandbox_file_stream_writer.h",
115     "fileapi/sandbox_file_system_backend.cc",
116     "fileapi/sandbox_file_system_backend.h",
117     "fileapi/sandbox_file_system_backend_delegate.cc",
118     "fileapi/sandbox_file_system_backend_delegate.h",
119     "fileapi/sandbox_isolated_origin_database.cc",
120     "fileapi/sandbox_isolated_origin_database.h",
121     "fileapi/sandbox_origin_database.cc",
122     "fileapi/sandbox_origin_database.h",
123     "fileapi/sandbox_origin_database_interface.cc",
124     "fileapi/sandbox_origin_database_interface.h",
125     "fileapi/sandbox_prioritized_origin_database.cc",
126     "fileapi/sandbox_prioritized_origin_database.h",
127     "fileapi/sandbox_quota_observer.cc",
128     "fileapi/sandbox_quota_observer.h",
129     "fileapi/task_runner_bound_observer_list.h",
130     "fileapi/timed_task_helper.cc",
131     "fileapi/timed_task_helper.h",
132     "fileapi/transient_file_util.cc",
133     "fileapi/transient_file_util.h",
134     "quota/quota_callbacks.h",
135     "quota/quota_client.h",
136     "quota/quota_database.cc",
137     "quota/quota_database.h",
138     "quota/quota_manager.cc",
139     "quota/quota_manager.h",
140     "quota/quota_manager_proxy.cc",
141     "quota/quota_manager_proxy.h",
142     "quota/quota_task.cc",
143     "quota/quota_task.h",
144     "quota/quota_temporary_storage_evictor.cc",
145     "quota/quota_temporary_storage_evictor.h",
146     "quota/special_storage_policy.cc",
147     "quota/special_storage_policy.h",
148     "quota/storage_monitor.cc",
149     "quota/storage_monitor.h",
150     "quota/storage_observer.cc",
151     "quota/storage_observer.h",
152     "quota/usage_tracker.cc",
153     "quota/usage_tracker.h",
154   ]
156   defines = [ "STORAGE_BROWSER_IMPLEMENTATION" ]
157   configs += [ "//build/config/compiler:wexit_time_destructors" ]
158   if (is_win) {
159     cflags = [ "/wd4267" ]  # TODO(jschuh): fix size_t to int truncations.
160   }
162   deps = [
163     "//base",
164     "//base:i18n",
165     "//base/third_party/dynamic_annotations",
166     "//net",
167     "//sql",
168     "//storage/common",
169     "//third_party/leveldatabase",
170     "//third_party/sqlite",
171     "//url",
172   ]
174   # TODO(GYP) support chrome_multiple_dll
175   #['chrome_multiple_dll!=1', {
176   #  'dependencies': [
177   #    '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
178   #  ],
179   #}],
182 executable("dump_file_system") {
183   sources = [
184     "fileapi/dump_file_system.cc",
185   ]
187   deps = [
188     ":browser",
189     "//base",
190     "//storage/common",
191   ]