[M85 Migration] Add an evas gl option for rotation
[platform/framework/web/chromium-efl.git] / sql / 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 import("//testing/test.gni")
6
7 component("sql") {
8   sources = [
9     "database.cc",
10     "database.h",
11     "database_memory_dump_provider.cc",
12     "database_memory_dump_provider.h",
13     "error_delegate_util.cc",
14     "error_delegate_util.h",
15     "init_status.h",
16     "initialization.cc",
17     "initialization.h",
18     "internal_api_token.h",
19     "meta_table.cc",
20     "meta_table.h",
21     "recover_module/btree.cc",
22     "recover_module/btree.h",
23     "recover_module/cursor.cc",
24     "recover_module/cursor.h",
25     "recover_module/integers.cc",
26     "recover_module/integers.h",
27     "recover_module/module.cc",
28     "recover_module/module.h",
29     "recover_module/pager.cc",
30     "recover_module/pager.h",
31     "recover_module/parsing.cc",
32     "recover_module/parsing.h",
33     "recover_module/payload.cc",
34     "recover_module/payload.h",
35     "recover_module/record.cc",
36     "recover_module/record.h",
37     "recover_module/table.cc",
38     "recover_module/table.h",
39     "recovery.cc",
40     "recovery.h",
41     "sql_features.cc",
42     "sql_features.h",
43     "sql_memory_dump_provider.cc",
44     "sql_memory_dump_provider.h",
45     "statement.cc",
46     "statement.h",
47     "statement_id.cc",
48     "statement_id.h",
49     "transaction.cc",
50     "transaction.h",
51     "vfs_wrapper.cc",
52     "vfs_wrapper.h",
53   ]
54
55   defines = [ "IS_SQL_IMPL" ]
56
57   deps = [
58     "//base",
59     "//base/third_party/dynamic_annotations",
60     "//third_party/sqlite",
61   ]
62
63   # For vfs_wrapper.cc time-machine exclusions.
64   if (is_mac) {
65     libs = [
66       "CoreFoundation.framework",
67       "CoreServices.framework",
68     ]
69   }
70
71   if (is_fuchsia) {
72     sources += [
73       "vfs_wrapper_fuchsia.cc",
74       "vfs_wrapper_fuchsia.h",
75     ]
76   }
77 }
78
79 static_library("test_support") {
80   testonly = true
81   sources = [
82     "test/error_callback_support.cc",
83     "test/error_callback_support.h",
84     "test/scoped_error_expecter.cc",
85     "test/scoped_error_expecter.h",
86     "test/test_helpers.cc",
87     "test/test_helpers.h",
88   ]
89
90   public_deps = [ ":sql" ]
91   deps = [
92     "//base",
93     "//testing/gtest",
94     "//third_party/sqlite",
95   ]
96 }
97
98 bundle_data("sql_unittests_bundle_data") {
99   testonly = true
100   sources = [ "test/data/recovery_387868" ]
101   outputs = [ "{{bundle_resources_dir}}/" +
102               "{{source_root_relative_dir}}/{{source_file_part}}" ]
103 }
104
105 test("sql_unittests") {
106   sources = [
107     "database_unittest.cc",
108     "meta_table_unittest.cc",
109     "recover_module/module_unittest.cc",
110     "recovery_unittest.cc",
111     "sql_memory_dump_provider_unittest.cc",
112     "sqlite_features_unittest.cc",
113     "statement_id_unittest.cc",
114     "statement_unittest.cc",
115     "test/database_test_peer.cc",
116     "test/database_test_peer.h",
117     "test/paths.cc",
118     "test/paths.h",
119     "test/run_all_unittests.cc",
120     "test/sql_test_base.cc",
121     "test/sql_test_base.h",
122     "test/sql_test_suite.cc",
123     "test/sql_test_suite.h",
124     "transaction_unittest.cc",
125   ]
126
127   data = [ "test/data/" ]
128
129   deps = [
130     ":sql",
131     ":sql_unittests_bundle_data",
132     ":test_support",
133     "//base/test:test_support",
134     "//testing/gtest",
135     "//third_party/sqlite",
136   ]
137 }