[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 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. |
| 4 | |
Sasha Bermeister | 9a3f9da | 2017-11-29 03:30:28 | [diff] [blame] | 5 | import("//mojo/public/tools/bindings/mojom.gni") |
| 6 | |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 7 | component("common") { |
pilgrim | f55d19fc | 2014-09-04 00:05:24 | [diff] [blame] | 8 | output_name = "storage_common" |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 9 | sources = [ |
Marijn Kruisselbrink | 058ca54 | 2017-08-01 22:55:21 | [diff] [blame] | 10 | "blob_storage/blob_handle.cc", |
| 11 | "blob_storage/blob_handle.h", |
dmurph | 0b0e36d | 2016-10-21 21:51:20 | [diff] [blame] | 12 | "blob_storage/blob_storage_constants.cc", |
dmurph | 0140342 | 2015-10-31 01:04:52 | [diff] [blame] | 13 | "blob_storage/blob_storage_constants.h", |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 14 | "database/database_connections.cc", |
| 15 | "database/database_connections.h", |
| 16 | "database/database_identifier.cc", |
| 17 | "database/database_identifier.h", |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 18 | "fileapi/file_system_info.cc", |
| 19 | "fileapi/file_system_info.h", |
| 20 | "fileapi/file_system_mount_option.h", |
| 21 | "fileapi/file_system_types.h", |
| 22 | "fileapi/file_system_util.cc", |
| 23 | "fileapi/file_system_util.h", |
Sasha Bermeister | f403016 | 2017-12-19 06:53:46 | [diff] [blame] | 24 | "quota/quota_limit_type.h", |
scottmg | 7c7296f4 | 2015-02-28 02:23:09 | [diff] [blame] | 25 | "storage_common_export.h", |
michaeln | 93ccede | 2017-05-23 00:01:22 | [diff] [blame] | 26 | "storage_histograms.cc", |
| 27 | "storage_histograms.h", |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 28 | ] |
| 29 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 30 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
rsesek | 99679aa | 2016-06-28 21:24:17 | [diff] [blame] | 31 | configs += [ |
| 32 | "//build/config/compiler:no_size_t_to_int_warning", |
| 33 | "//build/config/compiler:wexit_time_destructors", |
| 34 | ] |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 35 | |
pilgrim | 0e4d1cb3 | 2014-08-30 01:16:11 | [diff] [blame] | 36 | defines = [ "STORAGE_COMMON_IMPLEMENTATION" ] |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 37 | |
Marijn Kruisselbrink | 058ca54 | 2017-08-01 22:55:21 | [diff] [blame] | 38 | public_deps = [ |
Luciano Pacheco | 99533e8 | 2018-03-28 07:49:07 | [diff] [blame] | 39 | "//components/services/filesystem/public/interfaces", |
Ken Rockot | 54311e6 | 2018-02-10 19:01:52 | [diff] [blame] | 40 | "//services/network/public/mojom", |
Blink Reformat | a30d423 | 2018-04-07 15:31:06 | [diff] [blame^] | 41 | "//third_party/blink/public:blink_headers", |
Marijn Kruisselbrink | 058ca54 | 2017-08-01 22:55:21 | [diff] [blame] | 42 | ] |
Marijn Kruisselbrink | 97fabdbe | 2017-10-20 07:09:24 | [diff] [blame] | 43 | |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 44 | deps = [ |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 45 | "//base", |
| 46 | "//base/third_party/dynamic_annotations", |
| 47 | "//net", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 48 | "//url", |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 49 | ] |
| 50 | } |
pwnall | 9f1622a | 2017-04-21 09:39:02 | [diff] [blame] | 51 | |
| 52 | source_set("unittests") { |
| 53 | testonly = true |
| 54 | |
| 55 | sources = [ |
| 56 | "database/database_connections_unittest.cc", |
| 57 | "database/database_identifier_unittest.cc", |
| 58 | "fileapi/file_system_util_unittest.cc", |
Marijn Kruisselbrink | 159b6ee | 2017-06-27 22:04:56 | [diff] [blame] | 59 | "run_all_unittests.cc", |
pwnall | 9f1622a | 2017-04-21 09:39:02 | [diff] [blame] | 60 | ] |
| 61 | |
| 62 | deps = [ |
| 63 | ":common", |
pwnall | 9f1622a | 2017-04-21 09:39:02 | [diff] [blame] | 64 | "//base/test:test_support", |
Ken Rockot | ec287c8 | 2018-03-15 23:05:49 | [diff] [blame] | 65 | "//mojo/edk", |
pwnall | 9f1622a | 2017-04-21 09:39:02 | [diff] [blame] | 66 | "//testing/gtest", |
| 67 | "//url", |
| 68 | ] |
| 69 | } |