summaryrefslogtreecommitdiff
path: root/chromium/sql/BUILD.gn
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-08-08 14:30:41 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-08-12 13:49:54 +0200
commitab0a50979b9eb4dfa3320eff7e187e41efedf7a9 (patch)
tree498dfb8a97ff3361a9f7486863a52bb4e26bb898 /chromium/sql/BUILD.gn
parent4ce69f7403811819800e7c5ae1318b2647e778d1 (diff)
downloadqtwebengine-chromium-ab0a50979b9eb4dfa3320eff7e187e41efedf7a9.tar.gz
Update Chromium to beta version 37.0.2062.68
Change-Id: I188e3b5aff1bec75566014291b654eb19f5bc8ca Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'chromium/sql/BUILD.gn')
-rw-r--r--chromium/sql/BUILD.gn94
1 files changed, 94 insertions, 0 deletions
diff --git a/chromium/sql/BUILD.gn b/chromium/sql/BUILD.gn
new file mode 100644
index 00000000000..d67284141b4
--- /dev/null
+++ b/chromium/sql/BUILD.gn
@@ -0,0 +1,94 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+component("sql") {
+ sources = [
+ "connection.cc",
+ "connection.h",
+ "error_delegate_util.cc",
+ "error_delegate_util.h",
+ "init_status.h",
+ "meta_table.cc",
+ "meta_table.h",
+ "recovery.cc",
+ "recovery.h",
+ "statement.cc",
+ "statement.h",
+ "transaction.cc",
+ "transaction.h",
+ ]
+
+ defines = [ "SQL_IMPLEMENTATION" ]
+
+ if (is_win) {
+ cflags = [ "/wd4267" ] # size_t to int.
+ }
+
+ deps = [
+ "//base",
+ "//third_party/sqlite",
+ "//base/third_party/dynamic_annotations",
+ ]
+}
+
+source_set("test_support") {
+ sources = [
+ "test/error_callback_support.cc",
+ "test/error_callback_support.h",
+ "test/scoped_error_ignorer.cc",
+ "test/scoped_error_ignorer.h",
+ "test/test_helpers.cc",
+ "test/test_helpers.h",
+ ]
+
+ deps = [
+ ":sql",
+ "//base",
+ "//testing/gtest",
+ ]
+}
+
+test("sql_unittests") {
+ sources = [
+ "connection_unittest.cc",
+ "meta_table_unittest.cc",
+ "recovery_unittest.cc",
+ "sqlite_features_unittest.cc",
+ "statement_unittest.cc",
+ "transaction_unittest.cc",
+ ]
+
+ if (is_win) {
+ cflags = [ "/wd4267" ] # size_t -> int
+ }
+
+ deps = [
+ ":sql",
+ ":test_support",
+ "//base/allocator",
+ "//base/test:run_all_unittests",
+ "//testing/gtest",
+ "//third_party/sqlite",
+ ]
+
+ # TODO(GYP)
+ #['OS == "android"', {
+ # 'dependencies': [
+ # '../testing/android/native_test.gyp:native_test_native_code',
+ # ],
+ #}],
+}
+
+if (is_android) {
+ #TODO(GYP)
+ #'target_name': 'sql_unittests_apk',
+ #'type': 'none',
+ #'dependencies': [
+ # 'sql_unittests',
+ #],
+ #'variables': {
+ # 'test_suite_name': 'sql_unittests',
+ #},
+ #'includes': [ '../build/apk_test.gypi' ],
+}