Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / webkit / common / BUILD.gn
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
5 # GYP version: webkit/common/webkit_common.gyp:webkit_common
6 component("common") {
7   output_name = "webkit_common"
8
9   sources = [
10     "data_element.cc",
11     "data_element.h",
12     "webkit_common_export.h",
13   ]
14
15   defines = [ "WEBKIT_COMMON_IMPLEMENTATION" ]
16
17   deps = [
18     "//base",
19     "//url",
20   ]
21 }
22
23 component("storage") {
24   output_name = "webkit_storage_common"
25   sources = [
26     "webkit_storage_common_export.h",
27     "blob/blob_data.cc",
28     "blob/blob_data.h",
29     "blob/scoped_file.cc",
30     "blob/scoped_file.h",
31     "blob/shareable_file_reference.cc",
32     "blob/shareable_file_reference.h",
33     "database/database_connections.cc",
34     "database/database_connections.h",
35     "database/database_identifier.cc",
36     "database/database_identifier.h",
37     "fileapi/directory_entry.cc",
38     "fileapi/directory_entry.h",
39     "fileapi/file_system_info.cc",
40     "fileapi/file_system_info.h",
41     "fileapi/file_system_mount_option.h",
42     "fileapi/file_system_types.h",
43     "fileapi/file_system_util.cc",
44     "fileapi/file_system_util.h",
45     "quota/quota_status_code.cc",
46     "quota/quota_status_code.h",
47     "quota/quota_types.h",
48   ]
49
50   defines = [ "WEBKIT_STORAGE_COMMON_IMPLEMENTATION" ]
51   if (is_win) {
52     cflags = [ "/wd4267" ]  # TODO(jschuh): fix size_t to int truncations.
53   }
54
55   deps = [
56     ":common",
57     "//base",
58     "//base/third_party/dynamic_annotations",
59     "//net",
60     "//url",
61   ]
62 }